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

# Environments

> Learn about Grid's production and sandbox environments and how to use them

Grid provides two environments for your integration:

* **Production**: For live transactions and real customer data
* **Sandbox**: For testing and development

## Base URLs

Use these base URLs to access the Grid API:

```bash theme={null}
# Production
https://grid.squads.xyz/api/v0/grid
```

## Environment Selection

All API requests require the `x-grid-environment` header to specify which environment you're using. For detailed information about authentication headers, see the [Authentication](/grid/v0/authentication) guide.

<ParamField header="x-grid-environment" type="string" required>
  Specifies which environment to use for the operation. Must be either
  'production' or 'sandbox'.
</ParamField>

## Testing

The sandbox environment is perfect for testing your integration. It provides the same functionality as production but with test data. Use it to:

* Test your authentication flow
* Test payment flows
* Validate KYC processes

## Best Practices

1. Always start development in the sandbox environment
2. Use different API keys for production and sandbox
3. Test thoroughly in sandbox before moving to production
4. Monitor your API usage in both environments
