/quickalerts/rest/v1/destinations REST Method
Body Parameters
name
string
REQUIRED
A name for your destination. This is for your reference only.
to_url
string
REQUIRED
The webhook URL to which QuickAlerts will send alert payloads.
webhook_type
string
REQUIRED
The type of destination. ENUM: "POST", "GET"
service
string
REQUIRED
The destination service. Currently only "webhook" is supported.
payload_type
number
REQUIRED
The type of payload to send. ENUM: 1,2,3,4,5,6,7
Returns
id
string
The destination ID.
created_at
string
The date and time the destination was created.
updated_at
string
The date and time the destination was last updated.
name
string
The name of the destination.
to
string
The webhook URL to which QuickAlerts will send alert payloads.
webhook_type
string
The type of destination. ENUM: "POST", "GET"
service
string
The destination service.
token
string
The token for this destination. This is used to optionally verify a QuickAlerts payload.
payload_type
number
The type of payload to send. ENUM: 1,2,3,4,5,6,7
Request
1curl -X POST \2"https://api.quicknode.com/quickalerts/rest/v1/destinations" \3-H "accept: application/json" \4-H "Content-Type: application/json" \5-H "x-api-key: YOUR_API_KEY" \6-d $'{7"name": "My Destination",8"to_url": "https://example.com/webhook",9"webhook_type": "POST",10"service": "webhook",11"payload_type": 112}'13
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free