Skip to content

Authenticate

Authenticate

This endpoint will authenticate a user

REquest

POST /v2.0/auth/tokens

Headers

Header Required Notes
Content-Type: application/json required

Query Parameters

N/A

Body

The body of this request represents the credentials used to log in

{
    "email": "<email>",
    "phone": "<phone>",
    "password": "<password>"
}
  • Only email OR phone is required. Either can be used to log in
  • password is required

Response

Response Status Code More Information
Success 200 Successful response body details below
Validation Failed 422 more info
Internal Server Error 500 more info

Headers

Header Frequency Notes
Authorization always contains JWT token

Body

Contains data about the user and stacks (accounts) the user is authorized for

{
    "data": {
        "user": ... (details about user),
        "accounts" [
            ...array of stack (account) info
        ]
    },
    "correlationUUID": "<correlation-uuid>"
}