Skip to main content
POST
/
auth
/
getApiToken
Get API token for current session
curl --request POST \
  --url http://api.superwize.ai/api/auth/getApiToken \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyXzAxSkhLWVY4Rk1TMjM0NTY3ODkwIiwiaWF0IjoxNzY3MjI1NjAwLCJleHAiOjE3NjczMTIwMDB9.signed-example-token",
  "expiresAt": 1767312000000,
  "tokenType": "session"
}

Body

application/json

The body is of type object.

Response

API token resolved for the active session.

token
string
required
expiresAt
number | null
required
tokenType
any
required