Quickstart
Walk through the core JSON REST API workflow in a few curl commands.
This walkthrough covers the most common JSON REST API operations using curl.
Assumptions:
Your CMS is published at
https://example.test/.JSON API access is active for the domain.
You have an API key, for example
api_exampletoken000000000000.You have a content collection called
blog.
export BASE=https://example.test/api
export KEY=api_exampletoken000000000000
AUTH="Authorization: Bearer $KEY"1. List collections
curl -H "$AUTH" "$BASE/cms/collections"Response:
{
"success": true,
"data": [
{ "index": 0, "label": "Blog", "slug": "blog", "path": "content/blog" }
],
"timestamp": "2026-04-20T10:00:00+00:00"
}Use either slug or index in downstream URLs.
2. List items
Use query parameters such as status, page, and per_page to filter and paginate the list.
3. Create an item
Response:
4. Read the raw item, then update it
Use the returned body when saving. The save handler merges frontmatter fields, but replaces the Markdown body with the body value you send.
PATCH and PUT both use the editor save handler.
5. Delete an item
Response:
From here, browse the Reference, read the Headless Frontend guide, or use Content Migration for bulk imports.
Last updated
Was this helpful?

