Docs
Skip to Content
API referenceList posts
cmsPosts

List posts

Posts in one locale (`locale`, the site's language by default), newest first.

GET
/v1/cms/projects/{projectId}/posts

Authorization

apiKey
headerAuthorizationBearer <token>

A project API key: pk_... (public, read published content) or sk_... (secret, the actions it was given).

Path Parameters

projectId*string

Query Parameters

limit?string

Items per page, 1 to 100. Defaults to 20.

cursor?string

The nextCursor of the previous page.

sort?string

Up to 2 fields, comma separated; a leading - sorts descending. Fields: slug, status, publishedAt, title, createdAt, updatedAt, tag, author.

locale?string

Language tag of the row to read (fr, fr-CA). Defaults to the site's language.

format?string

The body as stored (Tiptap JSON, the default), or as HTML or markdown.

Value in"json""html""markdown"

Response Body

A page of posts.

application/json
  1. response
data*array<>
nextCursor*|

Pass as cursor for the next page; null on the last page.

Example Request
curl -X GET 'https://api.tintage.com/v1/cms/projects/string/posts'
Example Response
{  "data": [    {      "id": "string",      "locale": "string",      "alternates": [        {          "locale": "string",          "slug": "string"        }      ],      "slug": "string",      "status": "draft",      "title": "string",      "excerpt": "string",      "body": {        "property1": null,        "property2": null      },      "featureImage": {        "file": "string",        "version": 1,        "url": "string",        "alt": "string",        "crop": {          "x": 0,          "y": 0,          "w": 1,          "h": 1        },        "width": 1,        "height": 1,        "thumbhash": "string",        "color": "string",        "textColor": "string",        "tone": "light",        "transparent": true,        "kind": "photo",        "focalPoint": {          "x": 0,          "y": 0        }      },      "tags": [        {          "id": "string",          "slug": "string",          "name": "string",          "description": "string",          "image": {            "file": "string",            "version": 1,            "url": "string",            "alt": "string",            "crop": {              "x": 0,              "y": 0,              "w": 1,              "h": 1            },            "width": 1,            "height": 1,            "thumbhash": "string",            "color": "string",            "textColor": "string",            "tone": "light",            "transparent": true,            "kind": "photo",            "focalPoint": {              "x": 0,              "y": 0            }          },          "seo": {            "title": "string",            "description": "string"          },          "visibility": "public",          "count": {            "posts": 0          }        }      ],      "authors": [        {          "id": "string",          "slug": "string",          "name": "string",          "bio": "string",          "image": {            "file": "string",            "version": 1,            "url": "string",            "alt": "string",            "crop": {              "x": 0,              "y": 0,              "w": 1,              "h": 1            },            "width": 1,            "height": 1,            "thumbhash": "string",            "color": "string",            "textColor": "string",            "tone": "light",            "transparent": true,            "kind": "photo",            "focalPoint": {              "x": 0,              "y": 0            }          },          "website": "string",          "social": {            "x": "string",            "bluesky": "string",            "mastodon": "string",            "linkedin": "string",            "instagram": "string",            "github": "string",            "youtube": "string"          },          "count": {            "posts": 0          }        }      ],      "seo": {        "title": null,        "description": null      },      "og": {        "title": "string",        "description": "string",        "image": {          "file": "string",          "version": 1,          "url": "string",          "alt": "string",          "crop": {            "x": 0,            "y": 0,            "w": 1,            "h": 1          },          "width": 1,          "height": 1,          "thumbhash": "string",          "color": "string",          "textColor": "string",          "tone": "light",          "transparent": true,          "kind": "photo",          "focalPoint": {            "x": 0,            "y": 0          }        }      },      "twitter": {        "card": "summary",        "title": "string",        "description": "string",        "image": {          "file": "string",          "version": 1,          "url": "string",          "alt": "string",          "crop": {            "x": 0,            "y": 0,            "w": 1,            "h": 1          },          "width": 1,          "height": 1,          "thumbhash": "string",          "color": "string",          "textColor": "string",          "tone": "light",          "transparent": true,          "kind": "photo",          "focalPoint": {            "x": 0,            "y": 0          }        }      },      "canonicalUrl": "string",      "noindex": true,      "fields": {        "property1": null,        "property2": null      },      "publishedAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z",      "version": 1    }  ],  "nextCursor": "string"}
Was this page helpful?

We use essential cookies to keep you signed in. Optional cookies stay off unless you accept them. Cookie details.