CMS

Get a CMS post by slug

Retrieve a single CMS post by its human-readable slug within a site. Use when you know the published slug but not the post UUID. Org-scoped to the API key; a site_id from another organization yields 404.

get/cms/posts/by-slug

Request

  • Base URL: https://next.frase.io/api/v1
  • URL: https://next.frase.io/api/v1/cms/posts/by-slug
  • Auth: one of:
    • API key in header X-API-KEY
    • HTTP bearer

Query parameters

site_idstring uuid required

Site the post belongs to

slugstring required

Post slug, e.g. "my-first-post"

Response

Post details

Example response

{
  "data": {
    "schema_markup": {
      "@context": "https://schema.org",
      "@type": "BlogPosting",
      "headline": "How to Optimize Content for SEO",
      "description": "A comprehensive guide to on-page SEO optimization.",
      "author": {
        "@type": "Person",
        "name": "Jane Smith",
        "url": "https://example.com/jane"
      },
      "publisher": {
        "@type": "Organization",
        "name": "Acme Inc.",
        "logo": {
          "@type": "ImageObject",
          "url": "https://example.com/logo.png"
        }
      },
      "datePublished": "2026-04-16",
      "dateModified": "2026-04-16",
      "image": "https://example.com/images/seo-guide.jpg"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.