Skip to content
Esc
navigateopen⌘Jpreview

Content model

Every collection and map in the organization with its fields. The generated client is typed from this.

GET/model
Responses
200OK
typesobject[]required
Show properties
Array of object
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
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
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/model"
Response
{
  "types": [
    {
      "slug": "string",
      "name": "string",
      "kind": "collection",
      "fields": [
        {
          "key": "string",
          "name": "string",
          "type": "text",
          "options": [
            {
              "name": "string",
              "color": "string"
            }
          ],
          "collection": "string"
        }
      ]
    }
  ]
}