Перейти до основного вмісту
WEBHOOK
Що приходить у тілі запиту, видно нижче на прикладі; поля описано англійською, як і весь довідник API. Як прийняти подію, перевірити підпис і що робити з повторами, описано у Вебхуках. Пропущені події за останні 30 днів повертає GET /v1/events.

Авторизації

X-API-Key
string
header
обов'язково

A personal access token. In the reference console at docs.degroshi.com, paste a sandbox key (dg_test_…): the console takes sandbox keys only and answers 403 AUTH_081 to any other.

Заголовки

Degroshi-Signature
string
обов'язково

t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<body>"> with the endpoint's secret; during a secret change a second v1 carries the old secret's signature.

Degroshi-Event-Id
string
обов'язково

The event's id, the same on every retry.

Degroshi-Event-Type
string
обов'язково

The event's type.

Degroshi-Delivery-Id
string
обов'язково

This delivery's id.

Degroshi-Attempt
string
обов'язково

1 for the first try, then 2, 3…

Тіло

application/json

The account.balance.updated event, as an endpoint receives it.

api_version
string
обов'язково

The endpoint's version of the event shapes.

Приклад:

"2026-11-10"

created
string<date-time>
обов'язково
data
object
обов'язково
id
string<uuid>
обов'язково
object
any
обов'язково
source
string
обов'язково

Who made the change: app, api, bank_sync, import, recurring, categorize, rule, budget or test. Every write of a request authenticated by an API key is api.

Приклад:

"bank_sync"

space_id
string<uuid> | null
обов'язково

Null for a test event.

test
boolean
обов'язково

True for a test event sent from the endpoint's page.

type
string
обов'язково
Allowed value: "account.balance.updated"

Відповідь

2XX

Received. Any other status, or no answer within 5 seconds, is retried.