Create a new webhook
Segurança
TokenAuth
- Mock serverhttps://docs.ripple.com/_mock/pt-br/products/wallet/api-docs/palisade-api/palisade-api/v2/webhooks
- Sandbox server (uses TESTNET data, private keys and accounts)https://api.sandbox.palisade.co/v2/webhooks
- Palisade server (uses MAINNET data, private keys and accounts)https://api.palisade.co/v2/webhooks
curl -i -X POST \
https://docs.ripple.com/_mock/pt-br/products/wallet/api-docs/palisade-api/palisade-api/v2/webhooks \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"name": "Palisade Transactions",
"description": "A webhook used to monitor transactions",
"endpoint": "https://palisade.co/webhook"
}'The ID of the user who created this webhook
Exemplo:"ce4918bf-a199-4ce2-85a3-d0d296855384"
The date and time the webhook was created
Exemplo:"2022-03-29T10:22:22.420Z"
The ID of the user who updated this webhook
Exemplo:"ce4918bf-a199-4ce2-85a3-d0d296855384"
The date and time the webhook was updated
Exemplo:"2022-03-29T10:22:22.420Z"
The number of subscriptions associated with the webhook
Exemplo:5
The public key used to verify the webhook signature
Exemplo:"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEpHiEkdd/ba5dU4sNCgsWrMOE6fLakHywl0OgF5aVfxkiqNh22oybRAREev7jvnwH4jqitHx79KGi6CMwiJjmaw=="
The timestamp of the last successful webhook delivery
Exemplo:"2022-03-29T10:22:22.420Z"
The timestamp of the last failed webhook delivery
Exemplo:"2022-03-29T10:22:22.420Z"
The number of successful webhook deliveries in the last hour
Exemplo:42
Resposta
{ "id": "ce4918bf-a199-4ce2-85a3-d0d296855384", "createdBy": "ce4918bf-a199-4ce2-85a3-d0d296855384", "createdAt": "2022-03-29T10:22:22.420Z", "updatedBy": "ce4918bf-a199-4ce2-85a3-d0d296855384", "updatedAt": "2022-03-29T10:22:22.420Z", "name": "Palisade Transactions", "description": "A webhook used to monitor transactions", "endpoint": "https://palisade.co/webhook", "subscriptionCount": 5, "publicKey": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEpHiEkdd/ba5dU4sNCgsWrMOE6fLakHywl0OgF5aVfxkiqNh22oybRAREev7jvnwH4jqitHx79KGi6CMwiJjmaw==", "lastSuccess": "2022-03-29T10:22:22.420Z", "lastFailure": "2022-03-29T10:22:22.420Z", "successCount": 42, "failureCount": 3 }