Entrar

Webhook (inbound de provider)

POST https://{organization}.myguper.com/api/sender/webhook/{token}

Endpoint de webhook inbound que providers (Twilio, SendGrid, WhatsApp Business, etc.) chamam para reportar entregas/status. O token na URL é um JWT emitido pelo Guper carregando { o: organization, d: dispatcher_id } — autentica o caller sem precisar de x-guper-authorization (providers não assinam requests pra gente).

O handler valida o JWT, confere que a organização no token bate com o subdomínio, enfileira o payload bruto em webhook_queue para processamento assíncrono e devolve 200 imediatamente. O tratamento real do status acontece fora de banda num worker.

Try-it values populated from environment ACME (Demo)


Autenticação

Jwt

Bearer-style JWT carried in the URL path. Issued by Guper when the provider integration is set up.

Cabeçalhos

Name Type Description
Content-Type * string Always `application/json` for endpoints that accept a JSON body.

Parâmetros do caminho

Name Type Description
token * string JWT issued at integration setup. Carries `o` (organization) and `d` (dispatcher id).

Corpo da requisição

Content-Type: application/json

Respostas

{ "ok": true }
Copied to clipboard