access
POST /v1/access/impersonation/redeem
Exchange a single-use impersonation ticket for a session token.
પ્રમાણીકરણ
આ એન્ડપૉઇન્ટ સાર્વજનિક છે. તે કોઈ ઓળખપત્ર કે કોઈ સંસ્થા લેતો નથી — તે એ છે જે અમારી પોતાની માર્કેટિંગ સાઇટ અને AI જવાબ આપતા એન્જિન વાંચે છે.
આ એન્ડપૉઇન્ટ કોઈ સંસ્થા આઈડી (organisation id) લેતું નથી. તમારી કી (key) પહેલેથી જ તે જે સંસ્થા સાથે સંબંધિત છે તેની ઓળખ કરે છે, અને પ્રતિસાદ (response) તે જ પૂરતો મર્યાદિત છે.
આયમાવો
કોઈપણ કૌંસમાં રહેલી બાબતને તમારા પોતાના મૂલ્યોથી બદલો અને કી પ્લેસહોલ્ડરને તમારા ડેશબોર્ડની કીથી બદલો.
curl -X POST https://api.zinndigital.com/v1/access/impersonation/redeem \
-H "Content-Type: application/json" \
-d '{ "ticket": <string> }'साइन ઇન કરેલ છે? તમારા ડેશબોર્ડમાં આવેલું API કન્સોલ તમારી વાસ્તવિક સંસ્થાની આઈડી અને તમારી પોતાની કી ભરે છે, અને લાઇવ API સામે વિનંતી ચલાવે છે જેથી તમે વાસ્તવિક પ્રતિસાદ જોઈ શકો. આ અંતિમબિંદુને API કન્સોલમાં ખોલો
વિગતો
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.
રિકવેસ્ટ બોડી
| નામ | પ્રકાર | જરૂરી | તે શું છે |
|---|---|---|---|
ticket | string | હા | — |
જવાબ
| નામ | પ્રકાર | જરૂરી | તે શું છે |
|---|---|---|---|
token | string | હા | The customer session bearer token (carries the staff `act` claim). |
expires_at | string | હા | — |
session_id | string | હા | — |
org_id | string | હા | The single org this grant is good for. |
org_name | string | હા | — |
actor | string | હા | The real staff actor (`user:<id>`), for the banner. |
આ એન્ડપોઇન્ટ જે ભૂલો પરત કરી શકે છે
401 · 422 · 429 · 503