access

POST /v1/access/impersonation/redeem

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

Tous les points de terminaison access

Authentification

Cet point de terminaison est public. Il ne nécessite aucun identifiant ni aucune organisation : c'est ce que notre propre site marketing et nos moteurs de réponse IA lisent.

Cet endpoint ne prend aucun identifiant d'organisation. Votre clé identifie déjà l'organisation à laquelle elle appartient, et la réponse y est limitée.

Essayer

Remplacez tout ce qui se trouve entre crochets par vos propres valeurs, et le espace réservé à la clé par une clé de votre tableau de bord.

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

Connecté ? La console d'API de votre tableau de bord saisit votre véritable ID d'organisation ainsi que votre propre clé, et exécute la requête sur l'API de production afin que vous puissiez voir la réponse réelle. Ouvrir ce point de terminaison dans la console API

Détails

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.

Corps de la requête

NomTypeObligatoireQu'est-ce que c'est
ticketstringOui

Réponse

NomTypeObligatoireQu'est-ce que c'est
tokenstringOuiThe customer session bearer token (carries the staff `act` claim).
expires_atstringOui
session_idstringOui
org_idstringOuiThe single org this grant is good for.
org_namestringOui
actorstringOuiThe real staff actor (`user:<id>`), for the banner.

Erreurs que cet point de terminaison peut renvoyer

401 · 422 · 429 · 503