> For the complete Lynkow documentation index in agent-friendly format, see [llms.txt](/llms.txt).

# Which API Should I Use?

**Published**: 2026-11-30
**Category**: Getting Started

> Lynkow has two HTTP APIs, an SDK for one of them, and an MCP server for AI assistants. This page tells you which one fits your task. Previous: [Quick Start](/sdk/getting-started/quick-start) | Next: [Authentication and Keys](/sdk/getting-started/authentication-and-keys)

> **Reference** - This guide is a tutorial. For exhaustive, always-current signatures and field lists, see the auto-generated reference:
> 
> - API: [Storefront API Overview](/storefront-api/overview) and [Admin API Overview](/admin-api/api-overview)
> - SDK: [SDK Reference](/sdk)

## Prerequisites

- A first request done ([Quick Start](/sdk/getting-started/quick-start))

## At a glance

| Surface | Use it for | Called from | Credential | Header |
| --- | --- | --- | --- | --- |
| Storefront API, `https://api.lynkow.com/storefront/{siteId}` | Showing a site to visitors: published content, pages, search, forms and reviews, and the shop (catalog, cart, checkout, buyer accounts) | A browser, a mobile app or a server | The Site ID, in the URL. Plus the publishable key for the shop, and a customer token for a signed-in buyer | None for content. `X-Lynkow-Pk` for the shop. `Authorization: Bearer` for a buyer |
| Admin API, `https://api.lynkow.com/v1` | Managing a site's data from your own backend: create, update and delete content, media, forms, products and more | Your server only | An API token with permissions | `Authorization: Bearer lkw_sk_...` |
| `lynkow` SDK, with `@lynkow/next` and `@lynkow/astro` | The Storefront API in TypeScript, with types, retries and errors you can branch on | Node.js, a browser, Next.js or Astro | The same as the Storefront API | Set once in `createClient()` |
| MCP server, `https://mcp.lynkow.com/mcp` | Letting an AI assistant read and manage a site | An AI assistant | Your Lynkow account, or an API token | `Authorization: Bearer` with a token |


Building a website or an app that shows Lynkow content: start with the SDK. Syncing data from another system, or writing to a site from a script: use the Admin API.

## Storefront API

The Storefront API serves what visitors see. Every path starts with `/storefront/{siteId}`, and the Site ID is the only thing a content read needs:

```bash
curl "https://api.lynkow.com/storefront/a779c43c-430e-45d1-8749-2144d7f60a0f/contents?limit=3&locale=en"
```

It also takes the writes a visitor makes: form and review submissions, the cart, checkout and bookings. Form and review submissions are protected against spam, and every request is limited per client ([Rate Limits](/sdk/getting-started/rate-limits)). Shop routes need the publishable key, which is public and safe in browser code. A browser call to the content routes must come from the site's domain or from one of its allowed origins.

## Admin API

The Admin API, under `/v1`, reads and writes the same data the dashboard manages. Each request carries an API token, and each token has its own permissions:

```bash
curl "https://api.lynkow.com/v1/contents?limit=5" \
  -H "Authorization: Bearer $LYNKOW_API_TOKEN"
```

An API token is a secret with write access to your site. Keep it on your server: never send it to a browser or ship it in an app.

## SDK

The `lynkow` npm package calls the Storefront API for you. It never calls the Admin API, so it never needs an API token:

```typescript
import { createClient } from 'lynkow'

const lynkow = createClient({
  siteId: process.env.NEXT_PUBLIC_LYNKOW_SITE_ID!,
  publishableKey: process.env.NEXT_PUBLIC_LYNKOW_PUBLISHABLE_KEY,
})

const { data } = await lynkow.contents.list({ limit: 10 })
```

`@lynkow/next` and `@lynkow/astro` build on it for Next.js and Astro sites. They hold the code every site needs, such as configuration, languages, metadata, the buyer session and webhooks. The Next.js guides use `@lynkow/next` throughout, for example [Multi-language (i18n)](/sdk/features/i18n). The Astro adapter has its own guide: [Build a Site with Astro](/sdk/getting-started/astro).

## MCP server

The MCP server lets an AI assistant such as Claude or ChatGPT work on your site: list and edit content, publish site blocks, read analytics. Each tool call goes through the Admin API with your access, so the assistant can do only what your account or token allows, and its calls count toward the Admin API limits. Connect it with your Lynkow account, or with an API token for an assistant that cannot sign in ([Quick Start](/sdk/getting-started/quick-start), "Optional: let your AI assistant do it"). [MCP Tools](/sdk/advanced/mcp-tools) lists the tools.

## Reference

- API: [Storefront API Overview](/storefront-api/overview), [Admin API Overview](/admin-api/api-overview)
- SDK: [SDK Reference](/sdk), [`ContentsService`](/sdk/services/sdk-contents-service)

## Next Steps

- [Authentication and Keys](/sdk/getting-started/authentication-and-keys) - every credential, where to find it, and which ones are secret
- [Errors](/sdk/getting-started/api-errors) - the error body and the status codes
- [Add Lynkow to an Existing Project](/sdk/getting-started/existing-project) - the SDK in a Next.js app