Skip to content

Content guide ​

This walks through building a content structure in the console, writing an entry, and publishing it to your website. Everything below happens under Content → Content in the console.

Content home in the console, showing your content types and a four-step setup guide

Content home — your content types and the setup guide on one screen.

1. Create a content type ​

First create the structure (content type) for what you'll publish — blog posts, announcements, FAQs and so on. Click New content type in the top right to open a two-step modal.

Type name is the label shown in the menu. Slug is the identifier used in API paths and console URLs. It accepts letters, numbers and underscores only, and it's best not to change it after creation.

Step 1 of the New content type modal, with FAQ as the type name and faq as the slug

Step 1, basics — set the name and slug.

Click Next to configure fields. A title field is always included; you can only rename it. Use Add field to add fields such as a body or answer, and give each one a Field ID. The field ID is used as-is as the key in the API response's values.

Step 2 of the New content type modal, with a title field and an extra answer field

Step 2, fields — rename the title field and add the fields you need.

Once created, the type appears right away under Content in the left menu. Its slug goes into the :content_type part of the Content delivery path.

2. Configure fields ​

You can change fields at any time. Open Fields in the top right of the content type screen to add or edit fields, and reorder them by dragging or with the ⌃⌄ buttons. Changes apply when you click Save.

Field settings for blog, listing Title, Slug, Body and Cover in order

Fields — the title field can't be deleted; everything else is up to you.

These field types are supported. See Data model for value formats.

Field typeUse it forAPI value
Short textTitles, short phrasesstring
Slug (URL)Entry URL identifierstring
Long textSummaries, short descriptionsstring
Rich textPost bodyRich text document (JSON)
NumberPrices, orderingnumber
ImageCover imageMedia asset id
DateEvent date, post dateYYYY-MM-DD
Yes / NoToggles such as visibilityboolean

3. Write an entry ​

Click + Add on the content type screen to open the editor. Once you've typed a title, From title generates the slug for you, and the body is written in a rich text editor. Images are picked from files you've uploaded to Media.

New blog entry modal with the title and slug filled in, plus the body editor and image picker

Editor — clicking Create saves a draft and takes you to the detail screen.

New entries start as drafts. The list shows a badge for each status, and you can search by title or filter by status.

Blog entry list with Archived, Draft, Scheduled, Changed and Published badges on each row

Entry list — status badges show at a glance what's published.

4. Publish ​

Manage publishing from the Status panel on the right of the detail screen. A draft offers three actions: Publish, Schedule and Archive. Required fields (such as the title) must be filled in before you can publish.

Draft entry detail with Publish, Schedule and Archive buttons in the status panel on the right

Draft detail — edit content on the left, change status on the right.

Schedule opens a dialog to pick the publish time. Scheduled entries are published automatically at that time.

Schedule publish time dialog with date and time inputs and a Schedule button

Schedule — pick a time and click Schedule; the status changes to Scheduled.

Published entries appear on your website right away. If you edit an entry after publishing, its status changes to Changed and the edits show up in API responses immediately. The status transitions are described in Publishing flow.

Published entry detail with an Unpublish button and an activity log of publish, edit and create events

Published detail — the activity log shows when it was published.

5. Connect your website ​

Fetch published content with an API key. Issue a key under Settings → API keys, then call the API as below — only published entries are returned. Drafts, scheduled and archived entries are excluded.

bash
curl https://api.cherpa.me/v1/content/blog/entries \
  -H "Authorization: Bearer chp_..."

See Content delivery for the response format and filters, and API keys for issuing keys.