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-workspaces-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 Workspaces 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: Workspaces
description: Organize accounts and content
paths:
/v1/workspaces:
get:
operationId: listWorkspaces
summary: List workspaces
tags:
- Workspaces
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/WorkspaceListItem'
required:
- data
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
description: 'Lists every workspace the user belongs to, with connected accounts.
Requires the `workspaces` scope when using an API key.'
x-fopost-scope: workspaces
post:
operationId: createWorkspace
summary: Create a workspace
tags:
- Workspaces
responses:
'201':
description: Created
content:
application/json:
schema:
$ref: '#/components/schemas/Workspace'
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'400':
$ref: '#/components/responses/ValidationError'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
description: 'Requires the `workspaces` scope when using an API key.
Requires an active subscription; without one the request fails with 403 `subscription_required`.'
x-fopost-scope: workspaces
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateWorkspaceRequest'
/v1/workspaces/{id}:
get:
operationId: getWorkspace
summary: Get a workspace
tags:
- Workspaces
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/WorkspaceWithAccounts'
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
description: Requires the `workspaces` scope when using an API key.
x-fopost-scope: workspaces
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
description: Workspace id
put:
operationId: updateWorkspace
summary: Update a workspace
tags:
- Workspaces
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/Workspace'
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'
'429':
$ref: '#/components/responses/RateLimited'
description: 'Requires the workspace owner or admin role.
Requires the `workspaces` scope when using an API key.
Requires an active subscription; without one the request fails with 403 `subscription_required`.'
x-fopost-scope: workspaces
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
description: Workspace id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateWorkspaceRequest'
delete:
operationId: deleteWorkspace
summary: Delete a workspace
tags:
- Workspaces
responses:
'204':
description: Deleted
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
'429':
$ref: '#/components/responses/RateLimited'
description: 'Soft-deletes the workspace. Requires the workspace owner role. Refused with 409 while accounts are still connected, or when it is your only workspace.
Requires the `workspaces` scope when using an API key.
Requires an active subscription; without one the request fails with 403 `subscription_required`.'
x-fopost-scope: workspaces
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
description: Workspace id
/v1/logs:
get:
operationId: listLogs
summary: List request logs
tags:
- Workspaces
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/RequestLogListResponse'
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'
'429':
$ref: '#/components/responses/RateLimited'
description: 'Recent API activity, newest first: every request members made against the workspace, with route, status code, duration and any error message. Omit workspace_id to read every workspace the caller belongs to plus their own account-level requests. `summary` carries totals and hourly buckets for the whole filtered window. Rows are kept for 30 days.
Requires the `workspaces` scope when using an API key.'
x-fopost-scope: workspaces
parameters:
- name: workspace_id
in: query
required: false
schema:
type: string
format: uuid
description: Restrict to a single workspace the user belongs to
- name: days
in: query
required: false
schema:
type: integer
default: 7
minimum: 1
maximum: 30
- name: status
in: query
required: false
schema:
type: string
enum:
- success
- failed
- name: method
in: query
required: false
schema:
type: string
- name: status_code
in: query
required: false
schema:
type: integer
- name: platform
in: query
required: false
schema:
type: string
- name: route
in: query
required: false
schema:
type: string
description: Exact route pattern, e.g. /v1/posts/{id}
- name: q
in: query
required: false
schema:
type: string
description: Substring match against path and message
- name: limit
in: query
required: false
schema:
type: integer
default: 50
minimum: 1
maximum: 200
- name: before
in: query
required: false
schema:
type: integer
description: 'Cursor: `meta.next_cursor` from the previous page (rows older than this id)'
/v1/activity:
get:
operationId: listActivity
summary: List activity
tags:
- Workspaces
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/ActivityListResponse'
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'
'429':
$ref: '#/components/responses/RateLimited'
description: 'What happened in a workspace, newest first: publishes, account connections and health changes, webhook deliveries, inbox replies, automation runs and billing. Rows are kept for 90 days. Omit workspace_id to read every workspace the caller belongs to. `kind=security` is the audit log — members joining, leaving, changing role or access, and changes to two-step verification, passkeys, single sign-on and signed-in devices. Security rows are append-only and never pruned.
Requires the `analytics` scope when using an API key.'
x-fopost-scope: analytics
parameters:
- name: workspace_id
in: query
required: false
schema:
type: string
format: uuid
description: Restrict to a single workspace the user belongs to
- name: kind
in: query
required: false
schema:
type: string
enum:
- publish
- connection
- webhook
- inbox
- automation
- billing
- security
- name: from
in: query
required: false
schema:
type: string
format: date-time
description: Only events at or after this time
- name: to
in: query
required: false
schema:
type: string
format: date-time
description: Only events at or before this time
- name: cursor
in: query
required: false
schema:
type: string
description: next_cursor from the previous page
- name: limit
in: query
required: false
schema:
type: integer
default: 50
minimum: 1
maximum: 100
components:
responses:
Unauthorized:
description: Missing or invalid credentials
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
Conflict:
description: The request conflicts with the current state of the resource
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'
schemas:
RequestLog:
type: object
properties:
id:
type: integer
workspace_id:
type:
- string
- 'null'
format: uuid
description: Workspace the request ran against; null for account-level requests
time:
type: string
format: date-time
auth_method:
type: string
enum:
- jwt
- api_key
method:
type: string
route:
type: string
description: Route pattern, e.g. /v1/posts/{id}
path:
type: string
status_code:
type: integer
duration_ms:
type: integer
platform:
type:
- string
- 'null'
message:
type:
- string
- 'null'
description: Error text for failed requests
RequestLogListResponse:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/RequestLog'
meta:
$ref: '#/components/schemas/CursorMeta'
description: Pass `next_cursor` back as `before` for the next page
summary:
type: object
properties:
since:
type: string
format: date-time
total:
type: integer
errors:
type: integer
buckets:
type: array
items:
$ref: '#/components/schemas/RequestLogBucket'
required:
- data
- meta
- summary
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.
CreateWorkspaceRequest:
type: object
properties:
name:
type: string
minLength: 1
maxLength: 255
type:
type: string
enum:
- PERSONAL
- TEAM
- ORGANIZATION
- CLIENT
- PROJECT
- DEPARTMENT
- EVENT
- TEMPORARY
- COMMUNITY
- BRAND
- AGENCY
default: PERSONAL
logo:
type:
- string
- 'null'
maxLength: 500
website:
type:
- string
- 'null'
maxLength: 500
timezone:
type: string
maxLength: 100
default: UTC
country:
type:
- string
- 'null'
maxLength: 100
description:
type:
- string
- 'null'
maxLength: 2000
language:
type: string
maxLength: 10
default: en
required:
- name
CursorMeta:
type: object
properties:
next_cursor:
type:
- string
- 'null'
description: Pass back as `cursor` for the next page; null on the last page
has_more:
type: boolean
required:
- next_cursor
- has_more
WorkspaceAccountRef:
type: object
properties:
id:
type: string
format: uuid
workspace_id:
type: string
format: uuid
description: Present on the list response
platform:
type: string
username:
type: string
name:
type: string
avatar:
type:
- string
- 'null'
required:
- id
- platform
- username
- name
- avatar
UpdateWorkspaceRequest:
type: object
properties:
name:
type: string
minLength: 1
maxLength: 255
type:
type: string
enum:
- PERSONAL
- TEAM
- ORGANIZATION
- CLIENT
- PROJECT
- DEPARTMENT
- EVENT
- TEMPORARY
- COMMUNITY
- BRAND
- AGENCY
logo:
type:
- string
- 'null'
maxLength: 500
website:
type:
- string
- 'null'
maxLength: 500
timezone:
type: string
maxLength: 100
country:
type:
- string
- 'null'
maxLength: 100
description:
type:
- string
- 'null'
maxLength: 2000
language:
type: string
maxLength: 10
requireApproval:
type: boolean
aiAltTextEnabled:
type: boolean
brandColor:
type:
- string
- 'null'
pattern: ^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
connectRedirectDomains:
type: array
items:
type: string
pattern: ^(?=.{1,253}$)(?!-)[a-z0-9-]+(?<!-)(\.(?!-)[a-z0-9-]+(?<!-))+$
maxItems: 20
RequestLogBucket:
type: object
properties:
at:
type: string
format: date-time
total:
type: integer
errors:
type: integer
WorkspaceListItem:
allOf:
- $ref: '#/components/schemas/Workspace'
- type: object
properties:
role:
type: string
enum:
- owner
- admin
- member
description: The caller's role
bypass_abilities:
type: array
items:
type: string
enum:
- accounts
- api
- ai
description: Billing bypasses granted to the workspace payer
accounts:
type: array
items:
$ref: '#/components/schemas/WorkspaceAccountRef'
required:
- role
- bypass_abilities
- accounts
ActivityListResponse:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/ActivityEvent'
meta:
$ref: '#/components/schemas/CursorMeta'
required:
- data
- meta
Workspace:
type: object
properties:
id:
type: string
format: uuid
name:
type: string
slug:
type: string
type:
type: string
logo:
type:
- string
- 'null'
website:
type:
- string
- 'null'
timezone:
type: string
country:
type:
- string
- 'null'
description:
type:
- string
- 'null'
language:
type: string
require_approval:
type: boolean
ai_alt_text_enabled:
type: boolean
brand_color:
type:
- string
- 'null'
description: Hex accent colour for client-facing surfaces
connect_redirect_domains:
type: array
items:
type: string
description: Hostnames a hosted connect session may redirect the end user to
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
description: Absent on the list response
required:
- id
- name
- slug
- type
- timezone
- language
- require_approval
- ai_alt_text_enabled
- connect_redirect_domains
- created_at
WorkspaceWithAccounts:
allOf:
- $ref: '#/components/schemas/Workspace'
- type: object
properties:
accounts:
type: array
items:
$ref: '#/components/schemas/WorkspaceAccountRef'
required:
- accounts
ActivityEvent:
type: object
properties:
id:
type: string
format: uuid
workspace_id:
type: string
format: uuid
kind:
type: string
enum:
- publish
- connection
- webhook
- inbox
- automation
- billing
- security
ref_type:
type:
- string
- 'null'
description: What the event is about, e.g. post
ref_id:
type:
- string
- 'null'
summary:
type: string
actor:
type: object
properties:
type:
type: string
enum:
- user
- api_key
- agent
- system
name:
type:
- string
- 'null'
time:
type: string
format: date-time
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