Process to generate an API token

Step 1 - Get 2FA token: Generate a 2FA token
Step 2 - Get API token: Generate an API token using the 2FA token
Step 3 - Use of API token: This API token must be sent as the value for the x-api-key header for all authenticated requests

Request

This endpoint expects an object.
twofa_token_requestobjectRequired
Generate your 2FA token which can then be used to generate an API token
OR
api_token_requestobjectRequired
Retrieve the API token

Response

Successful operation
twofa_token_responseobject
OR
api_token_responseobject

Errors

401
Unauthorized Error