Skip to main content
POST
Create Webhook

Overview

Create a new webhook endpoint to receive order, trade, and deposit event notifications. The webhook secret is only returned once at creation, so make sure to store it securely.
Pro webhook setup is support-managed. Contact support@daya.co to enable webhook setup or request webhook configuration changes for your Pro account.

Authentication

X-Api-Key
string
required
Your API key with Write scope

Request Body

url
string
required
Webhook endpoint URL (must be HTTPS in production)Example: https://example.com/webhooks/daya
events
array
required
Events to subscribe to (at least one required)Allowed values: order.created, order.filled, order.partially_filled, order.cancelled, order.rejected, trade.executed, deposit.completed, crypto.deposit.completed
description
string
Optional description for the webhookExample: My order notifications

Request Examples

Response

success
boolean
required
Indicates if the request was successful
message
string
required
Human-readable response message
data
object
required
Created webhook with secret

Success Response

The secret is a 64-character hex string (32 bytes). This is the raw secret used for HMAC-SHA256 signature verification.

Error Responses

Available Events

Important Notes

Store your webhook secret securely! The secret field is only returned once when the webhook is created. If you lose it, you’ll need to rotate the secret.
Webhook URLs must use HTTPS in production. HTTP is only allowed for local development testing.

Rate Limits

  • 100 requests per minute per API key
  • Maximum 5 webhooks per account

Next Steps

Webhook Verification

Learn how to verify webhook signatures

Webhook Events

See event payload details

List Webhooks

View all your webhooks

Update Webhook

Update webhook configuration