Skip to content
Esc
navigateopen⌘Jpreview

List entries

A content type’s entries with resolved field values; rich text bodies are markdown as last saved by the realtime room. A map returns its single entry as a one-element list.

GET/content/{type}
Path parameters
typestringrequired
Responses
200OK
typeobjectrequired
Show properties
slugstringrequired
namestringrequired
kindstringrequired
Allowed:collectionmap
fieldsobject[]required
Show properties
Array of object
keystringrequired
namestringrequired
typestringrequired
Allowed:textrich_textnumbercheckboxdateselectmulti_selectlinkpersonassetreferencemulti_reference
optionsobject[]required
Show properties
Array of object
namestringrequired
colorstringrequired
collectionstring
entriesobject[]required
Show properties
Array of object
idstringrequired
slugstringrequired
titlestringrequired
fieldsobjectrequired
createdAtstring<date-time>required
updatedAtstring<date-time>required
401401
One of:
object
definedanyrequired
codeanyrequired
statusanyrequired
messagestringrequired
default: "Authentication required. Pass an organization API key in the `x-api-key` header."
dataany
object
definedanyrequired
codestringrequired
statusnumberrequired
messagestringrequired
dataany
404404
One of:
object
definedanyrequired
codeanyrequired
statusanyrequired
messagestringrequired
default: "No content type with that slug in this organization."
dataany
object
definedanyrequired
codestringrequired
statusnumberrequired
messagestringrequired
dataany
429429
One of:
object
definedanyrequired
codeanyrequired
statusanyrequired
messagestringrequired
default: "The organization's API request limit for this period has been reached."
dataany
object
definedanyrequired
codeanyrequired
statusanyrequired
messagestringrequired
default: "Too many requests. Try again shortly."
dataany
object
definedanyrequired
codestringrequired
statusnumberrequired
messagestringrequired
dataany
Request
curl -X GET "https://stetcms.com/api/v1/content/string"
Response
{
  "type": {
    "slug": "string",
    "name": "string",
    "kind": "collection",
    "fields": [
      {
        "key": "string",
        "name": "string",
        "type": "text",
        "options": [
          {
            "name": "string",
            "color": "string"
          }
        ],
        "collection": "string"
      }
    ]
  },
  "entries": [
    {
      "id": "string",
      "slug": "string",
      "title": "string",
      "fields": {},
      "createdAt": "2024-01-01T00:00:00Z",
      "updatedAt": "2024-01-01T00:00:00Z"
    }
  ]
}