---
title: "Publish Article Draft"
method: POST
path: "/api/mcp/publish_article_draft"
tags: ["mcp"]
---

# Publish Article Draft

`POST /api/mcp/publish_article_draft`

## Request

- Base URL: `https://writer.swapp1990.org` (the document declares no server; this is the origin it was published from)
- URL: `https://writer.swapp1990.org/api/mcp/publish_article_draft`
- Auth: none declared

Create a draft article on Dev.to from the prepared publish package.

The Dev.to payload always uses published=false. This endpoint is
idempotent: if the article already has a Dev.to draft id, it returns
the stored draft metadata instead of creating another draft.

## Request body

- PublishArticleDraftInput
  - `job_id` string, required: The story job ID.

## Response `200`

Successful Response

- GenericToolResponse: Fallback for tools whose payload is still being tightened.
  - `story_url` string, nullable
  - `article_url` string, nullable
  - `job_id` string, nullable
  - `status` string, nullable
  - `is_terminal` boolean, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/swapp1990/apis/writeforyou-mcp-api.md) · [All operations](https://skmtc.dev/swapp1990/apis/writeforyou-mcp-api/llms.txt) · [OpenAPI document](https://skmtc.dev/swapp1990/apis/writeforyou-mcp-api/revisions/ce5e2a89ab4d?raw)
