---
title: "POST /api/posts"
method: POST
path: "/api/posts"
tags: ["PostsEndpoints"]
---

# POST /api/posts

`POST /api/posts`

## Request

- Base URL: `http://api.kreatormesh.com`
- URL: `http://api.kreatormesh.com/api/posts`
- Auth: none declared

## Query parameters

- `draft` boolean

## Request body

- PostInputRequest
  - `targets` PostTargetDto[], nullable, required
    - `accountId` string, required
    - `platformId` string, required
  - `caption` string, nullable, required
  - `overrides` object, nullable, required
  - `options` object, nullable, required
  - `media` PostMedia[], nullable, required
    - `id` string, required
    - `kind` string, required
    - `url` string, required
    - `remoteUrl` string, nullable, required
    - `objectKey` string, nullable, required
    - `name` string, required
    - `size` union, required
      - integer
      - string, int64
    - `width` union, required
      - integer
      - string, int32
    - `height` union, required
      - integer
      - string, int32
    - `durationSec` union, required
      - number, double
      - string, double
  - `scheduleMode` string, nullable, required
  - `scheduledAt` string, date-time, nullable, required
  - `segments` string[], nullable
  - `readyPostId` string, nullable
  - `followUps` FollowUpDto[], nullable
    - `id` string, required
    - `text` string, required
    - `media` PostMedia[], nullable, required
      - `id` string, required
      - `kind` string, required
      - `url` string, required
      - `remoteUrl` string, nullable, required
      - `objectKey` string, nullable, required
      - `name` string, required
      - `size` union, required
        - integer
        - string, int64
      - `width` union, required
        - integer
        - string, int32
      - `height` union, required
        - integer
        - string, int32
      - `durationSec` union, required
        - number, double
        - string, double
    - `timing` FollowUpTimingDto, required
      - `mode` string, required
      - `value` union, required
        - integer
        - string, int32
      - `unit` string, nullable, required
      - `metric` string, nullable
      - `count` union
        - integer
        - string, int32
      - `fallback` string, nullable
    - `runtimeStatus` FollowUpRuntimeStatusDto
      - `state` string, required
      - `currentCount` union, required
        - integer
        - string, int32
  - `recycledFrom` PostRecycleOriginDto
    - `originalPostId` string, required
    - `originalCaption` string, required

## Response `200`

OK

---

[API](https://skmtc.dev/kreatormesh/apis/kreatormesh-api-v1.md) · [All operations](https://skmtc.dev/kreatormesh/apis/kreatormesh-api-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/kreatormesh/apis/kreatormesh-api-v1/revisions/64f1fdffa147?raw)
