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-oauth-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 OAuth 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: OAuth
description: OAuth 2.1 for third-party apps
paths:
/.well-known/oauth-authorization-server:
get:
operationId: getAuthorizationServerMetadata
summary: Authorization server metadata
tags:
- OAuth
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
issuer:
type: string
authorization_endpoint:
type: string
token_endpoint:
type: string
revocation_endpoint:
type: string
registration_endpoint:
type: string
response_types_supported:
type: array
items:
type: string
response_modes_supported:
type: array
items:
type: string
grant_types_supported:
type: array
items:
type: string
code_challenge_methods_supported:
type: array
items:
type: string
token_endpoint_auth_methods_supported:
type: array
items:
type: string
revocation_endpoint_auth_methods_supported:
type: array
items:
type: string
scopes_supported:
type: array
items:
type: string
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'429':
$ref: '#/components/responses/RateLimited'
description: 'RFC 8414 discovery document: endpoint URLs, supported grant types, PKCE methods and scopes. No auth required.'
security: []
/oauth/authorize:
get:
operationId: oauthAuthorize
summary: Start an authorization
tags:
- OAuth
responses:
'302':
description: Redirect to the consent screen, or to redirect_uri with an error
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'400':
description: RFC 6749 error (`invalid_client` for an unknown client_id, `invalid_request` for an unregistered redirect_uri)
content:
application/json:
schema:
type: object
properties:
error:
type: string
error_description:
type: string
required:
- error
- error_description
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'429':
$ref: '#/components/responses/RateLimited'
description: Send the user here in a browser. After validating the client and redirect_uri the user signs in, picks a workspace and approves the scopes; the browser is then sent to `redirect_uri` with `code` and `state`, or with `error=access_denied`. PKCE with S256 is required. Errors about the client or redirect_uri answer 400 here instead of redirecting.
parameters:
- name: response_type
in: query
required: true
schema:
type: string
enum:
- code
- name: client_id
in: query
required: true
schema:
type: string
- name: redirect_uri
in: query
required: true
schema:
type: string
format: uri
description: Exactly one of the URIs registered for the client
- name: scope
in: query
required: true
schema:
type: string
description: Space-separated scopes, the same names as API-key scopes
- name: state
in: query
required: false
schema:
type: string
description: Echoed back unchanged
- name: code_challenge
in: query
required: true
schema:
type: string
description: BASE64URL(SHA256(code_verifier))
- name: code_challenge_method
in: query
required: true
schema:
type: string
enum:
- S256
security: []
/oauth/token:
post:
operationId: oauthToken
summary: Exchange a code or refresh token
tags:
- OAuth
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
access_token:
type: string
token_type:
type: string
enum:
- Bearer
expires_in:
type: integer
refresh_token:
type: string
scope:
type: string
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'400':
description: 'RFC 6749 error: invalid_grant (wrong verifier, used or expired code), invalid_scope, unsupported_grant_type'
content:
application/json:
schema:
type: object
properties:
error:
type: string
error_description:
type: string
required:
- error
- error_description
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'401':
description: invalid_client
content:
application/json:
schema:
type: object
properties:
error:
type: string
error_description:
type: string
required:
- error
- error_description
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'429':
$ref: '#/components/responses/RateLimited'
description: '`grant_type=authorization_code` takes `code`, `redirect_uri`, `code_verifier` and `client_id`; `grant_type=refresh_token` takes `refresh_token` and `client_id`. A confidential client also sends `client_secret` (or HTTP Basic). Refresh tokens rotate on every use. Access tokens last one hour and go in `Authorization: Bearer`; they carry the approved scopes and are confined to the approved workspace.'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
required:
- grant_type
- client_id
properties:
grant_type:
type: string
enum:
- authorization_code
- refresh_token
client_id:
type: string
client_secret:
type: string
code:
type: string
redirect_uri:
type: string
format: uri
code_verifier:
type: string
minLength: 43
maxLength: 128
refresh_token:
type: string
security: []
/oauth/revoke:
post:
operationId: oauthRevoke
summary: Revoke a token
tags:
- OAuth
responses:
'200':
description: Revoked, or nothing to revoke
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'401':
description: invalid_client
content:
application/json:
schema:
type: object
properties:
error:
type: string
error_description:
type: string
required:
- error
- error_description
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'429':
$ref: '#/components/responses/RateLimited'
description: RFC 7009. Revokes the grant behind an access or refresh token; answers 200 whether or not the token existed. Requires `client_id` (and `client_secret` for a confidential client).
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
required:
- token
- client_id
properties:
token:
type: string
token_type_hint:
type: string
enum:
- access_token
- refresh_token
client_id:
type: string
client_secret:
type: string
security: []
/oauth/register:
post:
operationId: oauthRegister
summary: Register a client
tags:
- OAuth
responses:
'201':
description: Registered
content:
application/json:
schema:
type: object
properties:
client_id:
type: string
client_secret:
type: string
description: Only for a confidential client; shown once
client_name:
type: string
redirect_uris:
type: array
items:
type: string
client_uri:
type: string
token_endpoint_auth_method:
type: string
grant_types:
type: array
items:
type: string
response_types:
type: array
items:
type: string
client_id_issued_at:
type: integer
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'400':
description: RFC 7591 `invalid_client_metadata`
content:
application/json:
schema:
type: object
properties:
error:
type: string
error_description:
type: string
required:
- error
- error_description
headers:
X-Request-Id:
$ref: '#/components/headers/XRequestId'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
description: 'RFC 7591 registration for signed-in developers: use your API key. The client is owned by your account. `client_uri` is your site; every redirect URI must be https on that host or a subdomain of it (loopback http is allowed for native and local clients) and is matched exactly. The client name may not use the product name. `token_endpoint_auth_method` defaults to `none` (a public client, PKCE only); `client_secret_basic` or `client_secret_post` issues a secret that is shown once.
MCP clients may register without a credential when every redirect URI is loopback or on a supported MCP client host; `client_uri` is then optional and the client has no owner.
Requires the `workspaces` scope when using an API key.'
x-fopost-scope: workspaces
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- client_name
- redirect_uris
- client_uri
properties:
client_name:
type: string
maxLength: 100
redirect_uris:
type: array
items:
type: string
format: uri
minItems: 1
maxItems: 10
client_uri:
type: string
format: uri
token_endpoint_auth_method:
type: string
enum:
- none
- client_secret_basic
- client_secret_post
components:
schemas:
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.
responses:
Unauthorized:
description: Missing or invalid credentials
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'
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