Skip to main content
POST
/
authenticate
cURL
curl --request POST \
  --url https://gateway.architect.exchange/api/authenticate \
  --header 'Content-Type: application/json' \
  --data '
{
  "password": "<string>",
  "username": "<string>",
  "expiration_seconds": 123,
  "totp": "<string>"
}
'
{
  "token": "<string>"
}

Body

application/json

Exchange credentials for a bearer token.

Must provide exactly one of:

  • username + password
  • api_key + secret
password
string
required
username
string
required
expiration_seconds
integer<int32>
required
totp
string | null

Optional 2FA code, if 2FA is enabled/required for the user.

Response

Token generated successfully

token
string
required

Strong type for Token with validation