> 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/public-api.md). Agents can also search and read this documentation through its [MCP server](https://docs.getpurpledot.com/~gitbook/mcp).

# Public API

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

The Public API provides storefront availability and pre-order state data. The shopper pre-order endpoint requires authentication beyond the public store key.

## Reference

| Property             | Value                                                                                         |
| -------------------- | --------------------------------------------------------------------------------------------- |
| Base URL             | `https://www.purpledotprice.com/api/v1`                                                       |
| Store authentication | `api_key` query parameter containing the store's public API key                               |
| Shopper pre-orders   | Store key plus `email`, `timestamp`, and `token`, or a Shopify Customer Account session token |
| Response format      | JSON; success and error schemas are defined per operation                                     |

The public key identifies the store and can be used in storefront code. The shared secret must remain on a server you control.

`GET /pre-orders` accepts a hex HMAC-SHA256 token over `<email>:<timestamp>`, signed with the shared secret. The timestamp is in epoch seconds and the token is valid for under 60 seconds. Shopify Customer Account session authentication uses `Authorization: Bearer <token>` in place of those query credentials on this endpoint only.

## Endpoints

| Operation                      | Purpose                              |
| ------------------------------ | ------------------------------------ |
| `GET /pre-orders`              | List a shopper's pre-orders          |
| `GET /availability`            | Get waitlist stock for a product     |
| `GET /waitlists`               | List open waitlists                  |
| `GET /products/preorder-state` | Get the pre-order state of a product |
| `GET /variants/preorder-state` | Get the pre-order state of a variant |

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)


---

# 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/public-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.
