Sign out
DELETE
/auth/logout
const url = 'https://acme.mykreezalid.com/front_api/v1/auth/logout';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://acme.mykreezalid.com/front_api/v1/auth/logout \ --header 'Authorization: Bearer <token>'Ends the member’s server-side session and revokes every access token of the member issued until now, on all their devices. Delete the token from your app as well.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The session has ended.
Media typeapplication/json
object
code
integer
status
string
message
string
Example
{ "code": 200, "status": "success", "message": "You have been logged out"}No valid access token was sent.
Media typeapplication/json
Error body returned by the Front API when it refuses a request.
object
code
HTTP status code, repeated in the body.
integer
status
string
message
Human-readable reason.
string
Example
{ "code": 403, "status": "error", "message": "Token not found in request"}