Account Session

Revoke Session

Delete the X session cookies stored against your API key. The key is taken from the authenticated request, and the handler reads no identity from the body, the query string, or any second header, so a call can only ever remove the caller's own stored session. It is idempotent and answers 200 whether or not a row was there to remove. This call is free. Cost: Free per call.

post/customer/session/delete

Request

  • Base URL: https://api.twitterapis.com/twitter
  • URL: https://api.twitterapis.com/twitter/customer/session/delete
  • Auth: HTTP bearer

Response

Delete the auth_token and ct0 you registered, so we no longer hold your X session cookies. Self-serve, idempotent, and free.

okboolean

Always true. The request was accepted and no stored session for your API key remains.

deletedboolean

True when a stored session was found and removed. False when nothing was stored for this API key, for example after an earlier revoke, or when you only ever sent per-call x-auth-token and x-ct0 credentials.

messagestring

Human-readable confirmation. The wording differs depending on whether a stored session was removed.

Changes

No recorded changes to this operation across all 1 revision of this API.