# &Open API Documentation > REST API reference for the &Open gifting platform. Covers authentication, gift requests, campaigns, users, themes, cost centers, purchase orders, webhooks, and error handling. These instructions are for AI agents and coding assistants writing code against the &Open API. - This file covers API version `2026-05`. Send `AndOpen-API-Version: 2026-05` on every request. A missing or unrecognized version is rejected with `400` and `unsupported_api_version` before the token is checked. `2025-10` is still supported, but build new integrations on `2026-05`. See [Migrating from 2025-10 to 2026-05](/docs/migration/2025-10-to-2026-05.md). - Use the base URL for the account's region and environment: `https://api.andopen.co` (US and global), `https://api.eu.andopen.co` (EU), or `https://api.staging.andopen.co` (staging). A token works only against the region and environment it was issued for, and gets `401` anywhere else. Production tokens start `ao-v1-live-` and staging tokens `ao-v1-staging-`. Build and test against staging. See [Environments](/docs/environments.md). - Authenticate with `Authorization: Bearer `. An API key acts for the whole account. A partner app that other &Open customers connect to uses OAuth instead. See [Authentication](/docs/authentication.md) and [OAuth](/docs/oauth.md). - With an OAuth token from a user-level grant, call [`GET /users/me`](/docs/users/me.md) first to learn the user, their team and their budget. An API key or an account-level grant names no user, so that call returns `400`. With an API key, use [`GET /users`](/docs/users.md) instead. - Money is `{ "amount": , "currency": "" }`, where `amount` is in the currency's smallest unit: `2500` with `"currency": "EUR"` is €25.00. Never send or parse decimal amounts. - Lists are cursor-paginated. Pass `limit`, and `after` set to the `id` of the last item on the previous page, and keep going until `has_more` is `false`. Never count from the first page alone. - Ignore response fields you don't recognize, and handle unknown enum values and error codes by falling back to the error `type`. Within a version, these additions aren't breaking changes. - On `429`, wait the number of seconds in `Retry-After` before retrying. `RateLimit-Reset` is an absolute Unix timestamp, not a delay. - The full contract is in the [OpenAPI 3.1 spec](/openapi/2026-05.yaml). Prefer it, and the per-page `.md` links below, over `llms-full.txt`, which is large. ## Overview - [Authentication](/docs/authentication.md): Authenticate every request with a bearer token: an API key for your own account, or an OAuth access token for a partner app. - [Environments](/docs/environments.md): The &Open API runs in two production regions plus a shared staging environment, each with its own base URL. - [API reference](/docs/intro.md): Build gifting experiences with the &Open API. - [Versioning](/docs/versioning.md): The &Open API uses calendar-based versions, and every request must name one in the AndOpen-API-Version header. ## OAuth - [OAuth](/docs/oauth.md): Connect your partner app to &Open accounts with OAuth 2.0, so customers authorize it without handing over an API key. - [Get the protected-resource metadata](/docs/oauth/protected-resource-metadata.md): GET /.well-known/oauth-protected-resource/2026-05: returns the OAuth metadata for this API. ## Gift Requests - [List gift requests](/docs/gift-requests.md): GET /gift_requests: lists the gift requests in your account, newest first, as a cursor-paginated collection. - [Cancel a gift request](/docs/gift-requests/cancel.md): POST /gift_requests/{id}/cancel: cancels a gift request the gift recipient hasn't redeemed yet. - [Create a gift request](/docs/gift-requests/create.md): POST /gift_requests: creates a single gift request for a gift recipient. - [Get a gift request](/docs/gift-requests/show.md): GET /gift_requests/{id}: retrieves a single gift request by its ID. ## Campaigns - [List campaigns](/docs/campaigns.md): GET /campaigns: lists the campaigns belonging to your account, newest first, as a cursor-paginated collection. - [Get a campaign](/docs/campaigns/show.md): GET /campaigns/{id}: retrieves a single campaign by its ID. ## Users - [List users](/docs/users.md): GET /users: lists the users on your account, newest first, as a cursor-paginated collection. - [Get the current user](/docs/users/me.md): GET /users/me: retrieves the user your token authenticates as, with their team and active budget. - [Get a user](/docs/users/show.md): GET /users/{id}: retrieves a single user by their ID, with their team and active budget. ## Themes - [List themes](/docs/themes.md): GET /themes: lists your account's themes, most recently edited first, as a cursor-paginated collection. - [Get a theme](/docs/themes/show.md): GET /themes/{id}: retrieves a single theme by its ID. ## Cost Centers - [List cost centers](/docs/cost-centres.md): GET /cost_centres: lists the cost centers your teams can charge a gift to, ordered by code, as a cursor-paginated collection. ## Purchase Orders - [List purchase orders](/docs/purchase-orders.md): GET /purchase_orders: lists the purchase orders your teams can charge a gift to, ordered by code, as a cursor-paginated collection. ## Webhooks - [Webhooks](/docs/webhooks.md): &Open sends signed webhook events to your application when a gift request in your account changes. ## Errors - [Errors](/docs/errors.md): How every endpoint reports failures: the HTTP status codes, error types and codes, and how to handle them. ## Migration - [Migrating from 2025-10 to 2026-05](/docs/migration/2025-10-to-2026-05.md): Upgrade an integration from API version 2025-10 to 2026-05: the cross-cutting changes first, then the changes per resource. ## Optional - [Full documentation, cURL only](/llms-full-curl.txt): Every page, with code examples limited to cURL. - [Full documentation, JavaScript only](/llms-full-javascript.txt): Every page, with code examples limited to JavaScript. - [Full documentation, Python only](/llms-full-python.txt): Every page, with code examples limited to Python. - [Full documentation, Ruby only](/llms-full-ruby.txt): Every page, with code examples limited to Ruby.