access

POST /v1/access/impersonation/redeem

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

Të gjitha pikat e skajshme access

Autentifikimi

Ky endpoint është publik. Ai nuk kërkon kredenciale dhe asnjë organizatë — është pikërisht ajo që lexojnë faqja jonë e marketingut dhe motorët e përgjigjeve të AI.

Ky pikëndalim nuk pranon id të organizatës. Çelësi juaj tashmë identifikon organizatën së cilës i përket dhe përgjigjja kufizohet vetëm për atë.

Provoje

Zëvendësoni çdo gjë brenda kllapave këndore me vlerat tuaja dhe vendbanuesin e çelësit me një çelës nga paneli juaj.

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

Jeni kyçur? Konsola e API-së në panelin tuaj plotëson ID-në tuaj reale të organizatës dhe çelësin tuaj, dhe ekzekuton kërkesën kundrejt API-së live, kështu që ju mund të shihni përgjigjen aktuale. Hapni këtë pikë fundore në konsolën e API-së

Detajet

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.

Trupi i kërkesës

EmriLlojiKërkohetÇfarë është kjo
ticketstringPo

Përgjigja

EmriLlojiKërkohetÇfarë është kjo
tokenstringPoThe customer session bearer token (carries the staff `act` claim).
expires_atstringPo
session_idstringPo
org_idstringPoThe single org this grant is good for.
org_namestringPo
actorstringPoThe real staff actor (`user:<id>`), for the banner.

Gabimet që ky pikëndalim mund të kthejë

401 · 422 · 429 · 503