Pre-release demo

Webhook Management

Configure and monitor webhooks to receive real-time updates about events in your BeatConnect account. Set up event subscriptions and manage webhook endpoints.

Webhook Endpoints

URL Events Status Last Delivery Actions
https://yourdomain.com/webhooks/beat-events
beat.created beat.updated
Active 2 hours ago
https://yourdomain.com/webhooks/purchase-events
purchase.completed
Active 1 day ago

Recent Deliveries

200 OK beat.created 2 hours ago

Request

{
  "event": "beat.created",
  "created_at": "2024-05-05T14:30:45Z",
  "data": {
    "beat_id": 123,
    "title": "Amapiano Summer",
    "producer_id": 42
  }
}

Response

{
  "success": true,
  "received": true
}
200 OK purchase.completed 1 day ago

Request

{
  "event": "purchase.completed",
  "created_at": "2024-05-04T10:15:22Z",
  "data": {
    "purchase_id": 456,
    "user_id": 789,
    "amount": 29.99,
    "items": [
      {
        "beat_id": 123,
        "license_type": "basic"
      }
    ]
  }
}

Response

{
  "success": true,
  "received": true
}

Webhook Security

All webhook requests are signed with a signature that you can verify to ensure the request came from BeatConnect.

Verifying Signatures

Each webhook request includes a BeatConnect-Signature header that you can use to verify the request came from BeatConnect. The signature is generated using HMAC with SHA-256, using your webhook secret as the key.

Webhook Secret

whsec_*************************

Code Examples

php
 'Invalid signature']);
}
?>