POST /integrations/inbound/{webhookId}
Webhook de ENTRADA (o bot/servico externo chama o Axuz)
- Acesso: Pública
- Serviço:
https://api.axuz.net
Autenticação aceita
hmacSignature— t=<unix>,v1=<hmac-sha256-hex>
Sem sessao: a credencial e a assinatura HMAC com o segredo do webhook in. Ordem fail-closed: rate limit por IP de origem + webhook (120/min) e teto por webhook (1200/min) -> 429; contadores em memoria, POR REPLICA (o teto real e o proxy) -> corpo <= 256 KiB (413) -> headers (400) -> webhook inexistente/inativo/ integracao pausada ou revogada (404 uniforme) -> assinatura/janela de 300s (401) -> idempotencia por X-Axuz-Delivery-Id (replay = 409). Aceito = 202 e a chamada fica registrada (hash do corpo, sem o corpo). A v1 NAO executa acao a partir do corpo.
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
webhookId | path | string | sim | |
X-Axuz-Signature | header | string | sim | |
X-Axuz-Delivery-Id | header | string | sim | |
X-Axuz-Event | header | string | não |
Corpo da requisição
application/json · Obrigatório
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
(corpo) | object | não |
{}Respostas
202
Recebido
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
status | string | sim | enum: |
delivery_id | string | sim |
400
Corpo/parametro invalido (invalid, invalid_body, invalid_cursor...)
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
401
invalid_signature | signature_expired
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
404
Nao existe NESTE time (404 uniforme: nao vaza existencia entre times)
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
409
replayed_delivery
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
413
payload_too_large
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
429
rate_limited
| 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 |
503
secret_unavailable (nunca aceita sem verificar)
| 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 POST 'https://api.axuz.net/integrations/inbound/WEBHOOK_ID' \
-H "Cookie: access_token=$AXUZ_SESSION_JWT" \
-H "Content-Type: application/json" \
-d '{}'Node.js
const res = await fetch("https://api.axuz.net/integrations/inbound/WEBHOOK_ID", {
method: 'POST',
headers: {
Cookie: `access_token=${process.env.AXUZ_SESSION_JWT}`,
'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/integrations/inbound/WEBHOOK_ID",
headers={
"Cookie": f"access_token={os.environ['AXUZ_SESSION_JWT']}",
},
json={},
timeout=30,
)
res.raise_for_status()
print(res.json())