---
title: "Get Blog Draft By Id"
method: GET
path: "/api/v1/blog-drafts/{blog_id}"
---

# Get Blog Draft By Id

`GET /api/v1/blog-drafts/{blog_id}`

## Request

- Base URL: `https://api.seoproai.co`
- URL: `https://api.seoproai.co/api/v1/blog-drafts/{blog_id}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://dajosjnaalanhqksxrpe.supabase.co/auth/v1/authorize`, token URL `https://dajosjnaalanhqksxrpe.supabase.co/auth/v1/token`)

Get a single blog draft by ID.

Supports both API key and JWT authentication.
Returns the complete blog data including HTML content.

## Path parameters

- `blog_id` integer, required

## Headers

- `X-User-Id` string, nullable
- `X-Organization-Id` string, nullable
- `Authorization` string, nullable

## Response `200`

Successful Response

- Blog
  - `title` string, required
  - `content` string, required
  - `html_content` string, nullable
  - `keywords` TopicKeyword[]
    - `keyword` string, required
    - `monthly_searches` integer
    - `competition` string
    - `estimated_total_traffic` integer
    - `opportunity_score` number
    - `serp_features` string[]
    - `related_keywords` string[]
  - `tags` string[]
  - `status` string
  - `meta_description` string, required
  - `featured_image` string, nullable
  - `feedback` string, nullable
  - `published_url` string, nullable: The URL where the blog post is published on the CMS platform
  - `url` string, nullable: Legacy field - use published_url instead
  - `id` integer, required
  - `website_id` integer, required
  - `topic_id` integer, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/seoproai/apis/seopro-ai.md) · [All operations](https://skmtc.dev/seoproai/apis/seopro-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/seoproai/apis/seopro-ai/revisions/5b4b6391ddc9?raw)
