access

POST /v1/access/impersonation/redeem

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

Todos os endpoints de access

Autenticação

Este endpoint é público. Ele não requer credenciais nem organização — é o que nosso próprio site de marketing e os mecanismos de resposta de IA leem.

Este endpoint não requer um ID de organização. Sua chave já identifica a organização à qual pertence, e a resposta é delimitada a ela.

Experimente

Substitua qualquer item entre colchetes por seus próprios valores e o espaço reservado para a chave por uma chave do seu painel.

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

Conectado? O console da API no seu painel preenche o ID da sua organização real e a sua própria chave, e executa a requisição contra a API de produção para que você possa ver a resposta real. Abra este endpoint no console da API

Detalhes

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.

Corpo da requisição

NomeTipoObrigatórioO que é
ticketstringSim

Resposta

NomeTipoObrigatórioO que é
tokenstringSimThe customer session bearer token (carries the staff `act` claim).
expires_atstringSim
session_idstringSim
org_idstringSimThe single org this grant is good for.
org_namestringSim
actorstringSimThe real staff actor (`user:<id>`), for the banner.

Erros que este endpoint pode retornar

401 · 422 · 429 · 503