Skip to content

Get current authentication token

GET
/api/user/token
curl --request GET \
--url https://example.com/api/user/token \
--header 'Authorization: Bearer <token>'

Retrieves the current user’s JWT authentication token from the session

Token retrieved successfully

Media typeapplication/json
object
token
required

JWT authentication token

string
Examplegenerated
{
"token": "example"
}

Not authenticated

Media typeapplication/json
object
error
required

Indicates an error occurred

boolean
message
required

Error message describing what went wrong

string
Example
{
"error": true,
"message": "Item not found"
}