Capvant

Your first API call

From a key to a deal on screen in one sitting, with the calls in order.

The whole loop (create a key, confirm it works, read real data) in under five minutes. This walks the Lender API; the Partner API is identical with a cv_pk_ key and the /partner/v1 base URL.

The three calls, in order
  1. 1

    Prove the key authenticates and see which environment it resolved to.

    Hands you your organisation name, and sandbox or live

  2. 2

    List what is routed to your lane, newest first.

    Hands you a page of deals and a next_cursor

  3. 3

    Read one deal in full, including the market object for its country.

    Hands you the complete deal

1. Create a key

In the Lender Hub, go to Team to API keys and create one. The full key is shown exactly once. Copy it into a secret store or environment variable now.

Shell
export CAPVANT_API_KEY=cv_live_4f8a...c21

2. Ping the API

Confirm the key is live before building anything else on top of it.

Shell
curl https://api.capvant.com/v1/ping \
  -H "X-API-Key: $CAPVANT_API_KEY"

A 401 here means the key is missing, mistyped, or revoked. See Authentication.

3. List your deals

Shell
curl "https://api.capvant.com/v1/deals?limit=5" \
  -H "X-API-Key: $CAPVANT_API_KEY"

Empty deals? That's normal for a brand-new lane. Create a few records to work against with the sandbox instead of waiting for real referrals.

What's next

On this page