Revoke a session

DELETE
/api/users/[user_id]/sessions/[session_id]

Path Parameters

user_id
string
Required

User Id

session_id
string
Required

Session Id

Authentication

X-API-KEY
header
Required

Api key needed to access the endpoints. X-API-KEY: Your_API_Key

Headers

accept
string
  • application/problem+json

Responses

204
No Content
422
Unprocessable Entity
404
Not Found
401
Unauthorized
403
Forbidden

Request Example

Request
curl -X DELETE "https://<your-domain>/api/users/{user_id}/sessions/{session_id}" \
 -H "X-API-KEY: <your-api-key>"

Response Example

Response
204 No Content
No Content