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

# Introduction

# Welcome to the Flexprice API

The Flexprice API lets you programmatically manage pricing, subscriptions, and billing for your SaaS application.

## Base URL

All API requests must use one of the following base URLs:

* **US Region**: `https://us.api.flexprice.io/v1`
* **India Region**: `https://api.cloud.flexprice.io/v1`

Select your preferred region using the server selector in the API playground:

<Frame>
  <img src="https://mintcdn.com/flexprice/4YjYdcJWwiHVZnUI/region-selector.png?fit=max&auto=format&n=4YjYdcJWwiHVZnUI&q=85&s=ccd640a184478b1fb0bed6cf9a8e2664" alt="Region Selector" width="1330" height="212" data-path="region-selector.png" />
</Frame>

## Authentication

All API endpoints require authentication using an API key. Include your API key in the `x-api-key` header with every request.

```bash theme={null}
x-api-key: <your_api_key>
```

Create API keys in the Flexprice Dashboard. If you need help, email us at [support@flexprice.io](mailto:support@flexprice.io).

## Response Format

Successful API responses return JSON data directly. The response structure varies by endpoint—see individual endpoint documentation for details.

## Error Handling

The API uses standard HTTP status codes:

* `200` - Success
* `201` - Created
* `400` - Bad Request
* `401` - Unauthorized
* `404` - Not Found
* `409` - Conflict
* `429` - Too Many Requests
* `500` - Internal Server Error

For detailed error response formats and error codes, see the [Error Responses](/api-reference/error-responses) documentation.

## Need Help?

* Email: [support@flexprice.io](mailto:support@flexprice.io)
* Documentation Updates: [tech@flexprice.io](mailto:tech@flexprice.io)
