access

POST /v1/access/impersonation/redeem

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

Všechny koncové body access

Autentizace

Tento koncový bod je veřejný. Nevyžaduje žádná pověření ani organizaci – je to to, co čte náš vlastní marketingový web a naše AI vyhledávače.

Tento koncový bod nevyžaduje žádné ID organizace. Váš klíč již identifikuje organizaci, ke které patří, a odpověď je na ni omezena.

Vyzvednout

Nahraďte cokoli v závorkách vlastními hodnotami a zástupný symbol klíče klíčem z vašeho řídicího panelu.

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

Přihlášeni? Konzole API ve vašem dashboardu automaticky doplní vaše skutečné ID organizace i váš vlastní klíč a odešle požadavek na živé API, abyste viděli reálnou odpověď. Otevřete tento koncový bod v konzoli API

Podrobnosti

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.

Tělo požadavku

NázevTypPožadovánoCo to je
ticketstringAno

Odpověď

NázevTypPožadovánoCo to je
tokenstringAnoThe customer session bearer token (carries the staff `act` claim).
expires_atstringAno
session_idstringAno
org_idstringAnoThe single org this grant is good for.
org_namestringAno
actorstringAnoThe real staff actor (`user:<id>`), for the banner.

Chyby, které může tento koncový bod vrátit

401 · 422 · 429 · 503