Axuz Developers

POST /teams/{teamId}/integrations/{id}/deliveries/{deliveryId}/redeliver

Reenfileira entrega terminal de saida (mesmo X-Axuz-Delivery-Id)

  • Access: Team member
  • Service: https://api.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`.

So de dead_letter|blocked|sunk|delivered; pending|delivering = 409.

Parameters

NameInTypeRequiredDescription
teamIdpathstringyes
idpathstringyes
deliveryIdpathstringyes

Request body

Corpo JSON. O schema detalhado deste endpoint ainda não está tipado na spec; veja a descrição da operação.

application/json

NameTypeRequiredDescription
(corpo)objectno
{}

Responses

202

Reenfileirada

NameTypeRequiredDescription
idstring<uuid>yes

Tambem e o X-Axuz-Delivery-Id.

integration_idstring<uuid>yes
webhook_idstring<uuid>yes
directionstringyes

enum: "out", "in"

event_typestringyes
event_idstringno
statusstringyes

pending (aguardando/retry), delivering, delivered, dead_letter (DLQ), blocked (SSRF/guard), sunk (fora de prd: nada enviado), received (entrada).

enum: "pending", "delivering", "delivered", "dead_letter", "blocked", "sunk", "received"

attemptsintegeryes
max_attemptsintegeryes
next_attempt_atstring<date-time>yes
last_attempt_atstring<date-time>no
last_status_codeintegerno
last_responsestringno

Truncada em 1 KiB.

last_errorstringno

Codigo curto; nunca URL/segredo.

delivered_atstring<date-time>no
created_atstring<date-time>yes

401

Sem credencial valida

NameTypeRequiredDescription
errorstringyes

403

Sem permissao (nao e owner/admin; token sem escopo; token de integracao em rota nao permitida)

NameTypeRequiredDescription
errorstringyes

404

Nao existe NESTE time (404 uniforme: nao vaza existencia entre times)

NameTypeRequiredDescription
errorstringyes

409

duplicate | conflict | integration_revoked

NameTypeRequiredDescription
errorstringyes

429

Limite de requisições excedido.

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 POST 'https://api.axuz.net/teams/TEAM_ID/integrations/ID/deliveries/DELIVERY_ID/redeliver' \
  -H "Authorization: Bearer $AXUZ_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Node.js

const res = await fetch("https://api.axuz.net/teams/TEAM_ID/integrations/ID/deliveries/DELIVERY_ID/redeliver", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.AXUZ_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({}),
});
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(
    "POST",
    "https://api.axuz.net/teams/TEAM_ID/integrations/ID/deliveries/DELIVERY_ID/redeliver",
    headers={
        "Authorization": f"Bearer {os.environ['AXUZ_TOKEN']}",
    },
    json={},
    timeout=30,
)
res.raise_for_status()
print(res.json())