Axuz Developers

GET /public/flowcharts/{token}

Viewer público single-token (schema legado).

  • Access: Public (link or signature)
  • Service: https://api-flow.axuz.net

Accepted authentication

No authentication (public route, or protected by link/signature).

Back-compat com URLs distribuídas antes da Fase share-rebuild. Novos shares usam /public/shared/{token}.

Parameters

NameInTypeRequiredDescription
tokenpathstringyes

16 bytes hex (2^128 espaço).

Responses

200

OK.

NameTypeRequiredDescription
titlestringyes
documentFlowDocumentyes

Shape enxuta espelhando lib/types.ts:FlowDocument no client. Backend não valida a shape interna (opaco pro storage); os campos abaixo são o mínimo comum consumido pelo editor.

document.nodesarray<FlowNode>yes
document.nodes[].idstringyes
document.nodes[].typestringyes
document.nodes[].positionFlowXYyes
document.nodes[].position.xnumberyes
document.nodes[].position.ynumberyes
document.nodes[].widthinteger | nullno
document.nodes[].heightinteger | nullno
document.nodes[].parentNodestringno
document.nodes[].extentstringno
document.nodes[].dataobjectyes
document.nodes[].styleobjectno
document.edgesarray<FlowEdge>yes
document.edges[].idstringyes
document.edges[].sourcestringyes
document.edges[].targetstringyes
document.edges[].typestringno
document.edges[].dataobjectno
last_updated_atstring<date-time>yes

404

Token inválido / flowchart deletado / expirado.

NameTypeRequiredDescription
errorstringyes

429

Rate limit per-token (60 req/min).

NameTypeRequiredDescription
errorstringyes

500

Erro interno. Tente de novo com backoff; reporte o X-Request-Id.

NameTypeRequiredDescription
errorstringyes

Examples

"Try it" is turned off in this reference. Use the examples with your test credential.

curl

curl -sS -X GET 'https://api-flow.axuz.net/public/flowcharts/TOKEN'

Node.js

const res = await fetch("https://api-flow.axuz.net/public/flowcharts/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/flowcharts/TOKEN",
    timeout=30,
)
res.raise_for_status()
print(res.json())