curl --request GET \
--url https://api.circle.com/v2/cpn/notifications/subscriptions \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
"name": "Transactions Webhook",
"endpoint": "https://example.org/handler/for/notifications",
"enabled": true,
"createDate": "2023-01-01T12:04:05Z",
"updateDate": "2023-01-01T12:04:05Z",
"notificationTypes": [
"*"
],
"restricted": false
}
]
}Returns an array of existing webhook subscriptions.
curl --request GET \
--url https://api.circle.com/v2/cpn/notifications/subscriptions \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
"name": "Transactions Webhook",
"endpoint": "https://example.org/handler/for/notifications",
"enabled": true,
"createDate": "2023-01-01T12:04:05Z",
"updateDate": "2023-01-01T12:04:05Z",
"notificationTypes": [
"*"
],
"restricted": false
}
]
}Circle's API Keys are formatted in the following structure "PREFIX:ID:SECRET". All three parts are requred to make a successful request.
Successfully retrieved webhook subscriptions.
Show child attributes
System-generated unique identifier of the resource.
"c4d1da72-111e-4d52-bdbf-2e74a2d803d5"
Name of the webhook notification subscription.
"Transactions Webhook"
URL of the endpoint subscribing to notifications. Must be enabled to receive notifications.
"https://example.org/handler/for/notifications"
Whether the subscription is enabled. true indicates the subscription is enabled.
true
Date and time when the resource was created
"2023-01-01T12:04:05Z"
Date and time when the resource was last updated
"2023-01-01T12:04:05Z"
The notification types on which a notification will be sent.
The type of notification that can be subscribed to. Supports wildcard patterns (e.g., 'cpn.payment.') to subscribe to all notifications within a category. The '' wildcard can be used to subscribe to all notifications.
*, cpn.payment.*, cpn.payment.cryptoFundsPending, cpn.payment.fiatPaymentInitiated, cpn.payment.completed, cpn.payment.failed, cpn.payment.delayed, cpn.rfi.*, cpn.rfi.informationRequired, cpn.rfi.inReview, cpn.rfi.approved, cpn.rfi.rejected, cpn.transaction.*, cpn.transaction.broadcasted, cpn.transaction.completed, cpn.transaction.failed ["*"]Whether the webhook is restricted to specific notification types. An unrestricted webhook will notify on all notification types. A restricted webhook will only notify on the notification types in the notificationTypes field.
false
Was this page helpful?