Fetch content with the Delivery API

7 min read

The delivery API is your fast read path. It is plain REST, authenticated with a bearer token, and returns content in the shape of your model. Here is everything you need to query it well.

The endpoint

List published entries for a project. They come back oldest first unless you sort them. Authenticate with any read token - the public read token is perfect for published content.

curl
curl https://your-domain.com/api/v1/your-project/documents \
  -H "Authorization: Bearer mjmt_your_public_read_token"

Filter, paginate and sort

Filter on your own fields

Name a field as fields.name to filter on its value. Field filters need a type, because fields belong to a content type, and several filters are combined with AND.

the five newest news posts, titles only
curl "https://your-domain.com/api/v1/your-project/documents?type=blog_post&fields.category=news&sort=-fields.published_on&per_page=5&select=fields.title,fields.slug" \
  -H "Authorization: Bearer mjmt_your_public_read_token"

Fetch with JavaScript

The same request from a front end - here listing blog posts and rendering their titles:

fetch
const res = await fetch(
  'https://your-domain.com/api/v1/your-project/documents?type=blog_post&sort=-created_at',
  { headers: { Authorization: 'Bearer mjmt_your_public_read_token' } }
);

const { results } = await res.json();
for (const post of results) {
  console.log(post.data.title, post.uid);
}

A single entry

curl
curl https://your-domain.com/api/v1/your-project/documents/42 \
  -H "Authorization: Bearer mjmt_your_public_read_token"

Responses are CDN-cacheable and carry an ETag, so repeat reads are fast and can be revalidated with a 304.

Next

Build it for real

Spin up a project and try this yourself - your first project is free.

Start free All guides
© 2026 Your Ikigai Ltd · Registered in England & Wales, no. 15274889 文 · モジモト