access
POST /v1/access/impersonation/redeem
Exchange a single-use impersonation ticket for a session token.
Autentificare
Acest punct final este public. Nu necesită nicio acreditare și nicio organizație – este ceea ce citesc propriul nostru site de marketing și motoarele de răspuns AI.
Acest endpoint nu necesită un ID de organizație. Cheia ta identifică deja organizația căreia îi aparține, iar răspunsul este limitat la aceasta.
Încearcă
Înlocuiți tot ce se află între paranteze unghiulare cu propriile valori și substituentul cheie cu o cheie din tabloul de bord.
curl -X POST https://api.zinndigital.com/v1/access/impersonation/redeem \
-H "Content-Type: application/json" \
-d '{ "ticket": <string> }'Autentificat? Consola API din panoul de control îți completează ID-ul real al organizației și propria cheie și rulează cererea în API-ul live, astfel încât să poți vedea răspunsul efectiv. Deschideți acest punct final în consola API
Detalii
Called by the customer dashboard when a staff member follows an `ImpersonationGrant.url`. **Unauthenticated by design** — the caller is the app at the instant it has no session, which is the whole point. Authorisation is the ticket: single-use, five minutes, 32 bytes of entropy, stored only as a SHA-256 digest, and bound to a grant a staff member is on the audit log for opening. Every refusal returns the same 401 message. Distinguishing "no such ticket" from "already redeemed" from "expired" would tell a caller which of their guesses was once real.
Corp cerere
| Nume | Tip | Obligatoriu | Ce este |
|---|---|---|---|
ticket | string | Da | — |
Răspuns
| Nume | Tip | Obligatoriu | Ce este |
|---|---|---|---|
token | string | Da | The customer session bearer token (carries the staff `act` claim). |
expires_at | string | Da | — |
session_id | string | Da | — |
org_id | string | Da | The single org this grant is good for. |
org_name | string | Da | — |
actor | string | Da | The real staff actor (`user:<id>`), for the banner. |
Erori pe care le poate returna acest punct final
401 · 422 · 429 · 503