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

# Environments

> Leadhub provides a sandbox environment for integration testing and a production environment for live traffic.

## Available environments

| Environment    | Base URL                            | Purpose             |
| -------------- | ----------------------------------- | ------------------- |
| **Production** | `https://{tenant}.techea.eu/api/v1` | Live traffic        |
| **Sandbox**    | `https://sandbox.techea.eu/api/v1`  | Integration testing |

## Sandbox

The sandbox environment lets you build and test your integration without affecting live data or real advertiser matching.

* Leads submitted to sandbox are **never distributed** to real advertisers.
* Responses mimic production behaviour — you will receive `new`, `distributed` and `rejected` statuses.
* Sandbox credentials (API Key, `publisher_id`, `product_id`) are separate from production. Request them from your Leadhub account manager.

### Example request (sandbox)

```bash theme={null}
curl -X POST https://sandbox.techea.eu/api/v1/lead \
  -H "apikey: YOUR_SANDBOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "product_id": "YOUR_SANDBOX_PRODUCT_ID",
    "publisher_id": "YOUR_SANDBOX_PUBLISHER_ID",
    ...
  }'
```

<Note>
  Sandbox API Keys cannot be used against the production endpoint, and vice versa.
</Note>

## Production

Production requests are routed to `https://{tenant}.techea.eu/api/v1`, where `{tenant}` is the subdomain assigned to your account.

Contact your Leadhub account manager to confirm your production tenant URL.
