Userinfo

Sign the person's session out of your application

POST
/api/v1/userinfo/sessions/{session_id}/sign-out/

Ends your application's tokens and authorization codes on that one session. The person stays signed in on the device, their consent stands, and every other application keeps its tokens. session_not_found for a session that is not one of the list's.

Authorization

oauth2
AuthorizationBearer <token>

An OAuth2 access token issued through the authorization flow. Acts on a user's behalf, and reads only what that user's granted scopes disclose. A token whose user has since been deactivated or soft-deleted is rejected.

In: header

Path Parameters

session_id*string
Match^[1-9][0-9]{0,18}$

Response Body

application/json

application/json

application/json

application/json

application/json

Error codes

Every error response carries one of these in its code field. Branch on the code, never on the detail text.

Statuscode
401not_authenticated, authentication_failed
403permission_denied
404not_found, profile_section_hidden, session_not_found
429rate_limited

Before you run the sample

  • Replace ACCESS_TOKEN with your user's access token.
  • Set session_id (shown as SESSION_ID).
curl -X POST "https://example.com/api/v1/userinfo/sessions/SESSION_ID/sign-out/"
Empty