GET /v1/integration/self/deliveries
Entregas da PROPRIA integracao
- Acesso: Pública
- Serviço:
https://api.axuz.net
Autenticação aceita
botToken
Exige integrations:read. A integracao vem do token, nunca da query (um integration_id na query e ignorado).
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
webhook_id | query | string | não | |
status | query | string | não | |
limit | query | integer | não | |
cursor | query | string | não | Opaco (keyset created_at,id). Nunca OFFSET. |
Respostas
200
OK
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
items | array<Delivery> | não | |
items[].id | string<uuid> | sim | Tambem e o X-Axuz-Delivery-Id. |
items[].integration_id | string<uuid> | sim | |
items[].webhook_id | string<uuid> | sim | |
items[].direction | string | sim | enum: |
items[].event_type | string | sim | |
items[].event_id | string | não | |
items[].status | string | sim | pending (aguardando/retry), delivering, delivered, dead_letter (DLQ), blocked (SSRF/guard), sunk (fora de prd: nada enviado), received (entrada). enum: |
items[].attempts | integer | sim | |
items[].max_attempts | integer | sim | |
items[].next_attempt_at | string<date-time> | sim | |
items[].last_attempt_at | string<date-time> | não | |
items[].last_status_code | integer | não | |
items[].last_response | string | não | Truncada em 1 KiB. |
items[].last_error | string | não | Codigo curto; nunca URL/segredo. |
items[].delivered_at | string<date-time> | não | |
items[].created_at | string<date-time> | sim | |
next_cursor | string | não |
401
Sem credencial valida
| 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 |
429
Limite de requisições excedido.
| 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.axuz.net/v1/integration/self/deliveries' \
-H "Cookie: access_token=$AXUZ_SESSION_JWT"Node.js
const res = await fetch("https://api.axuz.net/v1/integration/self/deliveries", {
method: 'GET',
headers: {
Cookie: `access_token=${process.env.AXUZ_SESSION_JWT}`,
},
});
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.axuz.net/v1/integration/self/deliveries",
headers={
"Cookie": f"access_token={os.environ['AXUZ_SESSION_JWT']}",
},
timeout=30,
)
res.raise_for_status()
print(res.json())