GET /teams/{teamId}/flowcharts/{id}/versions
Histórico (versão mais recente primeiro).
- Access: Team member
- Service:
https://api-flow.axuz.net
Accepted authentication
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`.
— devolve histórico (versão mais recente primeiro).
Query params: - significance = "commit" (default) | "stream" | "all" "commit" filtra stream — é o que a UI de histórico quer mostrar (drop, blur, delete deliberado — não o rastro de drag/keystroke). - limit = 1..1000 (default 200)
Adiciona nodes_count/edges_count computados do document (auxilia UI a sinalizar "aqui restauro pra X nodes/Y edges" sem carregar o doc).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
teamId | path | string | yes | |
id | path | string | yes |
Responses
200
OK.
| Name | Type | Required | Description |
|---|---|---|---|
items | array<FlowchartVersion> | yes | |
items[].id | string<uuid> | yes | |
items[].flowchart_id | string<uuid> | yes | |
items[].version | integer | yes | |
items[].created_by | string<uuid> | yes | |
items[].created_at | string<date-time> | yes | |
items[].source | string | yes | enum: |
items[].reason | string | null | no | |
items[].parent_version_id | string<uuid> | null | no |
401
JWT ausente/expirado.
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
403
Sem permissao (nao e owner/admin; token sem escopo; token de integracao em rota nao permitida)
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
404
Recurso não encontrado ou fora de escopo.
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
429
Limite de requisições excedido.
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
500
Falha inesperada (log + trace).
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
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/teams/TEAM_ID/flowcharts/ID/versions' \
-H "Authorization: Bearer $AXUZ_TOKEN"Node.js
const res = await fetch("https://api-flow.axuz.net/teams/TEAM_ID/flowcharts/ID/versions", {
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/versions",
headers={
"Authorization": f"Bearer {os.environ['AXUZ_TOKEN']}",
},
timeout=30,
)
res.raise_for_status()
print(res.json())