Pular para o conteúdo principal
POST
Trocar segredo do webhook

Autorizações

Authorization
string
header
obrigatório

Chave secreta da conta: Authorization: Bearer sk_test_… ou sk_live_…. Use só no servidor.

Cabeçalhos

Idempotency-Key
string

Chave única por operação (um UUID serve). Repetir com a mesma chave devolve a resposta original.

Parâmetros de caminho

endpointID
string
obrigatório
Pattern: ^we_[0-9A-Za-z]{22}$
Exemplo:

"we_3Tz8yU1oI4pA7sD0fG2hJk"

Resposta

O novo segredo de assinatura (mostrado uma única vez).

O endpoint recém-criado, com o segredo de assinatura (secret), que aparece só aqui.

id
string
obrigatório
Pattern: ^we_[0-9A-Za-z]{22}$
Exemplo:

"we_3Tz8yU1oI4pA7sD0fG2hJk"

url
string<uri>
obrigatório

URL que recebe as entregas.

events
string[]
obrigatório

Eventos assinados. Qualquer evento emitido pode ser assinado pelo nome, inclusive os que ainda não têm payload documentado.

isActive
boolean
obrigatório

Se o endpoint está recebendo entregas.

createdAt
string<date-time>
obrigatório
secret
string