---
title: "Get Blog Preview Token"
method: GET
path: "/v1/blog/admin/{blog_id}/preview_token"
tags: ["blog"]
---

# Get Blog Preview Token

`GET /v1/blog/admin/{blog_id}/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/admin/{blog_id}/preview_token`
- Auth: HTTP bearer

Mint an expiring link that renders this blog on the website, drafts
included. The admin console opens `preview_url` in a new tab.

## Path parameters

- `blog_id` integer, required

## Response `200`

Successful Response

- BlogPreviewTokenResponse: Signed, expiring link that renders a post on the website exactly as a published one, including drafts. Handed to the admin console so a writer can check a draft before publishing.
  - `token` string, required
  - `preview_url` string, required
  - `expires_at` string, date-time, required

## 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)
