GET /teams/{teamId}/flowcharts/{id}
Retorna flowchart completo (com document).
- Acesso: Membro da equipe
- Serviço:
https://api-flow.axuz.net
Autenticação aceita
sessionCookie— Sessão plena Axuz (cookie de sessão da casa). Sessão restrita é 403 enrollment_required.bearerSession— JWT de acesso da sessão em `Authorization: Bearer`.
Serve GET /teams/{teamId}/flowcharts/{id} — devolve o Flowchart completo (com document + version).
Motivo: primeira carga do editor. Distinção NotFound (404) vs erro DB (500) explícita pro cliente.
Entradas: URL {teamId}/{id}, JWT.
Retorno: 200 Flowchart, 404 quando não existe/soft-delete, 500 DB.
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
teamId | path | string | sim | |
id | path | string | sim |
Respostas
200
OK.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
id | string<uuid> | sim | |
team_id | string<uuid> | sim | |
created_by | string<uuid> | sim | |
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 | |
version | integer | sim | |
public_share_token | string | null | não | Legacy single-token share. |
public_share_expires_at | string<date-time> | null | não | |
has_share | boolean | sim | |
created_at | string<date-time> | sim | |
updated_at | string<date-time> | sim |
400
Payload inválido.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
401
JWT ausente/expirado.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
403
Sem permissao (nao e owner/admin; token sem escopo; token de integracao em rota nao permitida)
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
404
Recurso não encontrado ou fora de escopo.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
429
Limite de requisições excedido.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
500
Falha inesperada (log + trace).
| 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/teams/TEAM_ID/flowcharts/ID' \
-H "Authorization: Bearer $AXUZ_TOKEN"Node.js
const res = await fetch("https://api-flow.axuz.net/teams/TEAM_ID/flowcharts/ID", {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.AXUZ_TOKEN}`,
},
});
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/teams/TEAM_ID/flowcharts/ID",
headers={
"Authorization": f"Bearer {os.environ['AXUZ_TOKEN']}",
},
timeout=30,
)
res.raise_for_status()
print(res.json())