AI Agents

Integrate AI assistants with Lifepeaks through the hosted MCP server, the order-page skill, and documentation available as Markdown and OpenAPI.

Fastest paths

Connect the MCP server

Agents that support the Model Context Protocol can use the MCP server for headless commerce, company and delivery settings, preprinted code batches, brand and storefront, experience, event and special-offer products, categories, greeting designs, issued gift cards, branded gift-card PDF templates, and order-page configuration. One connection can act for every company the signed-in user manages. The server provides a field catalog and workflow prompts. Available tools depend on the credential's scopes; use REST for operations outside the MCP tool set. Code-batch writes and delivery-method restrictions require OAuth sign-in by an active system administrator from a permitted IP.

bash
claude mcp add --transport http lifepeaks https://mcp.lifepeaks.dk/mcp \
  --header "Authorization: Bearer lp_live_<your-key>"

For Cursor, VS Code, and every other client, see MCP Server — Install.

Install the order-page skill

The lifepeaks-order-page skill teaches an agent to read and customize a Lifepeaks order page. Install it from this site with the skills CLI:

bash
npx skills add https://docs.lifepeaks.dk/skills/lifepeaks-order-page/SKILL.md

To load it manually — into a system prompt, a repository, or a client that does not use the CLI — fetch the raw files:

  • Skill definition — https://docs.lifepeaks.dk/skills/lifepeaks-order-page/SKILL.md
  • Field catalog reference — https://docs.lifepeaks.dk/skills/lifepeaks-order-page/references/fields.md

Machine-readable surfaces

Documentation index — https://docs.lifepeaks.dk/llms.txt

Every page with a one-line description, following the llms.txt convention. Use this when the agent can fetch pages on demand and should decide for itself what to read.

Whole corpus — https://docs.lifepeaks.dk/llms-full.txt

All guide pages combined in one Markdown document. Use this when the agent needs the complete documentation in a single request.

One page as Markdown — https://docs.lifepeaks.dk/raw/<page>.md

The Markdown source of a single page, for example https://docs.lifepeaks.dk/raw/endpoints.md. Every page on this site has one; the introduction is at /raw/index.md.

OpenAPI 3.1, v2 — https://docs.lifepeaks.dk/openapi/v2.yaml

The v2 REST API specification, including field names, types, and response schemas.

OpenAPI 3.0, v1 (legacy) — https://docs.lifepeaks.dk/openapi/v1.json

The same for the legacy OAuth2 API, for agents working against an existing v1 integration.

Every documentation page also carries a Copy page control next to its title, which copies that page's Markdown or hands it to Claude or ChatGPT directly.

What the skill covers

The skill also explains the separate tools for experience categories, artwork and remaining stock, special offers, company greeting presets, and direct product links. These changes use product tools rather than order-page draft fields.

  • Authentication and the scope each operation needs
  • The draft-review-publish workflow, from orderpage_list_fields through orderpage_publish_draft
  • The full writable-field catalog with types, maximum lengths, and per-locale support
  • Type validation rules for string, bool, color, csv, gtm, and int
  • Writing translations by drafting one locale at a time
  • What is deliberately not writable, and the errors returned when it is attempted
  • Files and pictures: use an online image_url or upload the file yourself with upload_link_create and PUT to upload_url
  • Worked end-to-end examples

Notes for agent implementers

  • The writable field catalog is dynamic. Call GET /v2/order-page/schema or orderpage_list_fields before writing, rather than hardcoding field names.
  • Use a draft to review changes before publishing. To restore an earlier version, create a draft from that revision, review it, and publish it.
  • Every draft edit and publish needs the newest ETag. A stale one is rejected, which is what stops two editors overwriting each other.
  • Non-catalog fields are rejected with 422 Unprocessable Entity, not silently ignored.
  • Code-batch, order, checkout, product, PDF-template, and order-page writes take an idempotency_key. Shipping and delivery-method changes through company_update_settings also require one; its other settings do not. Most write tools require confirm: true; send it only after the user approves that specific side effect.
  • Batch campaign_name is visible to buyers as the sender and recipient name on activation. Read the company's languages first and use one name in its intended buyer language; this field has no translated variants.
  • The key returned by POST /v2/api-keys is shown exactly once. Store it immediately in an approved secret store; do not include it in prompts or conversation logs.
  • Upload files yourself: use an online image_url where supported, otherwise upload_link_create and PUT the bytes to upload_url. Do not open a browser or ask the user to upload. Only if you cannot make HTTP requests, give them url. See Files and pictures for the curl command.
  • When a product write answers links, report them to the user: a private product is reached only through its direct links.
  • Before creating a product, ask the user for any required fact that is missing — for an event: title, date and times, venue, price, seats, sale window, and whether it is private — rather than inventing one.
  • Minimum scopes for the order page: orderpage:read to read, orderpage:write to draft and publish.