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:

# 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 guide.

x-grid-environment
string
required

Specifies which environment to use for the operation. Must be either ‘production’ or ‘sandbox’.

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