{ "meta": ..., "data": ... } envelope, where data holds the value described under each endpoint.
POST /api/user/register
Create the admin user and company account with the related parameters. After registering, a confirmation code is emailed to the user.Authorization
This endpoint is unauthenticated. No access token is required.Request Body
The request body must be inapplication/json format.
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
email | string | Yes | Email address (used as the username) | Valid email |
password | string | Yes | Account password | Min 3 characters |
company_name | string | Yes | Your company name | [ 2 .. 60 ] characters |
first_name | string or null | No | First name | [ 1 .. 50 ] characters |
last_name | string or null | No | Last name | [ 1 .. 50 ] characters |
company_description | string or null | No | Description of your company | Max 1024 characters |
country | string or null | No | Country | [ 2 .. 60 ] characters |
Request Example
Responses
- 200: Successful Response
- 422: Validation Error
POST /api/user/confirm
Confirm the registration of the user using the confirmation code that was emailed during registration.Authorization
This endpoint is unauthenticated. No access token is required.Request Body
The request body must be inapplication/json format.
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
email | string | Yes | Email address | Valid email |
confirmation_code | string | Yes | The confirmation code sent by email |
Request Example
Responses
- 200: Successful Response
- 422: Validation Error
POST /api/user/resend-confirmation-code
Resend the registration verification code to the user’s email.Authorization
This endpoint is unauthenticated. No access token is required.Request Body
The request body must be inapplication/json format.
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
email | string | Yes | Email address | Valid email |
Request Example
Responses
- 200: Successful Response
- 422: Validation Error
POST /api/user/initiate-set-password
Used for the user’s initial authentication. Exchanges a temporary password for a new password and returns the authentication tokens. This is required when an account was created with a temporary password and login returns aNEW_PASSWORD_REQUIRED challenge.
Authorization
This endpoint is unauthenticated. No access token is required (the temporary password is supplied in the body).Request Body
The request body must be inapplication/json format.
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
email | string | Yes | Email address | Valid email |
temporary_password | string | Yes | The temporary password | Min 3 characters |
new_password | string | Yes | The new password to set | Min 3 characters |
Request Example
Responses
- 200: Successful Response
- 422: Validation Error
POST /api/user/login
Log in with email and password to obtain theaccess_token, id_token, and refresh_token. The id_token is the Bearer token used to authenticate the other user and application endpoints.
Authorization
This endpoint is unauthenticated. No access token is required.Request Body
The request body must be inapplication/json format.
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
email | string | Yes | Email address | Valid email |
password | string | Yes | Password |
Request Example
Responses
- 200: Successful Response
- 422: Validation Error
GET /api/user/me
Get the current user’s information using theid_token.
Authorization
🔒OAuth2: OAuth2PasswordBearerFlow type: password
Token URL: token
Responses
- 200: Successful Response
POST /api/user/forgot-password
Send a confirmation code to the user’s email to begin a password reset.Authorization
This endpoint is unauthenticated. No access token is required.Request Body
The request body must be inapplication/json format.
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
email | string | Yes | Email address | Valid email |
Request Example
Responses
- 200: Successful Response
- 422: Validation Error
POST /api/user/reset-password
Reset the password for the user using the confirmation code sent byforgot-password.
Authorization
This endpoint is unauthenticated. No access token is required.Request Body
The request body must be inapplication/json format.
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
email | string | Yes | Email address | Valid email |
confirmation_code | string | Yes | The confirmation code sent by email | |
new_password | string | Yes | The new password to set |
Request Example
Responses
- 200: Successful Response
- 422: Validation Error
DELETE /api/user/delete-current-account
Delete the currently authenticated user’s account. The user must have logged in successfully and supply a valid access token.Authorization
🔒OAuth2: OAuth2PasswordBearerFlow type: password
Token URL: token
Responses
- 200: Successful Response