---
title: "Publish a draft now"
method: POST
path: "/api/posts/{id}/publish"
---

# Publish a draft now

`POST /api/posts/{id}/publish`

## Request

- Base URL: `https://octopost.ink`
- URL: `https://octopost.ink/api/posts/{id}/publish`
- Auth: HTTP bearer

## Response `200`

Per-network results

- object

## Other responses

- `400`: Already published.
- `401`: Missing or invalid API key. Send `Authorization: Bearer op_...` with the key from https://octopost.ink/dashboard/api-keys.
- `403`: No active plan or X allowance used up.
- `404`: No post with this id in this account.
- `429`: Rate limited (per minute per IP; publishing 50/hour). Retry after the `Retry-After` seconds.
- `500`: Server error. Safe to retry; email hello@greatwork.company if it persists.

---

[API](https://skmtc.dev/octopost/apis/octopost-rest-api.md) · [All operations](https://skmtc.dev/octopost/apis/octopost-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/octopost/apis/octopost-rest-api/revisions/87cef7870c1b?raw)
