POST
/
event_subscriptions
curl --request POST \
  --url https://api.useswift.dev/event_subscriptions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "event_category": null,
  "url": "https://example.com/webhook"
}'
{
  "created_at": "2024-01-31T23:59:59Z",
  "event_category": "account.created",
  "id": "event_subscription_vjb43lkAdf934jb13Df93",
  "url": "https://example.com/webhook"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Parameters for creating an Event Subscription.

Response

200
application/json

Event Subscription

Event Subscriptions are used to receive webhooks when Events occur. They can be configured via the Dashboard or via the API.