---
title: "Publish a variant now"
method: POST
path: "/api/v1/variants/{variant_id}/publish-now"
tags: ["posts"]
---

# Publish a variant now

`POST /api/v1/variants/{variant_id}/publish-now`

## Request

- Base URL: `https://api.cadencz.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.cadencz.com/api/v1/variants/{variant_id}/publish-now`
- Auth: HTTP bearer

Publishes a draft, scheduled, or failed variant immediately and synchronously — the response reflects the real publish outcome rather than waiting for the scheduler. Also the retry path for a failed post: it posts instantly instead of waiting for its (past) scheduled time.

## Path parameters

- `variant_id` string, required

## Response `200`

Successful Response

- VariantRead
  - `id` string, required
  - `post_id` string, required
  - `channel_id` string, nullable, required
  - `platform` string, required
  - `body` string, required
  - `media_ids` string[], required
  - `media` MediaRead[]
    - `id` string, required
    - `kind` string, required
    - `url` string, required
    - `alt_text` string, nullable
    - `width` integer, nullable
    - `height` integer, nullable
    - `bytes` integer, nullable
  - `platform_target` string, nullable, required
  - `status` string, required
  - `scheduled_at` string, date-time, nullable, required
  - `published_at` string, date-time, nullable, required
  - `provider_url` string, nullable, required
  - `error` string, nullable, required
  - `attempt_count` integer, required
  - `content_metadata` object
  - `thread_id` string, nullable
  - `thread_position` integer, nullable

## Other responses

- `400`: The request payload is invalid.
- `401`: Missing or invalid Supabase bearer token.
- `404`: The requested resource was not found.
- `409`: The requested state transition is not allowed.
- `422`: Validation Error
- `502`: The platform rejected the publish; safe to retry.

---

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