---
title: "Create a post group"
method: POST
path: "/v0/post-groups"
tags: ["Posts"]
---

# Create a post group

`POST /v0/post-groups`

## Request

- Base URL: `https://api.schedulin.app`
- URL: `https://api.schedulin.app/v0/post-groups`
- Auth: one of:
  - API key in header `x-api-key`
  - OAuth 2 (authorization code, authorization URL `https://api.schedulin.app/oauth/authorize`, token URL `https://api.schedulin.app/oauth/token`, scopes: `posts:write`)

Create posts for several social accounts in one request — for example the same caption and image sent to Instagram, Threads and Facebook. Each post is validated exactly like `POST /v0/posts` (including per-platform rules), and media may reference stored library URLs or publicly reachable URLs; an external URL shared by several posts is imported once. The request is atomic: if any post is invalid, nothing is created. Posts with `action: "queue"` on the same account take consecutive queue slots. Up to 50 posts per request.

## Request body

- object
  - `title` string
  - `posts` PostCreate[], required
    - `caption` string, required
    - `title` string
    - `scheduledAt` string, date-time, nullable
    - `socialAccountId` string, required
    - `media` object[]
      - `url` string, required
      - `thumbnail_url` string, nullable
      - `thumbnail_timestamp_ms` number, nullable
      - `tags` object[]
        - `id` string, required
        - `type` 'user' | 'business', required
        - `platform` 'bluesky' | 'facebook' | 'google_business_profile' | 'instagram' | 'linkedin' | 'pinterest' | 'reddit' | 'snapchat' | 'threads' | 'tiktok' | 'tiktok_business' | 'twitter' | 'youtube' | 'mastodon' | 'telegram' | 'devto' | 'hashnode' | 'medium' | 'wordpress' | 'lemmy' | 'nostr' | 'discord' | 'dribbble' | 'farcaster' | 'kick' | 'listmonk' | 'mewe' | 'moltbook' | 'skool' | 'slack' | 'twitch' | 'vk' | 'whop', required
        - `x` number
        - `y` number
      - `alt` string, nullable
      - `skip_processing` boolean
      - `name` string
      - `mimeType` string
      - `width` number
      - `height` number
      - `size` number
      - `duration` number
    - `thumbnail` object
      - `url` string, required
      - `thumbnail_url` string, nullable
      - `thumbnail_timestamp_ms` number, nullable
      - `tags` object[]
        - `id` string, required
        - `type` 'user' | 'business', required
        - `platform` 'bluesky' | 'facebook' | 'google_business_profile' | 'instagram' | 'linkedin' | 'pinterest' | 'reddit' | 'snapchat' | 'threads' | 'tiktok' | 'tiktok_business' | 'twitter' | 'youtube' | 'mastodon' | 'telegram' | 'devto' | 'hashnode' | 'medium' | 'wordpress' | 'lemmy' | 'nostr' | 'discord' | 'dribbble' | 'farcaster' | 'kick' | 'listmonk' | 'mewe' | 'moltbook' | 'skool' | 'slack' | 'twitch' | 'vk' | 'whop', required
        - `x` number
        - `y` number
      - `alt` string, nullable
      - `skip_processing` boolean
      - `name` string
      - `mimeType` string
      - `width` number
      - `height` number
      - `size` number
      - `duration` number
    - `platformConfiguration` object
    - `tagIds` string[]
    - `action` 'schedule' | 'queue' | 'draft' | 'now'
    - `parts` object[]
      - `caption` string, required
      - `media` object[]
        - `url` string, required
        - `thumbnail_url` string, nullable
        - `thumbnail_timestamp_ms` number, nullable
        - `tags` object[]
          - `id` string, required
          - `type` 'user' | 'business', required
          - `platform` 'bluesky' | 'facebook' | 'google_business_profile' | 'instagram' | 'linkedin' | 'pinterest' | 'reddit' | 'snapchat' | 'threads' | 'tiktok' | 'tiktok_business' | 'twitter' | 'youtube' | 'mastodon' | 'telegram' | 'devto' | 'hashnode' | 'medium' | 'wordpress' | 'lemmy' | 'nostr' | 'discord' | 'dribbble' | 'farcaster' | 'kick' | 'listmonk' | 'mewe' | 'moltbook' | 'skool' | 'slack' | 'twitch' | 'vk' | 'whop', required
          - `x` number
          - `y` number
        - `alt` string, nullable
        - `skip_processing` boolean
        - `name` string
        - `mimeType` string
        - `width` number
        - `height` number
        - `size` number
        - `duration` number

## Response `200`

OK

- object
  - `id` string, required
  - `posts` object[], required
    - `id` string, required
    - `externalId` string, nullable, required
    - `caption` string, required
    - `status` 'SCHEDULED' | 'PROCESSING' | 'COMPLETED' | 'DRAFT' | 'FAILED' | 'DELETED', required
    - `scheduledAt` string, date-time, nullable, required
    - `platformConfiguration` object, nullable, required
    - `media` object[], required
      - `url` string, required
      - `thumbnail_url` string, nullable
      - `thumbnail_timestamp_ms` number, nullable
      - `tags` object[]
        - `id` string, required
        - `type` 'user' | 'business', required
        - `platform` 'bluesky' | 'facebook' | 'google_business_profile' | 'instagram' | 'linkedin' | 'pinterest' | 'reddit' | 'snapchat' | 'threads' | 'tiktok' | 'tiktok_business' | 'twitter' | 'youtube' | 'mastodon' | 'telegram' | 'devto' | 'hashnode' | 'medium' | 'wordpress' | 'lemmy' | 'nostr' | 'discord' | 'dribbble' | 'farcaster' | 'kick' | 'listmonk' | 'mewe' | 'moltbook' | 'skool' | 'slack' | 'twitch' | 'vk' | 'whop', required
        - `x` number
        - `y` number
      - `alt` string, nullable
      - `skip_processing` boolean
    - `socialAccountId` string, required
    - `socialAccounts` SocialAccountPublic[], required
      - `id` string, required
      - `platform` 'bluesky' | 'facebook' | 'google_business_profile' | 'instagram' | 'linkedin' | 'pinterest' | 'reddit' | 'snapchat' | 'threads' | 'tiktok' | 'tiktok_business' | 'twitter' | 'youtube' | 'mastodon' | 'telegram' | 'devto' | 'hashnode' | 'medium' | 'wordpress' | 'lemmy' | 'nostr' | 'discord' | 'dribbble' | 'farcaster' | 'kick' | 'listmonk' | 'mewe' | 'moltbook' | 'skool' | 'slack' | 'twitch' | 'vk' | 'whop', required
      - `username` string, nullable, required
      - `userId` string, required
      - `profilePhotoUrl` string, nullable, required
      - `status` 'connected' | 'disconnected', required
      - `externalId` string, nullable, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required

## Other responses

- `400`: Bad Request — the request isn't allowed in the resource's current state (e.g. editing a published post).
- `401`: Unauthorized — missing or invalid API key / access token.
- `403`: Forbidden — the credential lacks the required scope or access.
- `409`: Conflict
- `422`: Unprocessable request. Schema validation failures have `code: "INPUT_VALIDATION_FAILED"` and `data.fieldErrors` mapping each invalid field to its messages (nested issues name their full path, e.g. `media[0].url: ...`). Business-rule rejections (e.g. a `scheduledAt` in the past) have `code: "UNPROCESSABLE_CONTENT"` and carry the reason in `data.message` and `data.formErrors`.
- `429`: Rate limit exceeded. Wait `Retry-After` seconds before retrying.
- `500`: Internal Server Error

---

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