Shotstash
API referenceREST referenceAuth

Sign out

Revokes the session of the Bearer token and clears the media cookie. No body.

Try the REST routes against the public demo at https://demostash.aldyernesto.my.id. Get a read-only token (valid for 60 minutes), then paste it as the Bearer token in the console of any route.

POST
/api/v1/auth/logout

Revokes the session of the Bearer token and clears the media cookie. No body.

Authorization

SessionToken
headerAuthorizationBearer <token>

Session token from POST /api/v1/auth/login or the login mutation, sent as Authorization: Bearer <token>.

Response Body

Signed out

application/json
  1. response
ok*true

Always true.

Value intrue
curl -X POST "https://example.com/api/v1/auth/logout"
{  "ok": true}