Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/fopost-com:fopost-com-publishing-api"
All apis
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.
Get an API 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 Specification
openapi: 3.2.0
info:
title: FoPost Publishing API
version: 1.0.0
description: 'REST API for FoPost — schedule, publish, and analyze social media content across every connected platform.
## Authentication
Programmatic access uses an API key sent in the `X-API-Key` header. Keys are created in the FoPost dashboard under **Developers → API Keys** and are limited to the scopes granted at creation. Requests from the FoPost dashboard use a JWT bearer token instead (`Authorization: Bearer `), which implicitly carries all scopes. Either method works on every endpoint in this document unless noted otherwise.
## Scopes
Each operation lists its required scope (also machine-readable as `x-fopost-scope`): `posts` (includes publishing, deliveries, and media), `workspaces`, `accounts`, `labels`, `webhooks`, `analytics`, `automations`.
## Responses
Every key in a response body and every query parameter is snake_case; request bodies keep the field names documented on each operation. The ads endpoints (`/v1/ads/*`) are the one exception and keep camelCase keys. A single resource is returned as the object itself (`201` on create); a collection is `{ "data": [...], "meta": {...} }`. A success with nothing to return is `204` with an empty body.
## Errors
Errors return `{ "error": "", "message": "" }` with a matching HTTP status, including an unknown route (`404 not_found`) and a server fault (`500 internal_error`). `error` is a stable snake_case code; `message` is for humans and may change. Some errors include additional context fields. A feature that is not set up on this deployment answers `503 not_configured`; a malformed answer from an upstream provider answers `502 upstream_error`.
## Request ids
Every response carries an `X-Request-Id` header. Quote it when contacting support about a specific request.
## Rate limiting
Requests are rate limited per API key, per minute, with a ceiling set by the plan behind the key. Every response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`; exceeding the limit returns `429` with error code `too_many_requests`, a `retry_after` field and a `Retry-After` header. Mutating endpoints additionally require an active subscription and return `403` with error code `subscription_required` without one.
## Pagination
Offset-paged lists accept `page` and `per_page` (1 to 100) and return `meta: { page, per_page, total, total_pages }`. Cursor-paged lists return `meta: { next_cursor, has_more }`; pass `next_cursor` back in the cursor parameter the operation documents until `has_more` is false. Lists that do not paginate return `{ "data": [...] }` with no `meta`.'
contact:
name: FoPost Support
url: https://fopost.com/contact
license:
name: Proprietary
url: https://fopost.com/terms
servers:
- url: https://api.fopost.com
description: Production
security:
- ApiKeyAuth: []
- BearerAuth: []
- OAuth2: []
tags:
- name: Publishing
description: Deliver posts to connected platforms
paths:
/v1/posts/{id}/publish:
post:
operationId: publishPost
summary: Publish a post
tags:
- Publishing
responses:
'200':
description: Dry run result (only with `options.dryRun`)
content:
application/json:
schema:
$ref: '#/components/schemas/DryRunResponse'
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'202':
description: 'Deliveries queued, or the post held for approval (`held: true`)'
content:
application/json:
schema:
$ref: '#/components/schemas/PublishResponse'
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'400':
$ref: '#/components/responses/ValidationError'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
description: Post is not in a draft or scheduled state, or is awaiting approval (`approval_required`)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'422':
description: All target accounts have expired/revoked credentials (`health_check_failed`, with an empty `health_warnings`)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'429':
$ref: '#/components/responses/RateLimited'
description: 'Queues delivery of a draft or scheduled post to its assigned accounts (or the `accountIds` subset). Accounts with expired or revoked credentials are failed immediately; degraded accounts publish with a warning. Delivery is asynchronous — poll the deliveries endpoint or subscribe to webhooks for the outcome. With `options.dryRun` the request validates and returns the target accounts without publishing (200 instead of 202).
Requires the `posts` scope when using an API key.
Requires an active subscription; without one the request fails with 403 `subscription_required`.'
x-fopost-scope: posts
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
description: Post id
requestBody:
required: false
content:
application/json:
schema:
$ref: '#/components/schemas/PublishPostRequest'
/v1/posts/{id}/retry:
post:
operationId: retryPost
summary: Retry failed deliveries
tags:
- Publishing
responses:
'200':
description: Retries queued
content:
application/json:
schema:
$ref: '#/components/schemas/RetryResponse'
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'400':
$ref: '#/components/responses/ValidationError'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
description: Post state does not allow retrying
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'429':
$ref: '#/components/responses/RateLimited'
description: 'Re-queues failed deliveries of a failed, partially failed, or published post. Resending to already-published accounts requires `includePublished: true`. There is no retry ceiling: every retry is one billed attempt.
Requires the `posts` scope when using an API key.
Requires an active subscription; without one the request fails with 403 `subscription_required`.'
x-fopost-scope: posts
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
description: Post id
requestBody:
required: false
content:
application/json:
schema:
$ref: '#/components/schemas/RetryPostRequest'
/v1/posts/{id}/cancel:
post:
operationId: cancelPost
summary: Cancel pending deliveries
tags:
- Publishing
responses:
'200':
description: Deliveries cancelled
content:
application/json:
schema:
$ref: '#/components/schemas/CancelResponse'
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'400':
$ref: '#/components/responses/ValidationError'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/InvalidId'
'429':
$ref: '#/components/responses/RateLimited'
description: 'Cancels pending, queued, or delayed deliveries (optionally limited to `accountIds`) and recalculates the post status. Send no body, or `{}`, to cancel all.
Requires the `posts` scope when using an API key.
Requires an active subscription; without one the request fails with 403 `subscription_required`.'
x-fopost-scope: posts
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
description: Post id
requestBody:
required: false
content:
application/json:
schema:
$ref: '#/components/schemas/CancelPostRequest'
/v1/posts/{id}/unpublish:
post:
operationId: unpublishPost
summary: Take a published post down everywhere
tags:
- Publishing
responses:
'200':
description: Deliveries taken down
content:
application/json:
schema:
$ref: '#/components/schemas/UnpublishResponse'
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
description: Post is not published, or a network cannot delete a live post
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'422':
$ref: '#/components/responses/InvalidId'
'429':
$ref: '#/components/responses/RateLimited'
description: 'Deletes the post on every network it is live on and marks each delivery `unpublished`; the post stays as a record. Refused as a whole with 409 and `unsupported_platforms` when one of those networks cannot delete a live post (see `remote_delete` on the post accounts). A network that refuses at the time keeps its delivery published and answers `removed: false`.
Requires the `publish` scope when using an API key.
Requires an active subscription; without one the request fails with 403 `subscription_required`.'
x-fopost-scope: publish
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
description: Post id
/v1/posts/{id}/preflight:
post:
operationId: preflightPost
summary: Preflight-check a post
tags:
- Publishing
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/PreflightResponse'
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/InvalidId'
'429':
$ref: '#/components/responses/RateLimited'
description: 'Checks each assigned account for hard blockers (`issues`) and returns advisory per-platform content quality signals. Signals never block publishing.
Requires the `posts` scope when using an API key.
Requires an active subscription; without one the request fails with 403 `subscription_required`.'
x-fopost-scope: posts
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
description: Post id
/v1/posts/{id}/deliveries:
get:
operationId: listDeliveries
summary: List deliveries for a post
tags:
- Publishing
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Delivery'
required:
- data
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/InvalidId'
'429':
$ref: '#/components/responses/RateLimited'
description: 'Returns the per-account delivery records, newest first.
Requires the `posts` scope when using an API key.'
x-fopost-scope: posts
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
description: Post id
/v1/posts/{id}/publish-runs:
get:
operationId: listPostPublishRuns
summary: List publish runs for a post
tags:
- Publishing
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/PublishRun'
required:
- data
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/InvalidId'
'429':
$ref: '#/components/responses/RateLimited'
description: 'The post’s publish history. Each run is one publish pass over the post and carries the attempts it made per account, with the permalink of anything that went live. Newest run first.
Requires the `posts` scope when using an API key.'
x-fopost-scope: posts
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
description: Post id
components:
schemas:
CancelPostRequest:
type: object
properties:
accountIds:
type: array
items:
type: string
format: uuid
PublishPostRequest:
type: object
properties:
accountIds:
type: array
items:
type: string
format: uuid
minItems: 1
options:
type: object
properties:
dryRun:
type: boolean
PublishDelivery:
type: object
properties:
id:
type: string
format: uuid
description: Delivery id
account_id:
type: string
format: uuid
status:
type: string
enum:
- pending
- queued
- delayed
- publishing
- published
- failed
- cancelled
- unpublished
error_code:
type:
- string
- 'null'
error_message:
type:
- string
- 'null'
platform_post_id:
type:
- string
- 'null'
external_url:
type:
- string
- 'null'
posted_at:
type:
- string
- 'null'
format: date-time
attempts:
type: integer
scheduled_publish_at:
type:
- string
- 'null'
format: date-time
delay_reason:
type:
- string
- 'null'
delay_message:
type:
- string
- 'null'
Error:
type: object
properties:
error:
type: string
description: Stable snake_case error code
message:
type: string
description: Human-readable explanation; may change
required:
- error
- message
additionalProperties: true
description: The one error envelope, on every endpoint including an unknown route (`not_found`) and a server fault (`internal_error`). Some errors carry additional context fields (for example `retry_after`, `upgrade_url`, `issues`). Every response also carries an `X-Request-Id` header to quote to support.
HealthWarning:
type: object
properties:
account_id:
type: string
format: uuid
platform:
type: string
health_status:
type: string
message:
type: string
CancelResponse:
type: object
properties:
post_status:
type: string
enum:
- draft
- scheduled
- publishing
- published
- partially_failed
- failed
- cancelled
- unpublished
deliveries:
type: array
items:
type: object
properties:
id:
type: string
format: uuid
account_id:
type: string
format: uuid
status:
type: string
enum:
- pending
- queued
- delayed
- publishing
- published
- failed
- cancelled
- unpublished
required:
- post_status
- deliveries
PublishRunDelivery:
type: object
properties:
account_id:
type: string
format: uuid
account_name:
type: string
username:
type: string
platform:
type: string
status:
type: string
attempt_number:
type: integer
error_code:
type:
- string
- 'null'
error_message:
type:
- string
- 'null'
platform_post_id:
type:
- string
- 'null'
external_url:
type:
- string
- 'null'
started_at:
type: string
format: date-time
completed_at:
type:
- string
- 'null'
format: date-time
duration_ms:
type:
- integer
- 'null'
PreflightResponse:
type: object
properties:
ready:
type: boolean
post:
type: object
properties:
id:
type: string
format: uuid
status:
type: string
enum:
- draft
- scheduled
- publishing
- published
- partially_failed
- failed
- cancelled
- unpublished
accounts:
type: array
items:
type: object
properties:
account_id:
type: string
format: uuid
platform:
type: string
username:
type: string
delivery:
type: string
enum:
- api
- extension
description: '`extension` for a network posted through the browser extension'
ready:
type: boolean
issues:
type: array
items:
type: string
description: Hard blockers that prevent publishing
score:
type: number
description: Advisory 0-100 content quality score for this platform
signals:
type: array
items:
$ref: '#/components/schemas/ContentSignal'
description: Advisory signals — they never block publishing
required:
- ready
- post
- accounts
PublishRun:
type: object
properties:
id:
type: string
format: uuid
run_number:
type: integer
status:
type: string
enum:
- running
- published
- partially_failed
- failed
- cancelled
started_at:
type: string
format: date-time
completed_at:
type:
- string
- 'null'
format: date-time
deliveries:
type: array
items:
$ref: '#/components/schemas/PublishRunDelivery'
DryRunResponse:
type: object
properties:
dry_run:
type: boolean
const: true
post:
type: object
properties:
id:
type: string
format: uuid
status:
type: string
enum:
- draft
- scheduled
- publishing
- published
- partially_failed
- failed
- cancelled
- unpublished
accounts:
type: array
items:
type: object
properties:
account_id:
type: string
format: uuid
platform:
type: string
health_warnings:
type: array
items:
$ref: '#/components/schemas/HealthWarning'
required:
- dry_run
- post
- accounts
- health_warnings
UnpublishResponse:
type: object
properties:
post_status:
type: string
enum:
- draft
- scheduled
- publishing
- published
- partially_failed
- failed
- cancelled
- unpublished
deliveries:
type: array
items:
$ref: '#/components/schemas/PlatformRemoval'
description: One entry per network the post was live on
required:
- post_status
- deliveries
PlatformRemoval:
type: object
properties:
account_id:
type: string
format: uuid
description: Social account id
platform:
type: string
removed:
type: boolean
description: False when the network refused to take the post down
required:
- account_id
- platform
- removed
RetryPostRequest:
type: object
properties:
accountIds:
type: array
items:
type: string
format: uuid
includePublished:
type: boolean
Delivery:
type: object
properties:
id:
type: string
format: uuid
account_id:
type: string
format: uuid
status:
type: string
enum:
- pending
- queued
- delayed
- publishing
- published
- failed
- cancelled
- unpublished
error_code:
type:
- string
- 'null'
error_message:
type:
- string
- 'null'
attempts:
type: integer
max_attempts:
type: integer
scheduled_publish_at:
type:
- string
- 'null'
format: date-time
delay_reason:
type:
- string
- 'null'
delay_message:
type:
- string
- 'null'
posted_at:
type:
- string
- 'null'
format: date-time
last_attempt_at:
type:
- string
- 'null'
format: date-time
platform_post_id:
type:
- string
- 'null'
external_url:
type:
- string
- 'null'
platform:
type: string
username:
type: string
account_name:
type: string
RetryResponse:
type: object
properties:
post_status:
type: string
enum:
- draft
- scheduled
- publishing
- published
- partially_failed
- failed
- cancelled
- unpublished
deliveries:
type: array
items:
$ref: '#/components/schemas/PublishDelivery'
exceeded:
type: array
items:
type: object
properties:
account_id:
type: string
format: uuid
platform:
type: string
attempts:
type: integer
description: Always empty; kept for compatibility with clients that read it
required:
- post_status
- deliveries
- exceeded
ContentSignal:
type: object
properties:
level:
type: string
enum:
- info
- warn
code:
type: string
message:
type: string
required:
- level
- code
- message
PublishResponse:
type: object
properties:
post_status:
type: string
enum:
- draft
- scheduled
- publishing
- published
- partially_failed
- failed
- cancelled
- unpublished
held:
type: boolean
const: true
description: 'Present when the workspace requires approval: the post is held as `pending_approval` and nothing was queued'
deliveries:
type: array
items:
$ref: '#/components/schemas/PublishDelivery'
description: Absent when `held`
health_warnings:
type: array
items:
$ref: '#/components/schemas/HealthWarning'
description: Absent when `held`
required:
- post_status
responses:
Unauthorized:
description: Missing or invalid credentials
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
InvalidId:
description: Malformed id path parameter
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
ValidationError:
description: Request body or parameters failed validation
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
RateLimited:
description: Too many requests for this API key in the current minute. The body carries `retry_after` (seconds) and the response carries `Retry-After`, `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
NotFound:
description: Resource not found or not accessible to the authenticated user
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
Forbidden:
description: The API key lacks the required scope, or a mutating route was called without an active subscription (`subscription_required`)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
headers:
XRequestId:
description: Unique id of this request; quote it to support
schema:
type: string
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: X-API-Key
description: 'API key created in the FoPost dashboard. A key may be bound to a single workspace, in which case every request is confined to it: naming any other workspace returns 403, and listings return only that workspace. Keys created without a workspace keep access to every workspace on the account.'
BearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: Session token used by the FoPost dashboard
OAuth2:
type: oauth2
description: For third-party apps acting on behalf of a FoPost user. Authorization code with PKCE (S256) is required. The token is confined to the workspace the user approved and to the scopes they granted.
flows:
authorizationCode:
authorizationUrl: https://api.fopost.com/oauth/authorize
tokenUrl: https://api.fopost.com/oauth/token
refreshUrl: https://api.fopost.com/oauth/token
scopes:
posts: Read and write posts, media and content
publish: Publish, retry and cancel a post
accounts: Connected social accounts
workspaces: List and manage workspaces
labels: Labels used to organise posts
webhooks: Webhook endpoints
analytics: Metrics and insights
automations: Automation rules and runs
inbox: Comments, mentions and messages
ads: Ads, audiences and lead forms across ad networks
ai: AI features (spends credits)
extension: Reserved for the browser extension