> This page is for version Preview (default).
> For other versions, use one of these documentation indexes:
> - Preview (default): https://docs.preview.paid.ai/preview/llms.txt
> - Current: https://docs.preview.paid.ai/current/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.preview.paid.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.preview.paid.ai/_mcp/server.

# Set up your account

> Create a sandbox organization to build in, and an API key to call the Paid API with.

To call the Paid API you need an API key. Create it in a sandbox organization, where nothing is ever billed, and build and test there. When your integration is ready, create a key in your production organization.

## Organizations

Your company's Paid account is an **organization**, and every user signs in to one or more organizations.

* A **production organization** holds your real customers, orders and invoices.
* A **sandbox organization** is a separate organization for building and testing. It has its own customers, orders and API keys, and never charges anyone. Its members are kept in step with the production organization it belongs to.

Every object the API returns says which kind of organization it's in with `livemode`: `true` in production, `false` in a sandbox.

## Create a sandbox organization

1. Sign in to the [Paid app](https://app.paid.ai), and open the organization switcher at the bottom of the sidebar.
2. Choose **Create sandbox org**.
3. Name the sandbox, pick the production organization it belongs to, and choose **Create**. Paid copies that organization's currencies into it.

The switcher lists your organizations under **Production** and **Sandbox**. Switch to the new sandbox before you create a key.

## Create an API key

1. In the sandbox, go to **Developers > API keys** and choose **Create API key**.
2. Give the key a name, such as "Local development", and optionally a description of what it's for.
3. Leave **Restricted mode** off for a key with full access, or turn it on to limit the key to the scopes you choose.
4. Choose **Create key**, then copy the key. Paid shows it once: you can't see it again.

A key from a sandbox starts with `paid_sk_test_`, and a key from a production organization with `paid_sk_live_`. A key works only in the organization that created it.

Keep the key in an environment variable, so it stays out of your code:

```bash
export PAID_API_KEY="paid_sk_test_..."
```

## Keep your keys safe

* Use keys only on your servers. Never put one in browser or mobile app code, or commit one to source control.
* Create a separate key for each service or environment, so you can revoke one without breaking the others.
* If a key may have leaked, revoke it in **Developers > API keys** and create a new one.

## Next steps

* [Make your first request](/get-started/first-request) with your new key.