Help topics

Create your first model and entries

In this tutorial you create a model called Articles, add three fields, save one entry, and read that entry from the REST API.

What you'll make: one model with a title, a summary and a date, and one saved entry you can read from /morphic/v1/items/article.

Before you start

  • The Morphic plugin is active. See Install and activate Morphic.
  • You are logged in as an administrator. Only administrators can change models.

1. Create the model

  1. Open Models in the sidebar.
  2. Select New model.
  3. In Name, enter Articles. Morphic fills in the API name article and the Id prefix art. Leave them as they are.
  4. Select Create model.

Morphic shows the toast "Model created. Now add fields." and opens the model editor. The model is saved and the editor shows No fields yet.

2. Add fields

Add these three fields. Each field uses the same first step: select Add field, then choose the type.

Add the title field

  1. Select Add field.
  2. Select Text.
  3. In Label, enter Title.
  4. Turn on Required.
  5. Turn on Use as title.
  6. Select Add field.

Add the summary field

  1. Select Add field.
  2. Select Text.
  3. In Label, enter Summary.
  4. Select Add field.

Add the published field

  1. Select Add field.
  2. Select Date.
  3. In Label, enter Published.
  4. Select Add field.

After the third field, the editor shows 3 fields.

Save the fields

  1. Select Save changes.

The button changes to Saved, and Morphic shows a toast with the new version number.

3. Create an entry

  1. Open Articles under Content in the sidebar. The list shows No articles yet.
  2. Select New article. The entry editor opens.
  3. In Title, enter The Lighthouse Keeper's Almanac.
  4. In Summary, enter A short guide to the harbour year.
  5. In Published, enter a date, for example 2026-11-30.
  6. Select Save.

Morphic shows the toast "Article created" and the entry appears in the list.

4. Read the entry from the API

  1. On the Articles list, select More (⋮).
  2. Select API for Articles.
  3. Open the REST address /morphic/v1/items/article under your WordPress REST base, while logged in as an administrator.

The response contains an items list with your entry. Its data holds title and summary.

Result

You have an Articles model with three fields and one saved entry. The entry is returned by the REST API.

What you learned

  • A model is saved as soon as you select Create model. Fields are added to it in the editor.
  • Save changes saves the fields. Each save creates a new version of the model.
  • Each entry is a row in the model's list under Content. The entry's API address is in the More menu.

Next