Skip to content

End active impersonation session

POST/session/impersonation/end

Ends the currently active impersonation session and returns the admin to their normal control-plane context. The impersonation session record is updated with a termination timestamp. Can be called by the impersonating admin at any time.

Request

This endpoint takes no parameters and no request body.

Responses

200 Impersonation session ended and admin returned to normal context

Content type application/json, object.

FieldTypeRequiredDescription
messagestringNo

Example

{
  "message": "Impersonation session ended."
}

409 No active impersonation session to end

Example request

Paths are relative to the control-plane API base URL ($BASE_URL below).

curl -X POST "$BASE_URL/session/impersonation/end" \
  -H "Accept: application/json"
Loading