> For the complete documentation index, see [llms.txt](https://docs.getpurpledot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getpurpledot.com/purple-dot-apis/private-api.md). Agents can also search and read this documentation through its [MCP server](https://docs.getpurpledot.com/~gitbook/mcp).

# Private API

Authentication, base URL, and supported operations for the Private API.

The Private API provides server-to-server access to store inventory, waitlists, pre-orders, refunds, and fulfillment. Its private access token must remain on your server.

## Reference

| Property        | Value                                                                   |
| --------------- | ----------------------------------------------------------------------- |
| Base URL        | `https://www.purpledotprice.com/admin/api/v1`                           |
| Authentication  | `X-Purple-Dot-Access-Token: <token>` or `Authorization: Bearer <token>` |
| Scope           | The store associated with the private access token                      |
| Response format | JSON; success and error schemas are defined per operation               |

A missing token returns HTTP `400`. An invalid access token returns HTTP `401`. The store public API key is not required by the Private API authentication middleware.

## Pagination

List operations define their own pagination parameters. Where supported, `limit` controls page size and `starting_after` supplies the cursor. Allowed values, defaults, and filters are specified per operation; they are not shared by every endpoint.

## Endpoints

| Operation                                      | Purpose                           |
| ---------------------------------------------- | --------------------------------- |
| `POST /inventory`                              | Set available inventory for a SKU |
| `GET /waitlists`                               | List waitlists                    |
| `POST /waitlists`                              | Create a waitlist                 |
| `PUT /waitlists`                               | Create or update a waitlist       |
| `PUT /waitlists/{releaseId}`                   | Update a waitlist                 |
| `POST /planned_inventory`                      | Sync planned inventory            |
| `GET /pre-orders`                              | List pre-orders                   |
| `GET /pre-orders/count`                        | Count pre-orders                  |
| `GET /pre-orders/count-units/sku/{sku}`        | Count pre-order units for a SKU   |
| `POST /refund`                                 | Create a refund                   |
| `GET /fulfillment-orders`                      | List fulfillment orders           |
| `GET /fulfillment-orders/{fulfillmentOrderId}` | Get a fulfillment order           |
| `POST /fulfillment`                            | Create a fulfillment              |

The OpenAPI subpage contains the full parameter, request, and response schemas. The source specification is generated from endpoint definitions.

## Versioning and limits

The base path contains `v1`. Purple Dot doesn't publish request rate limits, so build your client to retry HTTP 429 and 5xx responses with exponential backoff.

## Related

* **Learn by doing:** [Developer overview](https://docs.getpurpledot.com/purple-dot-apis/purple-dot-apis.md)
* **Look up:** [Authentication](https://docs.getpurpledot.com/purple-dot-apis/purple-dot-apis.md#authentication), [Errors, rate limits, and versioning](https://docs.getpurpledot.com/purple-dot-apis/purple-dot-apis.md#errors-rate-limits-and-versioning), [Public API](https://docs.getpurpledot.com/purple-dot-apis/public-api.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.getpurpledot.com/purple-dot-apis/private-api.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
