---
title: "Publish generated article content to blog"
method: POST
path: "/v1/projects/{projectId}/publish-to-cms"
tags: ["Agent Tools"]
---

# Publish generated article content to blog

`POST /v1/projects/{projectId}/publish-to-cms`

## Request

- Base URL: `https://www.seoforgpt.io/api`
- URL: `https://www.seoforgpt.io/api/v1/projects/{projectId}/publish-to-cms`
- Auth: HTTP bearer

Publishes generated article content to the connected blog. Existing-page update briefs are not publishable as new posts.

## Path parameters

- `projectId` string, uuid, required

## Request body

- object
  - `contentId` string, uuid, required
  - `publishMode` 'draft' | 'publish'
  - `contentVersionId` string: Optional version ID returned by saveContentVersion. Omit to publish the original version.

## Response `200`

Publish result

- GenericEnvelope
  - `data` object
  - `meta` BillingMeta: Plan and quota snapshot (shape may evolve)

## Other responses

- `400`: Invalid input
- `401`: Missing or invalid bearer token
- `404`: Resource not found
- `500`: Server error
- `default`: Any documented or unexpected 4xx or 5xx response uses the same typed error envelope.

---

[API](https://skmtc.dev/seoforgpt/apis/seoforgpt-public-api.md) · [All operations](https://skmtc.dev/seoforgpt/apis/seoforgpt-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/seoforgpt/apis/seoforgpt-public-api/revisions/d90da8f1ea73?raw)
