Users

Read more about users management from Users Management documentation.

Get the user's own details

GET
https://api.prompteasy.eu/v1/user

Response

User object

Response fields application/json
userUser
Show child attributes
idinteger
Example
1
namestring
Example
John Doe
emailstring
Example
foo@bar.invalid
email_verified_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
user_levelstring
Example
moderator
superadmin_capabilitiesArray<string> | nulloperativefinancelegal

Granular capabilities array for superadmin users (operative, finance, legal)

Example
[
  "operative",
  "finance",
  "legal"
]
created_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
updated_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
tenant_idinteger
Example
1
last_active_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
aup_accepted_atstring<date-time> | null
Example
2026-08-15T12:00:00+00:00
aup_version_numberinteger | null
Example
1

In some cases superadmin can see user tokens

Show child attributes
idinteger
Example
1
tokenstring
Example
1|...
created_atstring<date-time>
last_used_atstring<date-time> | null
Show child attributes
ipstring
Example
255.255.255.255
added_atinteger<timestamp>
Example
1765205985
401Unauthorized

Unauthorized

403Forbidden

Forbidden

Authorization

ApiKeyAuthapiKey in header
BearerAuthhttp (bearer)

Update own user details

PUT
https://api.prompteasy.eu/v1/user

Body

application/json
namestring
emailstring
passwordstring
password_confirmationstring
current_passwordstring

Response

200OKUser

User object

Response fields application/json
idinteger
Example
1
namestring
Example
John Doe
emailstring
Example
foo@bar.invalid
email_verified_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
user_levelstring
Example
moderator
superadmin_capabilitiesArray<string> | nulloperativefinancelegal

Granular capabilities array for superadmin users (operative, finance, legal)

Example
[
  "operative",
  "finance",
  "legal"
]
created_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
updated_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
tenant_idinteger
Example
1
last_active_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
aup_accepted_atstring<date-time> | null
Example
2026-08-15T12:00:00+00:00
aup_version_numberinteger | null
Example
1

In some cases superadmin can see user tokens

Show child attributes
idinteger
Example
1
tokenstring
Example
1|...
created_atstring<date-time>
last_used_atstring<date-time> | null
403Forbidden

Forbidden

Authorization

ApiKeyAuthapiKey in header
BearerAuthhttp (bearer)

Accept latest Acceptable Use Policy

POST
https://api.prompteasy.eu/v1/user/aup

Response

200OKobject

AUP accepted or already agreed

Response fields application/json
messagestring
Example
AUP accepted.
401Unauthorized

Unauthorized

403Forbidden

Forbidden

404Not Found

AUP contract not found

Authorization

ApiKeyAuthapiKey in header
BearerAuthhttp (bearer)

Remove own safe devices which doesn't require 2FA code

DELETE
https://api.prompteasy.eu/v1/user/2fa/devices

Response

204No Content

No Content

Authorization

ApiKeyAuthapiKey in header
BearerAuthhttp (bearer)

Show current user recovery codes

POST
https://api.prompteasy.eu/v1/user/2fa/recovery-codes/view

Body

application/json
current_passwordstring

Response

User recovery codes object

Response fields application/json
messagestring
Example
Recovery codes generated
recovery_codesArray<RecoveryCode>
Show child attributes
codestring
Example
1234-5678
used_atstring<date-time> | null
Example
null
422Unprocessable EntityValidationError

Unprocessable Entity

Response fields application/json
messagestring
Example
Validation failed
Show child attributes
nameArray<string>

Authorization

ApiKeyAuthapiKey in header
BearerAuthhttp (bearer)

Generate recovery codes for current user

POST
https://api.prompteasy.eu/v1/user/2fa/recovery-codes/regenerate

Body

application/json
current_passwordstring

Response

User recovery codes object

Response fields application/json
messagestring
Example
Recovery codes generated
recovery_codesArray<RecoveryCode>
Show child attributes
codestring
Example
1234-5678
used_atstring<date-time> | null
Example
null
422Unprocessable EntityValidationError

Unprocessable Entity

Response fields application/json
messagestring
Example
Validation failed
Show child attributes
nameArray<string>

Authorization

ApiKeyAuthapiKey in header
BearerAuthhttp (bearer)

Get a list of users in the tenant

GET
https://api.prompteasy.eu/v1/users

Response

A list of users

Response fields application/json
Show child attributes
idinteger
Example
1
namestring
Example
John Doe
emailstring
Example
foo@bar.invalid
email_verified_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
user_levelstring
Example
moderator
superadmin_capabilitiesArray<string> | nulloperativefinancelegal

Granular capabilities array for superadmin users (operative, finance, legal)

Example
[
  "operative",
  "finance",
  "legal"
]
created_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
updated_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
tenant_idinteger
Example
1
last_active_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
aup_accepted_atstring<date-time> | null
Example
2026-08-15T12:00:00+00:00
aup_version_numberinteger | null
Example
1

In some cases superadmin can see user tokens

Show child attributes
idinteger
Example
1
tokenstring
Example
1|...
created_atstring<date-time>
last_used_atstring<date-time> | null
403Forbidden

Forbidden

Authorization

ApiKeyAuthapiKey in header
BearerAuthhttp (bearer)

Create a new user

POST
https://api.prompteasy.eu/v1/users

Body

application/json
namestring
emailstring
user_levelstring
superadmin_capabilitiesArray<string> | nulloperativefinancelegal

Granular capabilities array for superadmin users (operative, finance, legal)

Example
[
  "operative",
  "finance",
  "legal"
]

Response

201CreatedUser

User object

Response fields application/json
idinteger
Example
1
namestring
Example
John Doe
emailstring
Example
foo@bar.invalid
email_verified_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
user_levelstring
Example
moderator
superadmin_capabilitiesArray<string> | nulloperativefinancelegal

Granular capabilities array for superadmin users (operative, finance, legal)

Example
[
  "operative",
  "finance",
  "legal"
]
created_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
updated_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
tenant_idinteger
Example
1
last_active_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
aup_accepted_atstring<date-time> | null
Example
2026-08-15T12:00:00+00:00
aup_version_numberinteger | null
Example
1

In some cases superadmin can see user tokens

Show child attributes
idinteger
Example
1
tokenstring
Example
1|...
created_atstring<date-time>
last_used_atstring<date-time> | null
403Forbidden

Forbidden

422Unprocessable EntityValidationError

Unprocessable Entity

Response fields application/json
messagestring
Example
Validation failed
Show child attributes
nameArray<string>

Authorization

ApiKeyAuthapiKey in header
BearerAuthhttp (bearer)

Create a service account (bot user)

POST
https://api.prompteasy.eu/v1/users/service-account

Body

application/json
namestring
Example
Bot User
is_adminboolean
Example
false
api_accessboolean

Whether the service account has API access

Example
true

Response

201CreatedServiceAccount

Service account object with token

Response fields application/json
userUser
Show child attributes
idinteger
Example
1
namestring
Example
John Doe
emailstring
Example
foo@bar.invalid
email_verified_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
user_levelstring
Example
moderator
superadmin_capabilitiesArray<string> | nulloperativefinancelegal

Granular capabilities array for superadmin users (operative, finance, legal)

Example
[
  "operative",
  "finance",
  "legal"
]
created_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
updated_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
tenant_idinteger
Example
1
last_active_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
aup_accepted_atstring<date-time> | null
Example
2026-08-15T12:00:00+00:00
aup_version_numberinteger | null
Example
1

In some cases superadmin can see user tokens

Show child attributes
idinteger
Example
1
tokenstring
Example
1|...
created_atstring<date-time>
last_used_atstring<date-time> | null
tokenstring
Example
1|...
403Forbidden

Forbidden

422Unprocessable EntityValidationError

Unprocessable Entity

Response fields application/json
messagestring
Example
Validation failed
Show child attributes
nameArray<string>

Authorization

ApiKeyAuthapiKey in header
BearerAuthhttp (bearer)

Get user details

GET
https://api.prompteasy.eu/v1/users/{user}

Parameters

userintegerrequiredpath

Response

200OKUser

User object

Response fields application/json
idinteger
Example
1
namestring
Example
John Doe
emailstring
Example
foo@bar.invalid
email_verified_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
user_levelstring
Example
moderator
superadmin_capabilitiesArray<string> | nulloperativefinancelegal

Granular capabilities array for superadmin users (operative, finance, legal)

Example
[
  "operative",
  "finance",
  "legal"
]
created_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
updated_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
tenant_idinteger
Example
1
last_active_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
aup_accepted_atstring<date-time> | null
Example
2026-08-15T12:00:00+00:00
aup_version_numberinteger | null
Example
1

In some cases superadmin can see user tokens

Show child attributes
idinteger
Example
1
tokenstring
Example
1|...
created_atstring<date-time>
last_used_atstring<date-time> | null
401Unauthorized

Unauthorized

403Forbidden

Forbidden

Authorization

ApiKeyAuthapiKey in header
BearerAuthhttp (bearer)

Update a user

PUT
https://api.prompteasy.eu/v1/users/{user}

Body

application/json
One of
namestring
emailstring
passwordstring
password_confirmationstring
email_verified_atboolean
user_levelstring
superadmin_capabilitiesArray<string> | nulloperativefinancelegal

Granular capabilities array for superadmin users (operative, finance, legal)

Example
[
  "operative",
  "finance",
  "legal"
]
namestring
Example
Bot User
emailstring
Example
bot@tenant.invalid
passwordstring
Example
temporaryPassword123
password_confirmationstring
Example
temporaryPassword123
email_verified_atboolean
Example
true
user_levelstring
Example
user
api_accessboolean

API access configuration (only available for service accounts/bot users on Enterprise plan)

Example
true

Parameters

userintegerrequiredpath

Response

200OKUser

User object

Response fields application/json
idinteger
Example
1
namestring
Example
John Doe
emailstring
Example
foo@bar.invalid
email_verified_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
user_levelstring
Example
moderator
superadmin_capabilitiesArray<string> | nulloperativefinancelegal

Granular capabilities array for superadmin users (operative, finance, legal)

Example
[
  "operative",
  "finance",
  "legal"
]
created_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
updated_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
tenant_idinteger
Example
1
last_active_atstring<date-time>
Example
2025-12-02T18:24:52+00:00
aup_accepted_atstring<date-time> | null
Example
2026-08-15T12:00:00+00:00
aup_version_numberinteger | null
Example
1

In some cases superadmin can see user tokens

Show child attributes
idinteger
Example
1
tokenstring
Example
1|...
created_atstring<date-time>
last_used_atstring<date-time> | null
403Forbidden

Forbidden

422Unprocessable EntityValidationError

Unprocessable Entity

Response fields application/json
messagestring
Example
Validation failed
Show child attributes
nameArray<string>

Authorization

ApiKeyAuthapiKey in header
BearerAuthhttp (bearer)

Delete a user

DELETE
https://api.prompteasy.eu/v1/users/{user}

Parameters

userintegerrequiredpath

Response

204No Content

No Content

403Forbidden

Forbidden

Authorization

ApiKeyAuthapiKey in header
BearerAuthhttp (bearer)

Remove current user 2FA and send email notification to user to set up 2FA again

DELETE
https://api.prompteasy.eu/v1/users/{user}/2fa

Parameters

userintegerrequiredpath

Response

204No Content

No Content

403Forbidden

Forbidden

Authorization

ApiKeyAuthapiKey in header
BearerAuthhttp (bearer)

Get active user and tenant metadata

GET
https://api.prompteasy.eu/v1/metadata

Response

User metadata

Response fields application/json
user_idinteger
Example
1
userstring
Example
John Doe
levelstring
Example
superadmin
superadmin_capabilitiesArray<string> | nulloperativefinancelegal

Granular capabilities array for superadmin users (operative, finance, legal)

Example
[
  "operative",
  "finance",
  "legal"
]
tenantstring
Example
Acme Inc.
days_to_next_paymentinteger
Example
-6
is_trialboolean
Example
true
has_set_payment_detailsboolean
Example
true
country_codestring
Example
BE
individualboolean
Example
false
ai_enabledboolean
Example
false
auto_approve_suggestionsboolean
Example
false
cfo_board_enabledboolean

Indicates whether the CFO Board telemetry pipeline is enabled for the tenant

Example
true
planstring
Example
premium
aup_missingboolean

Indicates whether the user still needs to agree to the latest Acceptable Use Policy

Example
false
Show child attributes
idinteger
Example
1
namestring
Example
Tech Team
rolestring
Example
viewer
401Unauthorized

Unauthorized

Authorization

ApiKeyAuthapiKey in header
BearerAuthhttp (bearer)