---
title: "Publish Content"
method: POST
path: "/v1/content/{content_id}/publish"
tags: ["content"]
---

# Publish Content

`POST /v1/content/{content_id}/publish`

## Request

- Base URL: `https://api.theagentc.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.theagentc.io/v1/content/{content_id}/publish`
- Auth: HTTP bearer

Publish a content item.

This endpoint:
1. Verifies the content belongs to the workspace
2. Calculates credit cost based on mode + content type
3. Checks if workspace has sufficient credits
4. Deducts credits and updates content status
5. Returns the updated content item

If credit deduction fails, the content status remains unchanged.

## Path parameters

- `content_id` string, uuid, required

## Request body

- ContentPublishRequest: Request model for publishing content (triggers credit deduction).
  - `mode` string, required: Content creation mode: mode_1, mode_2, or mode_3

## Response `200`

Successful Response

- ContentRead: Full content item response model.
  - `id` string, uuid, required
  - `run_id` string, uuid, nullable, required
  - `brand_id` string, uuid, required
  - `content_type` string, required
  - `platform` string, required
  - `body` object, required
  - `status` string, required
  - `platform_post_id` string, nullable, required
  - `rejection_feedback` string, nullable, required
  - `scheduled_at` string, date-time, nullable, required
  - `posted_at` string, date-time, nullable, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/theagentc/apis/the-agent-c-api.md) · [All operations](https://skmtc.dev/theagentc/apis/the-agent-c-api/llms.txt) · [OpenAPI document](https://skmtc.dev/theagentc/apis/the-agent-c-api/revisions/1c9868b44584?raw)
