Skip to main content
POST
/
api
/
v2.1
/
webhooks
/
subscriptions
Create webhook subscription
curl --request POST \
  --url https://sandbox.finhub.cloud/api/v2.1/webhooks/subscriptions \
  --header 'Content-Type: application/json' \
  --data '
{
  "customerId": "<string>",
  "subscriptionName": "<string>",
  "description": "<string>",
  "endpointUrl": "<string>",
  "secretKey": "<string>",
  "signatureAlgorithm": "<string>",
  "verifySsl": true,
  "subscribedEvents": [
    "<string>"
  ],
  "maxRetryAttempts": 123,
  "retryBackoffSeconds": 123
}
'

Headers

X-Tenant-ID
string
X-User-ID
string

Body

application/json
customerId
string
subscriptionName
string
description
string
endpointUrl
string
secretKey
string
signatureAlgorithm
string
verifySsl
boolean
subscribedEvents
string[]
maxRetryAttempts
integer<int32>
retryBackoffSeconds
integer<int32>

Response

200

OK