Gallantree Developer API

Subscribe to events

Webhooks let you react to changes in Gallantree data without polling. Register a subscription, and the platform will POST a signed event to your endpoint whenever one of the events you're interested in occurs.

Prerequisites

Events you can subscribe to

Delivered today

Event When it fires
loan.created A loan is created through POST /api/v1/loans (or the equivalent handover ingest). Re-sending a payload that updates an existing loan in place does not fire it. Loans created by hand inside the platform do not fire it.
loan.assessment_completed The automatic credit assessment that runs when a loan is ingested through POST /api/v1/loans produces a result. Fires once, when the loan is created; re-sending the same loan doesn't run the assessment again.
loan.status_changed A loan's status is changed through the platform's loan workflow (for example, a credit decision). Automated servicing transitions, such as arrears rolls, do not fire it yet. Re-read the loan if you need to reconcile.
organisation.kyb_completed A KYB verification for an organisation is completed by a reviewer. Fires for any final result; check data.result.

Accepted but not yet delivered

You can subscribe to these events today, and the platform accepts them on a subscription, but nothing sends them yet. Don't build a flow that waits on them. They will be announced in the changelog when they start firing.

Event Intended meaning
loan.updated Fields on an existing loan change
document.generated A document (loan doc, credit memo, statement) is generated
collateral.valuation_updated A collateral valuation is updated
coverage_test.breach A capital-program coverage test breaches its threshold

New events are added over time; design your handler to log-and-ignore unknown X-Gallantree-Event values.

Create a subscription

From the portal, open your app → Webhooks → New subscription. Provide:

Each app can have up to 10 active subscriptions.

The delivery payload

Every delivery is a POST with Content-Type: application/json. The body is a compact JSON object with three top-level fields:

JSON
{
  "event": "loan.created",
  "timestamp": "2026-08-15T04:32:11.482Z",
  "data": {
    "loanId": "65f3a8b1d5c9e4f2a1b3c4d5",
    "externalLoanId": "loan-001",
    "sourceSystem": "my-integration"
  }
}

data by event

Event data fields
loan.created loanId — the platform loan id. externalLoanId — the loan.externalId you sent. sourceSystem — the source the loan was ingested under.
loan.assessment_completed loanId, externalLoanId, score (number), scoreBand, riskGrade.
loan.status_changed loanId, previousStatus, newStatus, mainStatus (see the status lifecycle).
organisation.kyb_completed organisationId, kybId, result (verified, rejected or info_required), completedAt (ISO 8601).

Test deliveries carry { "test": true } as data, whatever event you choose.

Headers on every delivery:

Content-Type: application/json
X-Gallantree-Signature: <hex-encoded HMAC-SHA256 of the body>
X-Gallantree-Event: loan.created
X-Gallantree-Delivery: <opaque id for this delivery — the same on every retry>
X-Gallantree-Timestamp: 2026-08-15T04:32:11.482Z

Test deliveries (from the portal's Send test button) additionally carry X-Gallantree-Test: true.

Responding to a delivery

Runnable example — subscription creation

Use the portal for real subscriptions; the raw HTTP shape is shown here for completeness:

Shell
curl -sS -X POST https://developers.gallantreecapital.com/api/v1/webhooks \
  -H "x-api-key: $GALLANTREE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "url": "https://myapp.example.com/webhooks/gallantree",
    "events": ["loan.created", "loan.status_changed"]
  }'

The response includes a secret field — the signing secret. Copy it into your secret store and use it in Verify signatures.

Was this page helpful?

Built with Token Gesture