Skip to main content
Webhook destinations are generally available. This payload predates API v2, but webhook destinations are also manageable through API v2 destinations. Existing fields, their meanings, and the X-Redbark-Signature / X-Redbark-Timestamp headers remain compatible. Additive fields may appear without changing api_version, so consumers should ignore unknown fields; a breaking change would use a new api_version. For change notifications (run finished, connection events) use v2 event destinations.
When a sync runs for a webhook destination, Redbark sends one or more HTTP POSTs to your endpoint with a JSON payload. Bank and Documents transaction syncs produce transactions.synced events. Every request is signed with HMAC-SHA256. Brokerage accounts currently sync only to Google Sheets; the trades.synced schema below is a reference contract, not an available brokerage-to-webhook setup.

Event types

The envelope shape is identical across event types — only the type field and the contents of data.new / data.updated change. Consumers that only care about one event type should filter on event.type and ignore the rest.

Request headers

Each webhook request includes these headers:

Requests from Redbark

Webhook deliveries come from Redbark’s webhook sender, which runs on Cloudflare’s network. Deliveries can also carry a Web Bot Auth signature. It lets bot protection, such as Cloudflare’s, recognise the request as coming from Redbark. When present, it adds three headers: The public keys are listed at https://webhook-egress.redbark.com/.well-known/http-message-signatures-directory. This signature only identifies the sender. It does not cover the payload, and deliveries can be sent without these headers if sender signing is unavailable. To authenticate a payload, verify X-Redbark-Signature as shown in Verifying signatures.

Payload format

All field names use snake_case. Monetary amounts on transactions are integers in the smallest currency unit (e.g. cents). Envelope timestamps (created) are Unix epoch seconds. The local_date field on transactions is a YYYY-MM-DD string; transaction_date and post_date are full ISO 8601 timestamps passed through from the banking provider. Missing optional fields are null, never empty strings.

Top-level fields

Transaction fields

Each transaction in data.new contains:
Amounts are integers in the smallest currency unit. For example, $45.50 AUD is 4550. Zero-decimal currencies like JPY use the full amount (e.g. ¥500 is 500).
The subcategory, confidence_level, custom_category, and custom_category_group fields are only emitted when the destination has enriched categories enabled. note and tags additionally require a note or tag rule on the sync. All six fields are omitted when their conditions are not met, rather than sent as null. Strict parsers must allow for these optional fields and future additive fields.

Updated transaction fields

The payload schema supports entries in data.updated with the transaction fields above, plus: Ordinary transaction syncs currently leave data.updated empty. Do not rely on webhook destinations to deliver same-ID corrections or pending-to-posted updates. Pending and posted records can have different provider IDs, with no guaranteed linkage. Periodic API reconciliation is needed if your ledger must reflect later changes.

Trade fields

Trade events use the same envelope as transactions, but with type: "trades.synced" and Trade objects in data.new. Quantities, prices, and fees are decimal strings (not integers) to preserve precision for fractional shares. data.updated is reserved for future use and currently always empty.
Each trade in data.new contains:
Trade amounts are decimal strings, not integers. This is different from the transaction payload (which uses smallest-unit integers) because brokerage quantities can be fractional — parsing as a Decimal/BigDecimal on your side is recommended.

Metadata fields

Chunking

When a sync produces more than 500 transactions, the payload is split into multiple requests. Each chunk is delivered sequentially as a separate POST. Use metadata.chunk and metadata.total_chunks to reassemble if needed.

Verifying signatures

Every webhook request is signed with HMAC-SHA256 using your signing secret. Verify the signature on every request to confirm it came from Redbark and has not been tampered with.

Verification steps

  1. Extract the X-Redbark-Timestamp and X-Redbark-Signature headers
  2. Concatenate the timestamp and raw request body with a period: <timestamp>.<body>
  3. Compute the HMAC-SHA256 digest of this string using your signing secret
  4. Compare your computed signature with the one in the header (strip the sha256= prefix)
  5. Check that the timestamp is within 5 minutes of the current time to prevent replay attacks

Example: Node.js

Example: Python

Expected response

Your endpoint must return a 2xx status code (e.g. 200 OK) to acknowledge receipt. The response body does not affect acknowledgement. Webhook delivery logs contain status codes and selected diagnostic headers, not request or response bodies. Never echo the request payload, banking data, or credentials in an error response.

Retry schedule

Each delivery makes up to 3 attempts in total. Sleeps before each retry use exponential backoff with a base of 3: The per-attempt request timeout is 30 seconds.

Auto-disable on failed deliveries

A failed delivery cycle (all 3 attempts for the same payload exhausted, an unfollowed 3xx, or a non-retried 4xx) counts once towards auto-disable and stops the remaining chunks in that run. After 5 consecutive failed delivery cycles, the destination is automatically disabled and no further deliveries are attempted until it is manually re-enabled from the dashboard. A successful delivery resets the counter to zero. Timeouts, 403 responses with cf-mitigated: challenge, and outages of Redbark’s delivery service are exceptions. These chunks are recorded as unsuccessful and left unconfirmed, but do not increment consecutiveFailures, disable the destination, or halt delivery of the remaining chunks in the sync. Any chunk that is not confirmed, failed or timed out, marks the sync run as failed. The run’s added and updated counts include only rows from chunks your endpoint confirmed. Rows from unconfirmed chunks are sent again on the next run.

Deduplication

Entity IDs (transaction IDs and trade IDs) that have been successfully delivered are tracked per destination. A delivered ID is kept for as long as the destination exists, so a later sync, hard resync, or start date change does not put that entity in data.new again. One exception: delivered IDs used to be removed after 90 days, so an entity delivered more than 90 days before this change took effect can be sent once more on the first full re-read. The record is removed only when you delete the destination, delete your account, or use Replay everything, which clears the delivery history and sends every entity again. Transactions and trades are deduplicated independently — a trade ID that happens to match a transaction ID won’t collide. Your endpoint should still handle potential duplicates gracefully (e.g. using <event.type>:<object.id> as an idempotency key) in case of network-level retries. The delivery UUID identifies one chunk and stays the same across its immediate retries. A later sync or replay creates a new UUID, so event-level deduplication is not enough. Verify the signature, persist the received payload durably, return 2xx promptly, then process asynchronously with idempotent transaction upserts keyed by account and provider transaction ID. Payload transaction IDs are raw provider IDs; API v2 uses provider-tagged IDs such as txn_fk_<provider-id> for Fiskil. Use account_public_id to correlate accounts and normalise the transaction-ID format before comparing the two surfaces. These delivery rules differ from v2 thin events, which carry notifications rather than transaction rows and retry for up to three days. Neither surface is an indefinite delivery guarantee. Reconcile posted transactions over an overlapping date window, follow every page, and honour Retry-After on API 429 responses.