Skip to main content
POST
/
v1
/
auth
/
logout
Sign Out Hosted Auth Member
curl --request POST \
  --url https://api.thefaithapp.com/v1/auth/logout \
  --header 'Authorization: Bearer <token>' \
  --header 'X-API-Key: <x-api-key>'
{
  "message": "<string>"
}
Revokes the current member bearer token. Use this when a member signs out of your app.

Example request

curl -X POST https://api.thefaithapp.com/v1/auth/logout \
  -H "X-API-Key: your-client-api-key" \
  -H "Authorization: Bearer member-bearer-token" \
  -H "Accept: application/json"

Request inputs

X-API-Key
string
required
Your client API key from Settings > Developer Access.

Response fields

message
string
required
Confirms the token was revoked.

Example response

{
  "message": "Logged out successfully."
}