Sign out user
Logout user
POST
/{apiBasePath}/signoutAuthorization
AuthorizationBearer token · headerrequiredReturned as the "st-access-token" header from sign-in and refresh endpoints and present on requests that update the access token payload
or
sAccessTokenAPI key · cookierequiredThis is an HTTPOnly cookie, set by sign-in and refresh endpoints and present on requests that update the access token
Path parameters
apiBasePathstringrequiredIts value depends on the apiBasePath set by the user
Header parameters
ridstringThe recipe ID for the request
anti-csrftokenThis will only be here if enabled by the user.
Request body
application/jsonobjectResponses
200Logout user
One of:
object
statusstatusOKSuccess status indicator
Allowed:
OKgeneralErrorResponse
statusstringError status code
Allowed:
GENERAL_ERRORmessagestringError message
404Resource not found error
string500Internal server error
stringTry it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST "/auth/signout" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'const response = await fetch("/auth/signout", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({})
});import requests
response = requests.post(
"/auth/signout",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json={},
)Response
{
"status": "OK"
}"Not Found""Internal Error"