Sign out
POST
/api/v1/auth/sign-out
const url = 'http://localhost:8080/api/v1/auth/sign-out';const options = {method: 'POST', 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 POST \ --url http://localhost:8080/api/v1/auth/sign-out \ --header 'Authorization: Bearer <token>'Ends the session whose token the request carries.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Signed out.
The request has no valid session token.
Media typeapplication/json
object
code
required
string
message
required
Explains the problem to a developer.
string
Example
{ "code": "bad_request"}The server failed; details are in its log.
Media typeapplication/json
object
code
required
string
message
required
Explains the problem to a developer.
string
Example
{ "code": "bad_request"}