Description

This endpoint returns a bearer token that can be used to authorize requests to protected endpoints.

Request

Endpoint:
POST /auth/token
Headers:
Content-Type: application/json
Body:
{
  "username": "your_username",
  "password": "your_password"
}
The actual required body depends on your Cognito client setup.

Response

200 OK
{
  "access_token": "<token>",
  "expires_in": 3600,
  "token_type": "Bearer"
}

Notes

Use the access_token from the response as the Authorization header value in future requests.