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

# API reference

> Endpoints, request bodies, and response schemas for the Sparqle API.

The endpoints in this section are defined according to Sparqle's OpenAPI specification.
Each page includes the request schema, an interactive playground, and example responses.

## Base URL

All requests go to one of the [environment](/environments) base URLs:

* **Test** — `https://staging-v2.sparqle.tech`
* **Live** — `https://v2.sparqle.com`

## Authentication

Send your [API key](/authentication) in the `api-key` header on every request.

## Endpoints

| Endpoint                               | Method  | Purpose                                       |
| -------------------------------------- | ------- | --------------------------------------------- |
| `/orders`                              | `POST`  | [Create an order](/concepts/order-lifecycle). |
| `/orders/check/{locationId}`           | `POST`  | Validate an address and serviceability.       |
| `/orders/label/{orderId}`              | `GET`   | Fetch a single [label](/concepts/labels).     |
| `/orders/label/bundle/{orderBundleId}` | `GET`   | Fetch all labels in a bundle.                 |
| `/orders/cancel/{orderId}`             | `PATCH` | Cancel an order.                              |
