Skip to main content
POST
/
api
/
logout
Logout
curl --request POST \
  --url https://api.example.com/api/logout \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": "<string>"
}
'
{
  "status": "<string>"
}

Authorizations

Authorization
string
header
required

JWT token obtained from AWS Cognito or custom authentication service

Body

application/json

Logout request payload

token
string
required

JWT Token

Response

Logout successful

status
string

Status message