curl --request POST \
--url https://api.caminotreasury.com/v1/webhooks \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"url": "<string>",
"events": [
"transaction.confirmed"
],
"wallets": [
"<string>"
]
}
'{
"id": 123,
"url": "<string>",
"events": [
"transaction.confirmed"
],
"secret": "whsec_abc123...",
"createdAt": "2023-11-07T05:31:56Z",
"wallets": [
"<string>"
]
}Registers a new webhook endpoint. The response includes a secret for verifying HMAC signatures on webhook payloads.
curl --request POST \
--url https://api.caminotreasury.com/v1/webhooks \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"url": "<string>",
"events": [
"transaction.confirmed"
],
"wallets": [
"<string>"
]
}
'{
"id": 123,
"url": "<string>",
"events": [
"transaction.confirmed"
],
"secret": "whsec_abc123...",
"createdAt": "2023-11-07T05:31:56Z",
"wallets": [
"<string>"
]
}API key for authentication. Pass your key in the x-api-key header.
Webhook endpoint URL
Events to subscribe to (at least one required)
1transaction.confirmed, transaction.failed Optional: only receive events for these wallet addresses
^0x[a-fA-F0-9]{40}$Webhook created with signing secret
Unique webhook identifier
Webhook endpoint URL
Events this webhook subscribes to
transaction.confirmed, transaction.failed HMAC signing secret (prefixed with whsec_). Only returned on creation.
"whsec_abc123..."
Creation timestamp
Optional wallet address filter. Null means all wallets.