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

# URL & Environments

> The base URL of the Lucca API depends on your account, region and environment.

| Environment    | Purpose                                                                                                                                     |
| :------------- | :------------------------------------------------------------------------------------------------------------------------------------------ |
| **Production** | **Live data**. Deploy there once tested.                                                                                                    |
| **Test**       | **Testing**. There can only be one test environment, contrary to sandboxes. Data refresh from production must be requested through support. |
| **Sandbox**    | **Testing**. There can be multiple sandboxes, and you can freely restore its data with a snapshot from production. Paid feature.            |
| **Demo**       | **Discovery**. Made for companies to test out Lucca while not being paying customers yet. Populated with sample data.                       |

***

## Sandbox Environments

Sandbox environments follow a particular URL structure:

```
https://{account}-{sandboxName}.sandbox.{server}.luccasoftware.com/lucca-api
```

<Card title="Managing your sandbox environment" href="../sandbox">
  Learn how to manage your sandbox environment in order to test out your integration.
</Card>

***

## Other Environments

<ResponseExample>
  ```abnf URL Structure theme={null}
  <scheme>        = 'https://'
  <account_name>  = 1*ALPHA
  <environment>   = 'ilucca' | 'ilucca-test' | 'ilucca-demo'
  <region>        = 'net' | 'ch'
  <api>           = '/lucca-api'

  <url>           = <scheme> <account_name> '.' <environment> '.' <region> <api>

  ; Examples:
  ; https://example1.ilucca.net/lucca-api
  ; https://example2.ilucca-test.ch/lucca-api
  ; https://example3.ilucca-demo.net/lucca-api
  ```
</ResponseExample>

```
https://{account}.{environment}.{region}/lucca-api
```

<Steps>
  <Step title="Scheme">
    HTTPS only.
  </Step>

  <Step title="Account">
    Your account name was assigned by Lucca upon deploying your Lucca account.
    It's most likely your company name.
  </Step>

  <Step title="Environment">
    Outside of sandboxes, there are three types of environments:

    * **Production** `ilucca`: the one containing your live data.
    * **Test** `ilucca-test`: a sandboxed snapshot of your production environment for testing purposes.
    * **Demo** `ilucca-demo`: a demonstration environment for prospects that do not have a Lucca account (yet).
  </Step>

  <Step title="Region">
    As of now, there are two possible regions:

    * Europe `.net`;
    * Switzerland `.ch`.
  </Step>
</Steps>
