/impersonate/consent - Disable impersonation consent

DELETE /impersonate/consent

Disables all active impersonation consent for the authenticated user. This prevents any future impersonation until consent is re-enabled.

Responses

  • 200 application/json

    Impersonation consent disabled successfully

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
  • 401 application/json

    Unauthorized - invalid or missing token

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
DELETE /impersonate/consent
curl \
 --request DELETE 'https://api.your-domain.com/api/impersonate/consent' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "code": 200,
  "message": "impersonation consent disabled successfully",
  "data": {}
}
Response examples (401)
{
  "code": 401,
  "message": "invalid token",
  "data": {}
}