Authentication (Allauth Headless)

End one or more sessions

delete/api/v2/allauth/browser/v1/auth/sessions

Request

  • The document declares no server URL.
  • Auth: none declared

Path parameters

client'app' | 'browser' required

The type of client accessing the API.

Headers

X-Session-Tokenstring

Session token. Only needed when client is equal to app.

Request body

sessionsinteger[] required

The IDs of the sessions that are to be ended.

Example request

{
  "sessions": [
    123
  ]
}

Response

List of sessions.

status200 required

Example response

{
  "data": [
    {
      "user_agent": "Mozilla Firefox",
      "ip": "127.2.3.192",
      "created_at": 1711555057.065702,
      "id": 123,
      "last_seen_at": 1711555057.065702
    }
  ]
}

Changes

No recorded changes to this operation across all 50 revisions of this API.