access

POST /v1/access/impersonation/redeem

Exchange a single-use impersonation ticket for a session token.

Sve access krajnje tačke

Autentifikacija

Ova krajnja tačka je javna. Ona ne zahteva nikakve akreditive ni organizaciju — to je ono što čitaju naš sopstveni marketinški sajt i AI mašine za odgovore.

Ovaj krajnji tačka ne prihvata ID organizacije. Vaš ključ već identifikuje organizaciju kojoj pripada, a odgovor je ograničen na nju.

Isprobajte

Zamenite bilo šta u uglastim zagradama sopstvenim vrednostima, a ključni placeholder sa ključem sa vaše kontrolne table.

curl -X POST https://api.zinndigital.com/v1/access/impersonation/redeem \
  -H "Content-Type: application/json" \
  -d '{ "ticket": <string> }'

Prijavljeni ste? API konzola na vašoj kontrolnoj tabli automatski popunjava ID vaše stvarne organizacije i vaš sopstveni ključ, i izvršava zahtev nad API-jem uživo tako da možete videti stvarni odgovor. Otvorite ovu krajnju tačku u API konzoli

Detalji

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.

Telo zahteva

NazivVrstaObaveznoŠta je ovo
ticketstringDa

Odgovor

NazivVrstaObaveznoŠta je ovo
tokenstringDaThe customer session bearer token (carries the staff `act` claim).
expires_atstringDa
session_idstringDa
org_idstringDaThe single org this grant is good for.
org_namestringDa
actorstringDaThe real staff actor (`user:<id>`), for the banner.

Greške koje ovaj krajnji tačka može da vrati

401 · 422 · 429 · 503