Webhook Format
The JSON and JWT webhook formats, for immediate and batched delivery.
You choose the format for each API client in the Admin Portal. The examples on each event page use the JSON format.
| Format | Content-Type | Immediate delivery | Batched delivery |
|---|---|---|---|
| JSON | application/json | Standard envelope with payload | Events listed without payloads |
| JWT | application/jwt | Signed token; payload under events, keyed by event name | Signed token; events listed without payloads |
JSON
This is the default format. The payload is a JSON object with a Content-Type of application/json. See the envelope schema.
{
"id": "abe168ce-1b2f-4c38-9c92-db5730485cb3",
"eventType": "newTransactions",
"userId": "5c79210bbac25ecb5e71ac40",
"payload": {
"accounts": [
{
"id": "6d0baf11-248e-4c11-9c04-97b7758b4e04",
"transactions": [
"d520402a-d982-43ee-b1d1-bdfd282249ea",
"613586bf-dac9-4996-9c03-7194a7d62297"
]
}
]
}
}JSON batched payload
When a client has a batched webhook URL, batched delivery uses this envelope. Events are listed without their payloads, so use the eventType of each event to decide what to fetch from the API:
{
"id": "7e8d29e3-315f-4206-bec8-e7e2665955de",
"userId": "5c79210bbac25ecb5e71ac40",
"events": [
{
"id": "9c26a892-1fcb-4ef6-8d70-17f8af2bdb10",
"eventType": "syncCompleted",
"occurredAt": "2026-09-23T11:00:00.000Z"
},
{
"id": "8fb2a657-5d98-4018-985f-88117d7806cb",
"eventType": "updatedTransactions",
"occurredAt": "2026-09-23T11:05:00.000Z"
}
]
}JWT (JSON Web Token)
This format is based on JSON Web Tokens and the Security Event Token (SET) standard. It provides a mechanism by which messages can be verified to ensure that only messages from Moneyhub can be accepted by your system. These messages will be encoded like a JWT and delivered with a Content-Type of application/jwt. See Verifying JWT Webhooks for how to check the signature.
Given the Payment Completed webhook, the JWT encoded version looks something like the following:
eyJraWQiOiJEOUpBTm1ZZlNHX2tidDJLUnBUS283UUNOSDJfUkstMGE3ODd5am0wN3p3IiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiJodHRwczovL2lkZW50aXR5LWRldi5tb25leWh1Yi5jby51ayIsImF1ZCI6ImQ5ZGM5ZDVlLWQxOTAtNDM4Yy1iNjU4LWE0YmUzNzc5MTAwZCIsImp0aSI6ImM5ZDEzM2UwLWU3MDgtNDAyZC1hNmI3LWRjOGZmOWMyOWExYyIsInN1YiI6IjVmNzVhOWY5NDdmOWJkNzRkOTIxYTZjOSIsImV2ZW50cyI6eyJ1cm46Y29tOm1vbmV5aHViOmV2ZW50czpwYXltZW50LWNvbXBsZXRlZCI6eyJwYXltZW50SWQiOiJkYzk0NDZlZS1hZmMxLTRiNDctYmFiNS0yYjAxYzdkYTA5ZTMiLCJzdGF0dXMiOiJjb21wbGV0ZWQiLCJwYXltZW50U3VibWlzc2lvbklkIjoiMmJlOGNiZTUtZTEzOC00M2M1LWJjNTgtNzYwY2VmYTg5MjQ4Iiwic3VibWl0dGVkQXQiOiIyMDIwLTEwLTAxVDEwOjA1OjQ1LjM3NFoifX0sImlhdCI6MTYwMTU0Njc4MX0.Fld7AM3ywFUXaZYA8uFoGyiWalRhvM8V24a_n0pahYs8o2YGVk-5DCBVNwGGJZT0LMchXiVAo5QeRvauqCv6BsApyycQiGTpAbX0l9V97FANGotB9KRuwstXqZ9tNo9a70-oNJGu8CDsBO2i-mmdNGsCW5QQNGH3z_TtwBq8fX5zYhulc7HMvZr93kfO-zMZUHdeUmUBnqeig0IdCIM-67H1WzAYZ_s86ZMuZLEj5m_VyNas5rbEox4B8GW6aDzQO0YsBbp5jXzfkR0NVNUSip5Q1kTDtK24YbUz9Pt_pmsGof6a_3pSOw_oEAWnHH-C3a4zKQvUBklb9YeGVPv4OQOnce decoded, the header contains the kid, which identifies the key used to sign it:
{
"kid": "D9JANmYfSG_kbt2KRpTKo7QCNH2_RK-0a787yjm07zw",
"alg": "RS256"
}The body carries the event's payload fields under events, keyed by the event name:
{
"iss": "https://identity.moneyhub.co.uk",
"aud": "d9dc9d5e-d190-438c-b658-a4be3779100d",
"jti": "c9d133e0-e708-402d-a6b7-dc8ff9c29a1c",
"sub": "5f75a9f947f9bd74d921a6c9",
"events": {
"urn:com:moneyhub:events:payment-completed": {
"paymentId": "dc9446ee-afc1-4b47-bab5-2b01c7da09e3",
"status": "completed",
"paymentSubmissionId": "2be8cbe5-e138-43c5-bc58-760cefa89248",
"submittedAt": "2020-10-01T10:05:45.374Z"
}
},
"iat": 1601546781
}JWT claims
Each claim in the JWT body maps to a field in the JSON envelope:
| Claim | Description | JSON equivalent |
|---|---|---|
iss | Issuer. Always https://identity.moneyhub.co.uk. This differs from the OpenID configuration issuer, which ends in /oidc | None |
aud | Audience. The client ID of the API client receiving the webhook | None |
jti | Unique ID of the webhook | id |
sub | The ID of the user the event relates to | userId |
iat | The time the token was issued, in seconds since the Unix epoch | None |
events | An object with a single key, the event name, whose value is the event's payload | eventType and payload |
The event name is urn:com:moneyhub:events: followed by the eventType in kebab case. For example, paymentCompleted becomes urn:com:moneyhub:events:payment-completed. All events lists the event name for every event.
To handle JSON and JWT webhooks with the same code, convert verified JWT webhooks to the JSON shape. Building a Webhook Receiver has examples.
JWT batched payload
For batched delivery with JWT format, events is an array in the JWT body (rather than the single-event events object keyed by urn:...). The body also includes id and userId, matching the JSON batched payload:
{
"iss": "https://identity.moneyhub.co.uk",
"aud": "d9dc9d5e-d190-438c-b658-a4be3779100d",
"jti": "7e8d29e3-315f-4206-bec8-e7e2665955de",
"sub": "5c79210bbac25ecb5e71ac40",
"id": "7e8d29e3-315f-4206-bec8-e7e2665955de",
"userId": "5c79210bbac25ecb5e71ac40",
"events": [
{
"id": "9c26a892-1fcb-4ef6-8d70-17f8af2bdb10",
"eventType": "syncCompleted",
"occurredAt": "2026-09-23T11:00:00.000Z"
},
{
"id": "8fb2a657-5d98-4018-985f-88117d7806cb",
"eventType": "updatedTransactions",
"occurredAt": "2026-09-23T11:05:00.000Z"
}
]
}Updated 10 days ago
