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. The access token itself is not revoked: it stays valid until it expires, and a request that sends it is signed in again. Delete the token from your app when the member signs out.
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"}