Generate a temporal access token
POST/v1/auth/login
Generate temporal access token using a specific user's credentials
Request
- application/json
Body
required
User credentials to be used for login
The email of the organization user as registered in the records.
The password of the organization user as registered in the records.
The ID of the sub-account to be used for this login. This is only required when the user's organization has multiple sub-accounts. NB: The list of available sub-accounts for a user's organization (if applicable and available) can be retrieved by making the request without this parameter (sub_account_id).
Responses
- 200
- 400
- 401
- 403
Success
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
- Array [
- ]
This is set to true if user's organization has multiple sub-accounts that can be accessed and a sub-account ID was not given in the request body.
sub_accounts object[]
An array of available sub-accounts for the user's organization.
The ID of the organization sub-account.
The name of the organization sub-account.
The access token to be used for subsequent requests.
{}
Bad request, Invalid email or password
Unauthorized, Invalid credentials specified
Forbidden Request