End the session
POST
/api/auth/logout
const url = 'https://app.dycrypt.com/o/acme/api/auth/logout';const options = {method: 'POST', headers: {cookie: 'JSESSIONID=<JSESSIONID>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.dycrypt.com/o/acme/api/auth/logout \ --cookie JSESSIONID=<JSESSIONID>Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Ended.
Media typeapplication/json
object
ok
boolean
Examplegenerated
{ "ok": true}Not available to API tokens, or the caller is not an organisation administrator.
Media typeapplication/json
Every failure in this API has this shape and no other.
object
error
required
string
Example
{ "error": "this token does not have licenses:write"}