# Lifepeaks API Documentation > Public reference for Lifepeaks protected headless gift-card commerce, hosted QuickPay checkout, signed webhooks, storefront starters, order-page configuration, MCP, and the legacy v1 OAuth2 API. ## Documentation Sets - [Lifepeaks API Documentation (full)](https://docs.lifepeaks.dk/llms-full.txt): Every documentation page inlined as a single Markdown document. ## Introduction Overview of the Lifepeaks v2 API and MCP server. - [Introduction](https://docs.lifepeaks.dk/) ## Authentication Server-only Bearer API keys, least-privilege scopes, issuance, and rotation. - [Authentication](https://docs.lifepeaks.dk/authentication) ## Build a headless storefront Authoritative catalog and quotes, unpaid orders, Lifepeaks-hosted QuickPay, canonical reconciliation, confirmed-payment fulfillment, and signed webhooks. - [Headless checkout](https://docs.lifepeaks.dk/headless-checkout) - [Signed webhooks](https://docs.lifepeaks.dk/signed-webhooks) - [Starter templates](https://docs.lifepeaks.dk/starter-templates) ## Industry starter templates Current gift_card_value and email-delivery examples for partner-owned frontends. - [Restaurant template](https://docs.lifepeaks.dk/templates/restaurant) - [Hotel template](https://docs.lifepeaks.dk/templates/hotel) - [Spa and wellness template](https://docs.lifepeaks.dk/templates/spa-wellness) - [Retail template](https://docs.lifepeaks.dk/templates/retail) - [Experience template](https://docs.lifepeaks.dk/templates/experience) ## Endpoints Protected headless operations, negotiated compatibility issuance, GET /v2/items, and item claim/refund/cancel/activate/resend actions. - [Endpoints](https://docs.lifepeaks.dk/endpoints) ## Events & Reporting GET /v2/events and its participants, GET /v2/reports/analytics, GET /v2/reports/claimed-items, GET /v2/subscribers. - [Events & Reporting](https://docs.lifepeaks.dk/events-and-reporting) ## Built-in order page Safe fields, i18n, isolated drafts, ETag-protected edits, previews, publishing, and restore. - [Built-in order page](https://docs.lifepeaks.dk/order-page) ## Migrating from v1 OAuth2 password grant to server-only API keys, compatibility boundaries, protected headless payment, idempotency, POS/PMS, settlement, and capture semantics. - [Migrating from v1](https://docs.lifepeaks.dk/migrate-from-v1) ## MCP Server Connect via /mcp, available tools and resources. - [MCP Server](https://docs.lifepeaks.dk/mcp) ## AI Agents MCP and skill install commands, plus every machine-readable surface: llms.txt, llms-full.txt, per-page Markdown, and the OpenAPI specs. - [AI Agents](https://docs.lifepeaks.dk/ai-agents) ## API v2 (current) — Markdown sources Every v2 documentation page as raw Markdown. - [AI Agents](https://docs.lifepeaks.dk/raw/ai-agents.md): Install the Lifepeaks MCP server and order-page skill, and consume the docs as llms.txt, per-page Markdown, and OpenAPI - [Authentication](https://docs.lifepeaks.dk/raw/authentication.md): API keys, scopes, and how to authenticate requests to the Lifepeaks v2 API - [Changelog](https://docs.lifepeaks.dk/raw/changelog.md): Dated changes to the Lifepeaks Public API v2 surface, including beta-breaking changes - [Endpoints](https://docs.lifepeaks.dk/raw/endpoints.md): Headless commerce, compatibility issuance, item operations, and redemption endpoints in Lifepeaks Public API v2 - [Events & Reporting](https://docs.lifepeaks.dk/raw/events-and-reporting.md): Events, participants, analytics, claimed-item transactions and subscribers in the Lifepeaks v2 API - [Headless checkout](https://docs.lifepeaks.dk/raw/headless-checkout.md): Build a partner-owned storefront while Lifepeaks controls pricing, QuickPay payment, commission, and gift-card fulfillment - [Introduction](https://docs.lifepeaks.dk/raw/index.md): Lifepeaks Public API v2 for protected headless gift-card commerce, hosted order pages, operations, and MCP - [MCP Server](https://docs.lifepeaks.dk/raw/mcp.md): Connect AI agents to Lifepeaks headless commerce, gift-card PDF templates, and the hosted order page over the MCP protocol - [Migrating from v1](https://docs.lifepeaks.dk/raw/migrate-from-v1.md): Moving an existing OAuth2 v1 integration to the Lifepeaks v2 API — auth, endpoint mapping, and the behaviour differences that matter - [Built-in order page](https://docs.lifepeaks.dk/raw/order-page.md): Safely customize, preview, publish, and restore the Lifepeaks-hosted order page through Public API v2 - [Branded gift-card PDF templates](https://docs.lifepeaks.dk/raw/pdf-templates.md): Use a company-branded default or publish partner-owned artwork through Lifepeaks API v2. - [Signed webhooks](https://docs.lifepeaks.dk/raw/signed-webhooks.md): Register Lifepeaks webhook endpoints, verify raw-body HMAC signatures, deduplicate events, and recover deliveries - [Starter templates](https://docs.lifepeaks.dk/raw/starter-templates.md): Generate a secure Lifepeaks headless storefront for restaurants, hotels, wellness, retail, or experiences - [Experience template](https://docs.lifepeaks.dk/raw/templates/experience.md): Start an experience-branded storefront on the Lifepeaks catalog and headless checkout - [Hotel template](https://docs.lifepeaks.dk/raw/templates/hotel.md): Start a hotel-branded variable-value gift-card storefront with Lifepeaks headless checkout - [Restaurant template](https://docs.lifepeaks.dk/raw/templates/restaurant.md): Start a restaurant-branded variable-value gift-card storefront with Lifepeaks headless checkout - [Retail template](https://docs.lifepeaks.dk/raw/templates/retail.md): Start a retail-branded variable-value digital gift-card storefront with Lifepeaks headless checkout - [Spa & wellness template](https://docs.lifepeaks.dk/raw/templates/spa-wellness.md): Start a wellness-branded variable-value gift-card storefront with Lifepeaks headless checkout ## API v1 (legacy) The legacy OAuth2 v1 API — /token, actions, items, orders, events and lists. Still supported for existing integrations; new integrations should use v2. The prose pages follow the machine-readable spec and reference below. - [OpenAPI specification (v1)](https://docs.lifepeaks.dk/openapi/v1.json): Machine-readable OpenAPI 3.0 description of every legacy v1 endpoint, including POST /token. - [v1 API reference](https://docs.lifepeaks.dk/reference/v1): Browsable reference UI for the legacy v1 API. - [API info](https://docs.lifepeaks.dk/raw/v1/api-info.md): Specification version, base URLs, support contact and terms of service for the legacy LifePeaks.dk v1 API - [Authorization of Request](https://docs.lifepeaks.dk/raw/v1/authorization.md): Obtaining and using an OAuth2 access token for the legacy LifePeaks.dk v1 API - [Authorization via curl](https://docs.lifepeaks.dk/raw/v1/authorization-curl.md): Requesting a legacy v1 access token with the OAuth2 password grant using curl - [Data](https://docs.lifepeaks.dk/raw/v1/data.md): Encoding, date formats, language selection, and the X-Request-Guid idempotency header in the legacy v1 API - [FAQ](https://docs.lifepeaks.dk/raw/v1/faq.md): Common questions about legacy v1 credentials, access token validity, and refresh token expiry - [API v1 Introduction](https://docs.lifepeaks.dk/raw/v1.md): Overview of the legacy LifePeaks.dk OAuth2 REST API (v1), still supported for existing integrations - [Testing](https://docs.lifepeaks.dk/raw/v1/testing.md): Developer and demo environments for the legacy v1 API, and the debug request object they return ## Machine-readable resources - [OpenAPI specification (v2)](https://docs.lifepeaks.dk/openapi/v2.yaml): Machine-readable OpenAPI 3.1 description of every v2 REST endpoint. - [v2 API reference](https://docs.lifepeaks.dk/reference): Browsable reference UI for the v2 API. - [OpenAPI specification (v1, legacy)](https://docs.lifepeaks.dk/openapi/v1.json): Machine-readable OpenAPI 3.0 description of every legacy v1 REST endpoint. - [Order-page agent skill](https://docs.lifepeaks.dk/skills/lifepeaks-order-page/SKILL.md): Step-by-step skill file for AI agents customizing an order page.