For the complete documentation index, see llms.txt. This page is also available as Markdown.

Users

CreateApiKey creates a new API Key

post
/users/v1/api/create

priv_key is returned only once, in this response. It isn't stored and can't be retrieved again, only rotated via RotateApiKey

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Send 'Authorization: APIKey ' to authenticate with a API key.

Body
expiresAtstring · date-timeOptional
namestringRequired
scopesstring[]Required
Responses
200

A successful response.

application/json
apiKeystringRequired
privKeystringRequired
post/users/v1/api/create

UpdateApiKey overwrite the Api key information (scopes)

patch
/users/v1/api/{apiKeyId}

Full replace of scopes and expires_at. The key material itself is unchanged. Use RotateApiKey to replace credentials instead

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Send 'Authorization: APIKey ' to authenticate with a API key.

Path parameters
apiKeyIdstringRequired

api_key represents the api key returned after successfully creation

Body
expiresAtstring · date-timeOptional
scopesstring[]Required
Responses
200

A successful response.

application/json
object · UpdateApiKeyResponse represents the response body from the UpdateApi endpointOptional
patch/users/v1/api/{apiKeyId}

DeleteApiKey deletes the provided api key id

delete
/users/v1/api/{apiKeyId}/delete

Immediate and irreversible. Any client still using this key starts failing authentication right away

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Send 'Authorization: APIKey ' to authenticate with a API key.

Path parameters
apiKeyIdstringRequired

api_key represents the api key returned after successfully creation

Responses
200

A successful response.

application/json
object · DeleteApiKeyResponse represents the response body from the DeleteApi endpointOptional
delete/users/v1/api/{apiKeyId}/delete

RotateApiKey takes the provided Api Key and rotates credentials (changes Api Key, Pub Key and Priv Key)

patch
/users/v1/api/{apiKeyId}/rotate

The old api_key stops working immediately. Priv_key is only returned in this response, same as on creation

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Send 'Authorization: APIKey ' to authenticate with a API key.

Path parameters
apiKeyIdstringRequired

api_key represents the provided api key

Responses
200

A successful response.

application/json
apiKeystringRequired
privKeystringRequired
pubKeystringRequired
patch/users/v1/api/{apiKeyId}/rotate

GetApiKeyScopes returns the scopes associated to the provided api key id

get
/users/v1/api/{apiKeyId}/scopes

Scopes an API key carries directly, distinct from the calling user's own role-based scopes (see GetUserRoles)

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Send 'Authorization: APIKey ' to authenticate with a API key.

Path parameters
apiKeyIdstringRequired

api_key represents the provided api key

Responses
200

A successful response.

application/json
scopesstring[]Required
get/users/v1/api/{apiKeyId}/scopes

GetUserApiKeys returns all the user api keys

get
/users/v1/api/{userId}/api-keys

Never includes priv_key. That's only ever returned once, at creation/rotation time

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Send 'Authorization: APIKey ' to authenticate with a API key.

Path parameters
userIdstringRequired

user_id represents the user identifier

Responses
200

A successful response.

application/json
get/users/v1/api/{userId}/api-keys

Me is the endpoint to get the current authenticated user

get
/users/v1/users/me

Also returns the active account (with KYC and wallets) and the caller's roles, which GetUser doesn't include

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Send 'Authorization: APIKey ' to authenticate with a API key.

Responses
200

A successful response.

application/json
rolesstring[]Required
get/users/v1/users/me

UpdateMyProfile is the endpoint for a user to update their own profile (display_name, language).

patch
/users/v1/users/me/change_profile

Self-service only. No user_id in the request, it always acts on the caller.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Send 'Authorization: APIKey ' to authenticate with a API key.

Body
displayNamestringRequired
languagestringRequired
Responses
200

A successful response.

application/json
object · UpdateMyProfileResponse is the body response for the user self-update profile endpointOptional
patch/users/v1/users/me/change_profile

GetUser returns a single user

get
/users/v1/users/{userId}

Lookup by user_id. For the caller's own profile use Me instead

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Send 'Authorization: APIKey ' to authenticate with a API key.

Path parameters
userIdstringRequired

user_id represents the user identifier

Responses
200

A successful response.

application/json
accountsstring[]Required
get/users/v1/users/{userId}

UpdateLanguage is the endpoint to update the user language

patch
/users/v1/users/{userId}/language

Callable on any user. For a user updating their own language use UpdateMyProfile instead

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Send 'Authorization: APIKey ' to authenticate with a API key.

Path parameters
userIdstringRequired

user_id represents the user identifier

Body
languagestringRequired
Responses
200

A successful response.

application/json
object · UpdateLanguageResponse is the body response for the update language endpointOptional
patch/users/v1/users/{userId}/language

GetUserRoles is the endpoint to get the user roles and scopes

get
/users/v1/users/{userId}/roles

scopes is the flattened, deduplicated union of every role's scopes This is what actually determines the user's permissions

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Send 'Authorization: APIKey ' to authenticate with a API key.

Path parameters
userIdstringRequired

user_id represents the user identifier

Responses
200

A successful response.

application/json
scopesstring[]Required
get/users/v1/users/{userId}/roles

GetUserSettings returns the settings for a user

get
/users/v1/users/{userId}/settings

Currently just max_allowance. Update via PatchUserSettings

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Send 'Authorization: APIKey ' to authenticate with a API key.

Path parameters
userIdstringRequired

user_id is the user identifier

Responses
200

A successful response.

application/json
get/users/v1/users/{userId}/settings

PatchUserSettings partially updates the settings for a user. Any setting not set in the body will be left unchanged.

patch
/users/v1/users/{userId}/settings

max_allowance is optional in the request specifically so it can be omitted to leave the current value untouched

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Send 'Authorization: APIKey ' to authenticate with a API key.

Path parameters
userIdstringRequired

user_id is the user identifier

Body
maxAllowancebooleanOptional
Responses
200

A successful response.

application/json
object · PatchUserSettingsResponse is the response for the patch user settings endpointOptional
patch/users/v1/users/{userId}/settings

GetMfaMethods returns the Mfa method registered for the user (if any)

get
/users/v1/{userId}/mfa/methods

Only non-sensitive info per method (type, label, verified/primary flags). Never secrets like the TOTP seed

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Send 'Authorization: APIKey ' to authenticate with a API key.

Path parameters
userIdstringRequired

user_id represents the user identifier

Responses
200

A successful response.

application/json
get/users/v1/{userId}/mfa/methods

Last updated