> ## Documentation Index
> Fetch the complete documentation index at: https://docs.talescria.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Environments

> Test and live, and how a key decides which one you're in.

Talescria has two environments:

| | Test | Live |
| - | - | - |
| Money | Simulated. Nothing real moves. | Real. |
| Available | As soon as you sign up. | Once your account is approved. |
| Credentials | `sk_test_…`, `at_test_…` | `sk_live_…`, `at_live_…` |

Accounts, recipients, payment links, customers and invoices belong to one environment. Something made in test can't be used in live, and the other way round.

## The key decides

You don't choose the environment per request: **every request acts in its key's environment.** A test token only ever touches test data.

If a request does name an `environment` (in the query or body) and it differs from the key's, it's refused with `403 ENVIRONMENT_MISMATCH`. You can leave `environment` out everywhere.

## Going live

Live keys stop working if your account leaves good standing, and start working again only once it's back. Before approval, requests with a live key are refused with `403 ENVIRONMENT_UNAVAILABLE`.

To go live:

1. Finish verification in the dashboard.
2. Once approved, create a **live** OAuth client with the scopes you need.
3. Swap the client ID and secret in your server's configuration. Your code doesn't change.

> [!NOTE]
>
> Test data is not copied to live. Open your live accounts and add your live recipients once you're approved.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.