Skip to main content
POST
/
webhook
/
endpoints
Create webhook endpoint
curl --request POST \
  --url https://api.anchorage-staging.com/v2/webhook/endpoints \
  --header 'Api-Access-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "url": "https://your-domain.com/transaction-webhooks",
    "description": "Endpoint for receiving transaction event webhooks",
    "subscriptions": [
      {
        "eventTypeId": "withdrawal.initiated"
      }
    ],
    "publicKey": "----BEGIN PUBLIC KEY-----\nMFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEeg+pxTCsjew/+7IK4+Vw5zyHDnMW7bzn\nsClhuYIKjXF8EJ1lfyZC2VPVullBKgvHRzNMfC1KkF2LIoRp2ibcWQ==\n-----END PUBLIC KEY-----"
  }
]
'
{
  "data": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}

Authorizations

Api-Access-Key
string
header
required

An API key associated with a security role

Body

application/json
url
string<uri>
required

url of the endpoint, requires http:// prefix

description
string
publicKey
string
subscriptions
object[]

Response

Created webhook endpoint ids

data
string<uuid>[]
required