userAccount

This page contains the documentation for the account endpoints.

The account endpoints allow you to register an account, get an API key, validate your key, get users' details, and edit a user's details.

Register an Account

post
/auth/register

This endpoint allows you to register a user. Once registered, it will return an API key.

Body
namestringRequired

The name of the user.

emailstring · emailRequired

The email address of the user.

passwordstringRequired

The password for the account.

adminbooleanOptional

Specifies whether the user has administrative privileges.

Default: false
Responses
post
/auth/register

Get an API key

post
/auth/login

This endpoint allows you to login to an account and retrieve an API key.

Body
emailstring · emailRequired

The email address of the user.

passwordstringRequired

The password of the account.

Responses
post
/auth/login

Validate API key

get
/auth/validate

This endpoint allows you to validate your API key.

Authorizations
AuthorizationstringRequired

Provide your API key.

Responses
get
/auth/validate

Get Users

get
/users/get_all/{page}

This endpoint allows you to get the info about the users in the application.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Provide your API key.

Path parameters
pageinteger · min: 1Required

The page number to retrieve (1-based index). Each page returns 20 users.

Responses
get
/users/get_all/{page}

Edit User Details

post
/users/edit

This endpoint allows you to edit a user's details. This requires admin privileges.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Provide your API key.

Body
userIdstringOptional

The user ID of the account to modify. You can get the list of user ID by using the POST /users/get_all/{page} endpoint.

newNamestringOptional

The new name for the user.

newEmailstring · emailOptional

The new email for the user.

newAdminStatusbooleanOptional

The new admin status for the user.

  • true: The user has admin privileges.
  • false: The user does not have admin previleges.
Responses
post
/users/edit

Last updated