---
title: "Get Blog By Preview Token"
method: GET
path: "/v1/blog/preview/{token}"
tags: ["blog"]
---

# Get Blog By Preview Token

`GET /v1/blog/preview/{token}`

## Request

- Base URL: `https://api.linktodm.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.linktodm.com/v1/blog/preview/{token}`
- Auth: none declared

Public but unguessable: render a blog from a signed preview token.
Serves drafts and inactive posts (that's the point), so the token is the
only credential. Anything unusable — bad signature, wrong purpose,
expired, deleted blog — comes back as a plain 404.

The website mounts this at /blogs/preview/{token} and renders it with the
same template as a published post, with noindex set.

## Path parameters

- `token` string, required

## Response `200`

Successful Response

- BlogDetailResponse: Public blog detail (view-by-slug). Mirrors every column the endpoint used to return from the raw model, plus the aggregated related blogs.
  - `id` integer, required
  - `babylovegrowth_ai_id` string, nullable
  - `title` string, required
  - `meta_description` string, required
  - `slug` string, required
  - `language_code` string, required
  - `content_html` string, required
  - `content_markdown` string, nullable
  - `hero_image_url` string, nullable
  - `written_by` string, required
  - `is_active` boolean, required
  - `is_draft` boolean
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time, nullable
  - `related_blogs` RelatedBlogItem[]
    - `id` integer, required
    - `title` string, required
    - `slug` string, required
    - `meta_description` string, required
    - `hero_image_url` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/linktodm/apis/salesmorph.md) - [All operations](https://skmtc.dev/linktodm/apis/salesmorph/llms.txt) - [OpenAPI document](https://skmtc.dev/linktodm/apis/salesmorph/revisions/4af0ad5dbe92?raw)
