GET /public/shared/{token}
Viewer público multi-mode share.
- Acesso: Pública (link ou assinatura)
- Serviço:
https://api-flow.axuz.net
Autenticação aceita
Sem autenticação (rota pública ou protegida por link/assinatura).
— GET /public/shared/{token}. No auth required for mode=public or mode=time. mode=email validates the VERIFIED session identity (signed access_token cookie/Bearer → email from the auth_api; the client-supplied X-User-Email header is ignored — TK-031b). Returns 403 {requires_login, email} when the caller is not authed as the target email.
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
token | path | string | sim | 16 bytes hex (2^128 espaço). |
X-User-Email | header | string | não | Obrigatório quando |
Respostas
200
OK.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
title | string | sim | |
document | FlowDocument | sim | Shape enxuta espelhando |
document.nodes | array<FlowNode> | sim | |
document.nodes[].id | string | sim | |
document.nodes[].type | string | sim | |
document.nodes[].position | FlowXY | sim | |
document.nodes[].position.x | number | sim | |
document.nodes[].position.y | number | sim | |
document.nodes[].width | integer | null | não | |
document.nodes[].height | integer | null | não | |
document.nodes[].parentNode | string | não | |
document.nodes[].extent | string | não | |
document.nodes[].data | object | sim | |
document.nodes[].style | object | não | |
document.edges | array<FlowEdge> | sim | |
document.edges[].id | string | sim | |
document.edges[].source | string | sim | |
document.edges[].target | string | sim | |
document.edges[].type | string | não | |
document.edges[].data | object | não | |
last_updated_at | string<date-time> | sim | |
readonly | boolean | sim | |
share | object | sim | |
share.mode | string | sim | enum: |
share.access | string | sim | enum: |
share.expires_at | string<date-time> | null | não |
403
Share mode=email e caller não é o target.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim | |
requires_login | boolean | sim | |
email | string<email> | null | não | Email alvo do share. |
404
Token inválido, revogado ou view-limit exceeded.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
410
Share expirou (expires_at < now).
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
429
Rate limit per-token.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
500
Erro interno. Tente de novo com backoff; reporte o X-Request-Id.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
Exemplos
O "Try it" está desligado nesta referência. Use os exemplos com a sua credencial de teste.
curl
curl -sS -X GET 'https://api-flow.axuz.net/public/shared/TOKEN'Node.js
const res = await fetch("https://api-flow.axuz.net/public/shared/TOKEN", {
method: 'GET',
});
if (!res.ok) throw new Error(`HTTP ${res.status}: ${await res.text()}`);
console.log(await res.json());Python
import os
import requests
res = requests.request(
"GET",
"https://api-flow.axuz.net/public/shared/TOKEN",
timeout=30,
)
res.raise_for_status()
print(res.json())