Create Authorization Token (log in)
This endpoint will create an authorization token (result of logging in) to be used by secured endpoints
Request
POST /auth/tokens
Authorization
N/A
Headers
N/A
Query Parameters
N/A
Body
{
"email": "<email>",
"password": "<password>"
}
Response
Response | Status Code | More Information |
---|---|---|
Success | 201 |
If the response is successful |
Validation Error | 422 |
Validation error for user input |
Internal Server Error | 500 |
Unknown error |
Validation Error (422)
When a 422
validation error is returned, additional information will be returned that can be used in the user interface. For more details about validation errors see Validation Errors.
Headers
A successful response will contain do payload (except for the generic correlationUUID
). The auth token will be specified in the Authorization
header.
Store this value, and provide it with any endpoints that are related to the survey (get
, patch
, etc.). For more information about how to correctly work with auth tokens, see Authorization Tokens.