Gallantree Developer API

Environments

The Developer API is available in two environments. They are fully isolated — separate databases, separate credentials, and different data lifecycles.

Environment Base URL Purpose Data
Sandbox https://developers.gallantreecapital.com Integration testing, sample dashboards, CI runs against a stable seed dataset Synthetic (obviously-fake lender + loan names, safe to leak in screenshots or bug reports)
Production https://developers.gallantreecapital.com (once your lender is provisioned) Real integrations against real data Real lender data — every request is audited

One host, two environments

Both environments share the developer host developers.gallantreecapital.com. What separates them is your API key: sandbox keys route to the sandbox database, production keys route to the production database. You cannot cross the boundary — a sandbox key on a production route returns 401, and vice versa.

This is deliberate: it means the URLs you copy from these docs work in both environments without change. The only thing you swap when you go live is the key.

How to tell them apart

Data lifecycle

Webhooks

Webhook subscriptions are scoped to an app, so a sandbox subscription only ever fires from sandbox events, and vice versa. This lets you develop against a sandbox receiver without any risk of picking up a production payload. See Subscribe to events.

Going live

When your integration is ready for production:

  1. Register a production app in the portal (against your real lender).
  2. Generate a production API key; store it separately from your sandbox key.
  3. Update your app's config so the base URL stays the same but the key swaps.
  4. Re-run your smoke tests against production before wiring it into live traffic.

Because both environments live at the same host, there is no infra change on your side. It's a credential swap.

What's in the sandbox

The sandbox is seeded with a small, deterministic dataset so your integration has something realistic to talk to from day one. Every record uses obviously-synthetic names — screenshots are safe to share.

Every seeded loan is in draft, the status every loan created through the API starts in.

The seed creates these records through the same import as POST /api/v1/loans, so they look exactly like records your integration creates. Their externalIds (loan-001…loan-006, product-cre-senior-5yr, program-senior-debt and so on) are stable, so query by externalId rather than id: the sandbox is re-seeded on demand and its ids may change between releases.

No webhook subscriptions are seeded. Register your own against a receiver you control; see Subscribe to events.

How the sandbox host reaches the sandbox app

You don't need to know this to use the sandbox — but if you're curious:

developers.gallantreecapital.com is a Cloudflare-routed host. Requests to /, /getting-started/*, /guides/* etc. serve from the GitBook space (the docs you're reading). Requests to /api/v1/*, /api/auth/oauth/*, and /api/health are forwarded to a dedicated sandbox deployment. Everything else falls through to GitBook, which returns a static 404 — so an unenumerated path can never accidentally reach the API.

The rules that decide this live in the platform repository under deploy/cloudflare/developers/ — reviewable, versioned, and applied to Cloudflare by an operator on merge.

Was this page helpful?

Built with Token Gesture