access
POST /v1/access/impersonation/end
Exit the current impersonation session (revoke).
Authenticatie
Stuur een API-sleutel mee als bearer token. Dit eindpunt vermeldt geen specifieke toestemming in de specificatie, dus geef uw sleutel de minimale rechten die nodig zijn en controleer het antwoord in plaats van zomaar wat aan te nemen.
Dit eindpunt vereist geen organisatie-id. Uw sleutel identificeert al de organisatie waartoe deze behoort, en het antwoord is hierop afgestemd.
Probeer het
Vervang alles tussen punthaakjes door uw eigen waarden en de sleutelplaatsvervanger door een sleutel uit uw dashboard.
curl -X POST https://api.zinndigital.com/v1/access/impersonation/end \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ }'Ingelogd? De API-console in je dashboard vult je echte organisatie-id en je eigen sleutel in, en voert het verzoek uit tegen de live API zodat je de daadwerkelijke respons kunt zien. Open dit eindpunt in de API-console
Details
Ends the calling impersonation session. Marking the grant ended **is** the revocation: the authenticator re-reads the row on every request, so the token stops working on the very next call rather than when it happens to expire. Audit-logged with the real staff actor. Returns 409 if the caller is not in an impersonation session.
Aanvraaglichaam
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
refresh_token | string | Nee | Ignored. There is no upstream session to revoke. |
Reactie
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
ended | boolean | Ja | — |
Fouten die dit eindpunt kan retourneren
401 · 409 · 429 · 503