Skip to main content
POST
/
auth
/
token
Authenticate user and get access token
curl --request POST \
  --url https://api.console.corti.app/functions/v1/public/auth/token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]",
  "password": "<string>"
}
'
{
  "accessToken": "<string>",
  "tokenType": "bearer",
  "expiresIn": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
email
string<email>
required

User's email address

password
string
required

User's password

Response

Authentication successful

accessToken
string
required

JWT access token

tokenType
string
required
Example:

"bearer"

expiresIn
integer
required

Token expiration time in seconds