End a customer session
Revokes the session this request is authenticated with. There is no body — the token you send IS the session being ended — and it stops being accepted across the platform rather than only on this route.
POST/api/v3/users/logout
Send two credentials: your own, and the customer's.
How authentication works- Yours
x-api-keyorAuthorization: Bearer- The customer's
User-Authorization: BearerorUser-Identifier
Language
Environment
Credentials
Your credential
The customer's credential
Choose an environment first.
cURL request
curl -X POST https://api.btcdirect.eu/api/v3/users/logout \ -H "x-api-key: $BTCD_API_KEY" \ -H "User-Authorization: Bearer $BTCD_USER_TOKEN"Choose an environment to run this.
Response
OK
{ "message": "OK."}Responses
200OK400Invalid request.401Bad credentials.503`maintenance` — full maintenance is on, and every endpoint refuses every request until it ends (`endsAt`, when it has an end). Nothing is wrong with the request and nothing was done; the same request is accepted afterwards. Told apart from any other 503 by `code`.Every failure answers with a message and a code. Switch on the code — messages are written for people and can change.