DUMA/ API

Get an entry

Returns one published entry by its document id or slug.

GEThttps://api.duma-business.com/v1/cms/delivery/entries/{typeKey}/{idOrSlug}

content:readPublishable or secret key

Responses carry a weak ETag; send it back as If-None-Match to get 304 Not Modified. Cache-Control: private, max-age=30, stale-while-revalidate=120.

An entry that does not exist or is not published is a 404.

Request example

Example request
curl -X GET "https://api.duma-business.com/v1/cms/delivery/entries/{typeKey}/{idOrSlug}" \
  -H "Authorization: Bearer dk_pub_…"

Path parameters

typeKeystringRequired
The content type’s key.
idOrSlugstringRequired
The entry’s document id (a UUID) or its slug.

Query parameters

localestring
A configured locale code. Defaults to the workspace’s default locale; an unknown code is a 400.
fallbackbooleanDefault true
When true, an entry missing in locale is served in its fallback language, then the default.
truefalse
fieldsstring
Comma-separated field keys to return, e.g. title,hero. Unknown or private fields are a 400.
includenumberDefault 1
How many levels of media and reference fields to resolve into objects (0–3). Anything unresolvable stays as { id }.
statusstringDefault published
draft reads drafts — only a secret key with content:preview.
publisheddraft

Response

Response · 200
{
  "data": {
    "id": "4a8c2e6f-1b3d-4f5a-9c7e-2d4f6a8b0c1e",
    "type": "blog-post",
    "locale": "en",
    "slug": "autumn-menu-is-here",
    "createdAt": "2026-10-01T09:15:00.000Z",
    "updatedAt": "2026-10-20T14:02:11.000Z",
    "publishedAt": "2026-10-20T14:05:00.000Z",
    "firstPublishedAt": "2026-10-02T08:00:00.000Z",
    "fields": {
      "title": "Our autumn menu is here",
      "slug": "autumn-menu-is-here",
      "hero": {
        "id": "7d1f3b5a-9c2e-4a6b-8d0f-1e3a5c7b9d2f",
        "url": "https://api.duma-business.com/v1/cms/delivery/assets/7d1f3b5a-9c2e-4a6b-8d0f-1e3a5c7b9d2f/file/pumpkin-latte.jpg",
        "fileName": "pumpkin-latte.jpg",
        "mimeType": "image/jpeg",
        "sizeBytes": 412883,
        "width": 1600,
        "height": 1067,
        "title": "Pumpkin spice latte",
        "altText": "A pumpkin spice latte on an oak table",
        "focalPoint": {
          "x": 0.5,
          "y": 0.45
        },
        "renditions": [],
        "srcset": null
      },
      "body": "## Back for autumn\n\nPumpkin spice is back, alongside a new **maple pecan bun**."
    }
  }
}