# Storefront API reference

Every mock.shop store answers Shopify's GraphQL Storefront API, so code you
write against it works against a real store too.

## Send a query

Send a `POST` request with a JSON body to a store's `/api`. No token is needed.

```sh
curl -X POST "https://mock.shop/api" \
  -H "Content-Type: application/json" \
  -d '{"query":"{ shop { name } }"}'
```

Swap the host for another store, such as `https://snowboards.mock.shop/api`.
Every API version, such as `https://<store>.mock.shop/api/2026-07/graphql.json`,
serves the same schema.

## Read the reference

The [GraphQL Storefront API reference](https://shopify.dev/docs/api/storefront)
on shopify.dev lists the queries and mutations mock.shop answers.
