# Headless API

URL: https://developers.shoptet.com/tools-resources/headless-api

note
The Headless API is in beta. The schema can still change.

The Shoptet Headless API is a GraphQL API for building your own storefront on top of a Shoptet e-shop. It serves the catalogue, search, content pages, the e-shop's settings and the cart.

## How to call it

Each e-shop serves the API on its own domain:

```text
POST https://<shop-domain>/api/storefront
```

The Headless API must be active for the e-shop. Then create a merchant token in the administration under **Connections → Headless** ( **Propojení → Headless** in the Czech administration) and exchange it for a short-lived access token. Call the API from your server – the merchant token must never reach a browser.

## Related

- [Shoptet Headless API documentation](https://api.docs.shoptet.com/shoptet-headless-api/schema) – the guides and the reference of every query, mutation and type, hosted outside this portal
