API reference

API reference · Account

Sign out one device

DELETE/api/account/sessions/{id}Signed in session

By the id the list shows; it takes effect on that device's next request. Signing out this device clears this browser's cookie too. Same origin.

Parameters

Path and query parameters
FieldTypeWhat it is
id (path)requiredstringThe session's id from the list.

Answer 200

Signed out.

Fields of the 200 answer
FieldTypeWhat it is
okboolean
signedOutHereboolean

Errors

  • 401OpenAI shaped error.
  • 403OpenAI shaped error.
  • 404OpenAI shaped error.

Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.

Antimatter