Skip to main content
POST
/
webhooks
Create Webhook
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>"
  ]
}
'
{
  "webhook": {
    "id": 123,
    "url": "<string>",
    "events": [
      "transaction.confirmed"
    ],
    "secret": "whsec_abc123...",
    "createdAt": "2023-11-07T05:31:56Z",
    "wallets": [
      "<string>"
    ]
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication. Pass your key in the x-api-key header.

Body

application/json
url
string<uri>
required

Webhook endpoint URL

events
enum<string>[]
required

Events to subscribe to (at least one required)

Minimum array length: 1
Available options:
transaction.confirmed,
transaction.failed
wallets
string[]

Optional: only receive events for these wallet addresses

Pattern: ^0x[a-fA-F0-9]{40}$

Response

Webhook created with signing secret

webhook
object