Skip to main content
POST
/
auth
/
logout
Logout the current user
curl --request POST \
  --url https://psn-api.paystub.dev/auth/logout \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {},
  "message": "Successfully logged out"
}

Authorizations

Authorization
string
header
required

Use your API token

Response

Successfully logged out

success
boolean
Example:

true

data
object
message
string
Example:

"Successfully logged out"