# 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.

```bash
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](/docs/checkout/quickstart) to get paid, or
[Route quickstart](/docs/route/quickstart) to swap and move funds across chains. To have a coding
agent do it, see [build with your AI agent](/docs/agent-setup).

## Your account

[Sign up](https://dashboard.intents.fi/signup) 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](https://dashboard.intents.fi/login).

Intents Checkout merchants also go through a short go-live checklist before they can take real payments;
it's on the [Intents Checkout overview](/docs/checkout#going-live).

## The four keys

There are four kinds, and each is shown once when it is made. Make them on the
[keys page](https://dashboard.intents.fi/keys) (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](https://dashboard.intents.fi/keys). Rolling gives you a new key and keeps the old one
working for 24 hours, so you can swap it without downtime.

## Test mode and live mode

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](/docs/checkout#going-live) is done; until then they fail with
  [`LIVE_MODE_LOCKED`](/docs/errors/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.

## What a mistake looks like

Every error from either product has the same body:

```json
{ "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](/docs/errors/) saying what to do about it.

## Next

- [Intents Checkout quickstart](/docs/checkout/quickstart) — create an invoice and get it paid
- [Route quickstart](/docs/route/quickstart) — quote, execute and track a cross-chain swap
- [Webhooks](/docs/platform/webhooks) — find out when something changes without polling

---

Source: https://intents.fi/docs/get-started · The whole corpus: https://intents.fi/docs/llms-full.txt
