Skip to content
Start

Account and API keys

One account and one set of keys for both products — the four key types, test versus live, and the error format.

Terminal window
export INTENTS_SECRET_KEY=ik_test_… # never in a browser, never in a repo

One account and one set of keys work for both products. This page is the shared part; after it, go to your product: Intents Checkout quickstart to get paid, or Route quickstart to swap and move funds across chains. To have a coding agent do it, see build with your AI agent.

Sign up with Google, GitHub, Discord, X, your wallet or email. Setup asks a few questions about your business and hands you a test key. Already have an account? Log in.

Intents Checkout merchants also go through a short go-live checklist before they can take real payments; it’s on the Intents Checkout overview.

There are four kinds, and each is shown once when it is made. Make them on the keys page (Developers → API keys):

Key Prefix Use it for
Secret, test ik_test_ server-side calls in test mode
Secret, live ik_live_ server-side calls with real money
Publishable, test pk_test_ browser-safe Intents Checkout calls in test
Publishable, live pk_live_ browser-safe Intents Checkout calls in live

A secret key belongs on your server and nowhere else. A publishable key is safe in a browser: it cannot read your invoices or create a custom one.

No key of any kind can change an Intents Checkout settlement address. That needs a dashboard session with a fresh email code and a 24-hour wait, which is the one defence that matters if a key leaks.

Send a key as authorization: Bearer <key>. Keys are listed, created, rolled and revoked in the dashboard. Rolling gives you a new key and keeps the old one working for 24 hours, so you can swap it without downtime.

A key’s prefix decides the mode; there is no header to set and no way to mix them.

  • Intents Checkout has a full test mode. A test invoice quotes and settles against recorded fixtures: no chain is touched and no money moves, so you can run the whole flow in CI. Live keys open once the go-live checklist is done; until then they fail with LIVE_MODE_LOCKED.
  • Intents Route has no test mode. Quotes and orders are real with either key, because they come from the protocols themselves. Nothing moves until your user’s own wallet signs a step, so develop with small amounts.

A test invoice is invisible in live mode and the other way round. The dashboard has one toggle at the top that switches everything at once.

Every error from either product has the same body:

{ "error": { "code": "INVOICE_EXPIRED", "message": "This invoice has expired" } }

Switch on code, never on message or on the HTTP status alone. Each code has a page under /errors saying what to do about it.