POST/api/user/webhookapplication/jsonapi_token| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
x-api-key | string | Sim | Token de autenticação API Key |
User-Agent | AtivoB2B/1.0 | Sim |
body):{
"url": "https://meusite.com/webhook-endpoint",
"type": "evento.exemplo"
}curl --location --request POST '/api/user/webhook' \
--header 'x-api-key: {Token}' \
--header 'User-Agent: AtivoB2B/1.0' \
--header 'Content-Type: application/json' \
--data-raw '{
"url": "http://webhook.com",
"type": "INFRACTION"
}'{
"status": 201,
"message": "Webhook criado com sucesso",
"data": {
"id": "0000000-0000-0000-0000000000000",
"gatewayId": "0000000-0000-0000-0000000000000",
"sellerId": "0000000-0000-0000-0000000000000",
"url": "http://webhook.com",
"type": "INFRACTION",
"createdAt": "2025-04-15T19:13:29.179Z",
"updatedAt": "2025-04-15T19:13:29.179Z"
},
"error": null
}