Skip to main content

Overview

A subscription is the binding between a customer-controlled URL and one or more resources (optionally narrowed to specific event types per resource). You create subscriptions through the Subscriptions API and can have several active at once — typically one per environment.

Create a subscription

Send a POST /v1/subscriptions request with the URL Trace Finance should call and the resources you want to listen to.
The response returns the subscription with its id, the resolved resources (each resource with its full event-type list), and createdAt. Trace Finance begins delivering matching events immediately.
The URL must be HTTPS and reachable from the public internet. Self-signed certificates and private networks are not supported.

Subscribe to every resource

Set includeAll: true at the top level to receive every event type from every resource. Useful when you have a single handler that fans out internally.

Scope to specific event types

To narrow delivery for a resource, pass an events array on its SubscriptionResourceRequest instead of includeAll:
Each entry in resources must have a unique name.

Multiple subscriptions

You can register multiple subscriptions — for example, one URL for production and another for staging, or different URLs for different resource subsets. Each subscription is delivered independently; a single event can fan out to several endpoints. There is a per-company limit on active subscriptions.

List, update, and delete

Use the rest of the Subscriptions API to manage existing subscriptions:

Update resources or URL

Send PATCH /v1/subscriptions/{subscriptionId} with only the fields you want to change. To replace the resource list, pass a new resources array — it overwrites the existing set.
To stop retrying failed deliveries without removing the subscription, send { "allowRetry": false }.