API Reference
Webhooks

Create a subscription

POST/v1/subscriptions
Base URL: https://trace.mimicr.dev · provider: https://api.sandbox.tracefinance.com

Register a webhook subscription for a resource. Trace Finance will POST events to the supplied URL.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Headers

X-Trace-Versionstring

API version. Omit to use the default version.

Example: "1"
X-Idempotency-Keystring<uuid>required

Unique key to ensure idempotent request processing. Required on all POST, PUT, and PATCH requests.

Body

application/json
urlstring<uri>required

HTTPS URL where Trace Finance will POST event payloads. Must be reachable from the public internet.

Example: "https://api.example.com/trace-webhooks"
includeAllboolean

When true, the subscription is created for every resource and event type, and the resources field is ignored. Defaults to false.

resourcesobject[]

Resources the subscription should listen to. Required when includeAll is false. Each resource name must be unique.

Show child attributes
namestringrequired

The resource group an event belongs to.

ACCOUNTBENEFICIARYOPERATION
Example: "OPERATION"
includeAllboolean

When true, the subscription receives every event type under this resource and the events field is ignored. Defaults to false.

eventsobject[]

Specific event types to receive. Required when includeAll is false.

15 values
ACCOUNT_CREATEDACCOUNT_ACTION_REQUIREDACCOUNT_ASSET_ACTIVATEDACCOUNT_ASSET_FAILEDBENEFICIARY_INSTRUCTION_CREATEDBENEFICIARY_INSTRUCTION_APPROVEDBENEFICIARY_INSTRUCTION_REJECTEDBENEFICIARY_INSTRUCTION_ACTION_REQUIREDOPERATION_REQUESTEDOPERATION_PROCESSINGOPERATION_COMPLETEDOPERATION_FAILEDOPERATION_REFUNDINGOPERATION_REFUNDEDOPERATION_ACTION_REQUIRED
allowRetryboolean

Whether failed deliveries should be retried. Defaults to false.

Responses

201Subscription created.
idstring<uuid>required
Example: "8a13c6a4-1a3d-4f49-ad62-9dca8c47e2c6"
companyIdstringrequired

Company identifier that owns the subscription.

Example: "11111111-1111-1111-1111-111111111111"
urlstring<uri>required
Example: "https://api.example.com/trace-webhooks"
resourcesobject[]required

Resources and event types this subscription delivers.

Show child attributes
namestringrequired

The resource group an event belongs to.

ACCOUNTBENEFICIARYOPERATION
Example: "OPERATION"
eventsobject[]required
15 values
ACCOUNT_CREATEDACCOUNT_ACTION_REQUIREDACCOUNT_ASSET_ACTIVATEDACCOUNT_ASSET_FAILEDBENEFICIARY_INSTRUCTION_CREATEDBENEFICIARY_INSTRUCTION_APPROVEDBENEFICIARY_INSTRUCTION_REJECTEDBENEFICIARY_INSTRUCTION_ACTION_REQUIREDOPERATION_REQUESTEDOPERATION_PROCESSINGOPERATION_COMPLETEDOPERATION_FAILEDOPERATION_REFUNDINGOPERATION_REFUNDEDOPERATION_ACTION_REQUIRED
allowRetrybooleanrequired

Whether failed deliveries are retried.

Example: true
createdAtstring<date-time>required
Example: "2026-04-28T14:32:11Z"
updatedAtstring<date-time>required
Example: "2026-04-28T14:32:11Z"
400Validation error.
codestringrequired
Example: "RESOURCE_NOT_FOUND"
messagestringrequired
Example: "Subscription with id '8a13c6a4-1a3d-4f49-ad62-9dca8c47e2c6' was not found."
detailsobject
401Missing or invalid authentication token.
codestringrequired
Example: "RESOURCE_NOT_FOUND"
messagestringrequired
Example: "Subscription with id '8a13c6a4-1a3d-4f49-ad62-9dca8c47e2c6' was not found."
detailsobject