Ravenpost Posts API
The Posts API from Ravenpost — 6 operation(s) for posts.
The Posts API from Ravenpost — 6 operation(s) for posts.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/ravenpo-st:ravenpo-st-posts-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Ravenpost Posts API
version: 1.0.0
description: Schedule and publish social posts across Instagram, TikTok, X, Telegram, LinkedIn, Threads, Bluesky, Discord, Mastodon, YouTube, Pinterest, DEV and Hashnode. Every endpoint delegates to the same service the Ravenpost dashboard uses. Authenticate with a personal access token from Settings → API tokens; the token carries one workspace, which is why no route takes a workspace id.
contact:
name: Ravenpost support
email: support@ravenpo.st
servers:
- url: https://api.ravenpo.st
security:
- bearerAuth: []
tags:
- name: Posts
paths:
/v1/posts:
get:
summary: List posts, newest first
description: Without `page` this returns a plain array, matching the dashboard’s contract; with `page` it returns a paginated envelope. Automations should always pass `page` — a workspace with thousands of posts otherwise returns all of them in one response.
tags:
- Posts
operationId: getPosts
parameters:
- name: status
in: query
required: false
description: Filter by status.
schema:
type: string
- name: platform
in: query
required: false
description: Only posts targeting this platform.
schema:
type: string
- name: type
in: query
required: false
description: Filter by post format.
schema:
type: string
- name: q
in: query
required: false
description: Caption search.
schema:
type: string
- name: sort
in: query
required: false
description: Sort order.
schema:
type: string
- name: page
in: query
required: false
description: Page number — switches the response to an envelope.
schema:
type: number
- name: limit
in: query
required: false
description: Page size.
schema:
type: number
responses:
'200':
description: Success
'401':
description: Missing, malformed or revoked token
'429':
description: Rate limited (120 requests/minute)
post:
summary: Create a post and publish, schedule, queue or save it as a draft
description: 'One post, many destinations: each account in `accountIds` becomes a target with its own status, permalink and error. Caption length is validated against the tightest selected platform.'
tags:
- Posts
operationId: postPosts
parameters: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
type:
type: string
description: Post format. Instagram's model, reused as the shared one — a platform that doesn't honour the format falls back to its own default rather than failing. On Instagram the media have to fit it — one photo IMAGE, one video REEL, one photo or video STORY, 2 to 10 files CAROUSEL — or the post is refused (400) before anything is written.
accountIds:
type: array
items:
type: string
description: Destination accounts, from GET /v1/accounts. One post fans out to all of them — at most one X account, since X forbids the same post on several accounts.
mediaIds:
type: array
items:
type: string
description: 'Media assets to attach. Pass [] for a text-only post where the platform allows it. Each destination has to be able to publish them, or the post is refused (400) with the reason before anything is written, scheduled or published — never left to fail at its time: YouTube takes a video and nothing else, Instagram, TikTok and Pinterest need media, Mastodon takes images or a video but not both, and a file a network refuses (a PNG to TikTok, a MOV to LinkedIn) is named. GET /v1/platforms has each platform’s rules.'
action:
type: string
description: What to do with it. 'schedule' needs scheduledAt; 'queue' resolves the next free slot in the workspace posting schedule and fails if none is configured.
caption:
type: string
description: Base caption, used by every platform without an override. The text X publishes may carry one $cashtag; a second is rejected, as X would.
captionOverrides:
type: object
description: Per-platform caption. A platform with no entry publishes the base caption. Keys are platform ids from GET /v1/platforms.
scheduledAt:
type: string
description: 'When to publish, for action: ''schedule''.'
threadParts:
type: array
items:
type: string
description: Follow-up posts published in order after the head, on platforms that declare a thread model (X, Bluesky, Mastodon, Threads, Telegram, Discord). Over the platform limit is rejected, never truncated.
firstComment:
type: string
description: Posted as a comment under the Instagram post right after it publishes, typically for hashtags. Instagram only, and never on a story. A comment Instagram refuses does not fail the post. On update, null clears it.
replyToTweetId:
type: string
description: Publish the head post as a reply under this tweet. Accepts an id or a tweet URL. X only — and X only takes a reply from an app to the account's own post, or to a post that @mentions it or quotes one of its posts.
quoteTweetId:
type: string
description: Embed this tweet as a quote card. Id or URL. X only, independent of replyToTweetId — and X only takes a quote of the account's own post, or of one that @mentions it.
tiktokOptions:
type: object
description: TikTok privacy level, interaction switches and commercial disclosure, keyed by account id. Omitted, a TikTok target publishes SELF_ONLY — TikTok requires the creator to choose, so we never pick a wider audience for them.
audio:
type: object
description: Reel audio ({ audioId, audioVolume, videoVolume }). Instagram reels only, and only on an account connected through Facebook.
reelCover:
type: object
description: 'An Instagram reel''s cover: { mediaId } — a JPEG of up to 8 MB from the media library — or { offsetMs }, a frame of the video in milliseconds, before it ends. One or the other. Instagram reels only, on either connection; dropped for any other format. On update, null goes back to Instagram''s default, the first frame.'
trialReel:
type: string
description: 'Publish an Instagram reel as a trial: shown to non-followers first, and to followers once it graduates — by hand in the Instagram app (MANUAL) or by Instagram when it performs well (SS_PERFORMANCE). Instagram decides which accounts may post one; a refused trial fails rather than going out as a normal reel. On update, "" or null makes it a normal reel.'
pinterestBoards:
type: object
description: 'Which board each Pinterest account pins to, keyed by account id (see GET /v1/accounts/:id/boards). Required to publish: a pin belongs to a board and Pinterest has no default, so scheduling, queueing or publishing a Pinterest target without one is refused (400). A draft saves fine without it.'
pinterestOptions:
type: object
description: Pinterest pin title ({ title }), max 100 characters. Separate from the caption, which becomes the 800-character description; unset, the caption’s first line is used.
articleOptions:
type: object
description: 'DEV and Hashnode, which publish an article: { title, subtitle, tags, canonicalUrl }. title (max 128) unset makes the caption’s first line the title and the rest the body; the caption is the Markdown body either way. subtitle (max 150) is DEV’s description and Hashnode’s subtitle; tags up to 5, kept as lowercase letters and digits, DEV taking the first 4; canonicalUrl, an absolute http(s) address, is where the article first appeared. The first image is the cover. Every other platform ignores it.'
linkUrl:
type: string
description: The URL this post points at. Facebook publishes it as a link preview card; Pinterest makes it the pin’s destination. Every other platform ignores it.
recurrence:
type: object
description: 'Makes this an evergreen post: each occurrence is created after the previous one publishes. Not with an X account, whose rules forbid repeating a post.'
required:
- type
- accountIds
- mediaIds
- action
additionalProperties: true
example:
type: IMAGE
caption: Shipping today.
captionOverrides:
TWITTER: Shipping today 🚀
mediaIds:
- med_...
accountIds:
- acc_...
- acc_...
action: schedule
scheduledAt: '2026-08-04T09:00:00.000Z'
responses:
'200':
description: Success
'401':
description: Missing, malformed or revoked token
'429':
description: Rate limited (120 requests/minute)
/v1/posts/bulk:
post:
summary: Create many posts from a CSV
description: Returns a per-line report so a caller can retry only the rows that failed, rather than guessing which half of the batch landed.
tags:
- Posts
operationId: postPostsBulk
parameters: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
csv:
type: string
description: The CSV document itself, as a string.
required:
- csv
additionalProperties: true
responses:
'200':
description: Success
'401':
description: Missing, malformed or revoked token
'429':
description: Rate limited (10 requests/minute)
/v1/posts/{id}:
get:
summary: One post with every target’s status, permalink and error
tags:
- Posts
operationId: getPostsId
parameters:
- name: id
in: path
required: true
description: Post id.
schema:
type: string
responses:
'200':
description: Success
'401':
description: Missing, malformed or revoked token
'429':
description: Rate limited (120 requests/minute)
patch:
summary: Edit a draft or scheduled post
description: Editing resets the post to draft — pass `action` in the same call to re-schedule or publish it. A published post cannot be edited.
tags:
- Posts
operationId: patchPostsId
parameters:
- name: id
in: path
required: true
description: Post id.
schema:
type: string
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
type:
type: string
description: Post format. Instagram's model, reused as the shared one — a platform that doesn't honour the format falls back to its own default rather than failing. On Instagram the media have to fit it — one photo IMAGE, one video REEL, one photo or video STORY, 2 to 10 files CAROUSEL — or the post is refused (400) before anything is written.
accountIds:
type: array
items:
type: string
description: Destination accounts, from GET /v1/accounts. One post fans out to all of them — at most one X account, since X forbids the same post on several accounts.
mediaIds:
type: array
items:
type: string
description: 'Media assets to attach. Pass [] for a text-only post where the platform allows it. Each destination has to be able to publish them, or the post is refused (400) with the reason before anything is written, scheduled or published — never left to fail at its time: YouTube takes a video and nothing else, Instagram, TikTok and Pinterest need media, Mastodon takes images or a video but not both, and a file a network refuses (a PNG to TikTok, a MOV to LinkedIn) is named. GET /v1/platforms has each platform’s rules.'
action:
type: string
description: What to do with it. 'schedule' needs scheduledAt; 'queue' resolves the next free slot in the workspace posting schedule and fails if none is configured.
caption:
type: string
description: Base caption, used by every platform without an override. The text X publishes may carry one $cashtag; a second is rejected, as X would.
captionOverrides:
type: object
description: Per-platform caption. A platform with no entry publishes the base caption. Keys are platform ids from GET /v1/platforms.
scheduledAt:
type: string
description: 'When to publish, for action: ''schedule''.'
threadParts:
type: array
items:
type: string
description: Follow-up posts published in order after the head, on platforms that declare a thread model (X, Bluesky, Mastodon, Threads, Telegram, Discord). Over the platform limit is rejected, never truncated.
firstComment:
type: string
description: Posted as a comment under the Instagram post right after it publishes, typically for hashtags. Instagram only, and never on a story. A comment Instagram refuses does not fail the post. On update, null clears it.
replyToTweetId:
type: string
description: Publish the head post as a reply under this tweet. Accepts an id or a tweet URL. X only — and X only takes a reply from an app to the account's own post, or to a post that @mentions it or quotes one of its posts.
quoteTweetId:
type: string
description: Embed this tweet as a quote card. Id or URL. X only, independent of replyToTweetId — and X only takes a quote of the account's own post, or of one that @mentions it.
tiktokOptions:
type: object
description: TikTok privacy level, interaction switches and commercial disclosure, keyed by account id. Omitted, a TikTok target publishes SELF_ONLY — TikTok requires the creator to choose, so we never pick a wider audience for them.
audio:
type: object
description: Reel audio ({ audioId, audioVolume, videoVolume }). Instagram reels only, and only on an account connected through Facebook.
reelCover:
type: object
description: 'An Instagram reel''s cover: { mediaId } — a JPEG of up to 8 MB from the media library — or { offsetMs }, a frame of the video in milliseconds, before it ends. One or the other. Instagram reels only, on either connection; dropped for any other format. On update, null goes back to Instagram''s default, the first frame.'
trialReel:
type: string
description: 'Publish an Instagram reel as a trial: shown to non-followers first, and to followers once it graduates — by hand in the Instagram app (MANUAL) or by Instagram when it performs well (SS_PERFORMANCE). Instagram decides which accounts may post one; a refused trial fails rather than going out as a normal reel. On update, "" or null makes it a normal reel.'
pinterestBoards:
type: object
description: 'Which board each Pinterest account pins to, keyed by account id (see GET /v1/accounts/:id/boards). Required to publish: a pin belongs to a board and Pinterest has no default, so scheduling, queueing or publishing a Pinterest target without one is refused (400). A draft saves fine without it.'
pinterestOptions:
type: object
description: Pinterest pin title ({ title }), max 100 characters. Separate from the caption, which becomes the 800-character description; unset, the caption’s first line is used.
articleOptions:
type: object
description: 'DEV and Hashnode, which publish an article: { title, subtitle, tags, canonicalUrl }. title (max 128) unset makes the caption’s first line the title and the rest the body; the caption is the Markdown body either way. subtitle (max 150) is DEV’s description and Hashnode’s subtitle; tags up to 5, kept as lowercase letters and digits, DEV taking the first 4; canonicalUrl, an absolute http(s) address, is where the article first appeared. The first image is the cover. Every other platform ignores it.'
linkUrl:
type: string
description: The URL this post points at. Facebook publishes it as a link preview card; Pinterest makes it the pin’s destination. Every other platform ignores it.
recurrence:
type: object
description: 'Makes this an evergreen post: each occurrence is created after the previous one publishes. Not with an X account, whose rules forbid repeating a post.'
additionalProperties: true
responses:
'200':
description: Success
'401':
description: Missing, malformed or revoked token
'429':
description: Rate limited (120 requests/minute)
delete:
summary: Delete the Ravenpost copy and cancel any pending publish
description: This does not take down anything already published. Removing the post on the platform is a separate, opt-in action in the dashboard, and it is not available on Instagram, Threads and TikTok, which expose no delete endpoint, or on YouTube, whose delete endpoint needs a broader permission than Ravenpost holds.
tags:
- Posts
operationId: deletePostsId
parameters:
- name: id
in: path
required: true
description: Post id.
schema:
type: string
responses:
'200':
description: Success
'401':
description: Missing, malformed or revoked token
'429':
description: Rate limited (120 requests/minute)
/v1/posts/{id}/schedule:
post:
summary: Move a post to a new time
tags:
- Posts
operationId: postPostsIdSchedule
parameters:
- name: id
in: path
required: true
description: Post id.
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
scheduledAt:
type: string
description: New publish time.
required:
- scheduledAt
additionalProperties: true
responses:
'200':
description: Success
'401':
description: Missing, malformed or revoked token
'429':
description: Rate limited (120 requests/minute)
/v1/posts/{id}/publish:
post:
summary: Publish a post immediately, whatever it was scheduled for
tags:
- Posts
operationId: postPostsIdPublish
parameters:
- name: id
in: path
required: true
description: Post id.
schema:
type: string
responses:
'200':
description: Success
'401':
description: Missing, malformed or revoked token
'429':
description: Rate limited (120 requests/minute)
/v1/posts/{id}/retry:
post:
summary: Re-enqueue only the failed targets
description: Targets that already published are left alone, so a retry can’t double-post.
tags:
- Posts
operationId: postPostsIdRetry
parameters:
- name: id
in: path
required: true
description: Post id.
schema:
type: string
responses:
'200':
description: Success
'401':
description: Missing, malformed or revoked token
'429':
description: Rate limited (120 requests/minute)
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: rvp_…