Skip to main content
This guide walks you through the core Partner API flow: creating a cardholder, completing KYC, and issuing a card.
Prefer to run a working example? Download the sample demo app — a self-contained Bun + React project that walks through every step in this guide against the sandbox. Extract it, add your CONTRO_API_KEY to .env, and run bun install && bun run dev.

Prerequisites

  • A Contro partner account with sandbox API keys (sk_test_*)
  • A tool for making HTTP requests (cURL, Postman)
1

Authenticate

Set your API key. All examples below use the sandbox key.
2

Create a KYC session

Register an end user by first creating a hosted KYC session. The user completes identity verification on the Contro-hosted page. See Cardholders for all KYC options.
Once the session status is completed (poll or listen for the kyc_session.completed webhook), create the cardholder:
3

Initiate KYC for a card program

Submit the cardholder for KYC verification against a specific card program. Cards cannot be issued until KYC is approved for that program.
Poll the KYC status or listen for the webhook event:
4

Issue a card

Once KYC is approved for the card program, issue a card.
5

Query transactions

View transaction activity for the card.

Next steps

Cardholders

Learn about cardholder management and KYC methods

Cards

Card lifecycle, limits, and actions

Webhooks

Set up real-time event notifications

API reference

Explore all endpoints in the playground

Sample demo app

Download a runnable end-to-end example against the sandbox