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.

url
string
required

The URL that the Event Subscription will send webhooks to.

event_category
enum<string> | null

The available categories for Events.

Available options:
entity.created,
entity.updated,
account.created,
account.updated,
user.created,
user.updated,
user_bank.created,
user_bank.updated,
venmo_account.created,
venmo_account.updated,
venmo_request.created,
venmo_request.updated,
zelle_account.created,
zelle_account.updated,
zelle_request.created,
zelle_request.updated,
rtp_request.created,
rtp_request.updated,
fednow_request.created,
fednow_request.updated,
wire_transfer.created,
wire_transfer.updated,
event_subscription.created,
event_subscription.updated

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.

created_at
string
required

The ISO 8601 time at which the Event Subscription was created.

event_category
enum<string> | null
required

The available categories for Events.

Available options:
entity.created,
entity.updated,
account.created,
account.updated,
user.created,
user.updated,
user_bank.created,
user_bank.updated,
venmo_account.created,
venmo_account.updated,
venmo_request.created,
venmo_request.updated,
zelle_account.created,
zelle_account.updated,
zelle_request.created,
zelle_request.updated,
rtp_request.created,
rtp_request.updated,
fednow_request.created,
fednow_request.updated,
wire_transfer.created,
wire_transfer.updated,
event_subscription.created,
event_subscription.updated
id
string
required

The Event Subscription's unique identifier.

url
string
required

The URL that the Event Subscription will send webhooks to.