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.
All 92 tools →
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/post-bridge-com:post-bridge-com-social-accounts-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: 3.2.0
info:
title: post bridge Social Accounts API
description: The official API for post bridge
version: '1.0'
contact: {}
termsOfService: https://www.post-bridge.com/tos
servers: []
tags:
- name: Social Accounts
description: 'Social accounts represent platform-specific accounts (e.g. Twitter, LinkedIn, Facebook, Google Business) that are used for publishing posts.
Each social account has a unique `id` that can be referenced when creating or scheduling posts to specify which platforms the content should be published to.'
paths:
/v1/social-accounts:
get:
description: Get a paginated result for social accounts based on the applied filters
operationId: SocialAccountsController_getAllSocialAccounts_v1
parameters:
- name: offset
required: false
in: query
description: Number of items to skip
schema:
default: 0
type: number
- name: limit
required: false
in: query
description: Number of items to return
schema:
default: 10
type: number
- name: platform
required: false
in: query
description: Filter by platform(s). Multiple values imply OR logic (e.g., ?platform=twitter&platform=instagram).
schema:
type: array
items:
type: string
- name: username
required: false
in: query
description: Filter by username(s). Multiple values imply OR logic (e.g., ?username=test&username=test2).
schema:
type: array
items:
type: string
- name: external_ref
required: false
in: query
description: Filter by the external_ref given when the account was connected through a connect link (POST /social-accounts/connect-link).
schema:
type: string
- name: workspace_id
required: false
in: query
description: 'Filter by dashboard workspace: a workspace_id from this list, or "main" for the default Main workspace.'
schema:
type: string
responses:
'200':
description: Paginated data set for social accounts.
content:
application/json:
schema:
properties:
data:
type: array
items:
$ref: '#/components/schemas/SocialAccountDto'
meta:
type: object
properties:
total:
type: number
description: Total number of items available.
offset:
type: number
description: Number of items skipped.
limit:
type: number
description: Maximum number of items returned.
next:
type:
- string
- 'null'
description: URL to the next page of results, or null if none.
example: https://api.post-bridge.com/v1/items?offset=10&limit=10
required:
- total
- offset
- limit
- next
required:
- data
- meta
'500':
description: Internal server error when fetching social accounts.
security:
- bearer: []
summary: Get social accounts
tags:
- Social Accounts
/v1/social-accounts/connect-link:
post:
description: 'Returns a link that connects one social account under your Post Bridge account without the account owner logging in to Post Bridge. Give the link to the person (or open it inside your own app): they approve on the platform''s own consent screen and are sent to your return_url with the new account ids. Use external_ref to tag the accounts with your own customer id, then filter GET /social-accounts by it. Every connected account counts against your plan''s account cap; when the cap is reached this answers 402 with a link to raise it. Platforms: instagram, facebook, tiktok, youtube, twitter, linkedin, threads, pinterest, bluesky (google_business is dashboard-only). Instagram uses Instagram''s own login (one professional account, no Facebook Page needed); Facebook connects every Page the login manages; LinkedIn connects the profile plus every company page it administers, so one link can return several account ids; Bluesky shows a short form for the handle and an app password.'
operationId: SocialAccountsController_createConnectLink_v1
parameters: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateConnectLinkDto'
responses:
'201':
description: Link created.
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectLinkResponseDto'
'400':
description: Unsupported platform or return_url.
'402':
description: Account cap reached, or no active plan. The body carries connected, included and raise_url (the billing page where the cap is raised).
security:
- bearer: []
summary: Create a connect link
tags:
- Social Accounts
/v1/social-accounts/{id}:
get:
description: 'Returns one connected social account: platform, username and whether its authorisation is still valid. An account whose token has expired must be reconnected in the dashboard before it can publish.'
operationId: SocialAccountsController_getSocialAccount_v1
parameters:
- name: id
required: true
in: path
description: Social Account ID
schema:
type: number
responses:
'200':
description: Social account retrieved successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/SocialAccountDto'
'404':
description: Social account not found based on the given ID.
'500':
description: Internal server error when fetching the post result.
security:
- bearer: []
summary: Get social account by ID
tags:
- Social Accounts
delete:
description: Disconnects one social account, the same as the disconnect button in the dashboard. It frees a slot on your account cap. Scheduled posts that target it lose it as a destination (a post whose only destination was this account then fails instead of publishing), and published posts keep their results. Reconnecting later creates a new account id. Handy for pruning accounts a platform has restricted or banned.
operationId: SocialAccountsController_deleteSocialAccount_v1
parameters:
- name: id
required: true
in: path
description: Social Account ID
schema:
type: number
responses:
'200':
description: Social account disconnected.
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteEntityResponseDto'
'404':
description: Social account not found based on the given ID.
security:
- bearer: []
summary: Disconnect social account
tags:
- Social Accounts
/v1/social-accounts/{id}/instagram-audio:
get:
description: 'Searches the tracks (or original sounds) Meta lets apps attach to a reel on this Instagram account. Pass a returned audio_id as platform_configurations.instagram.audio_id when creating the post, with optional audio_volume and video_volume (0-100). Leave out query to get what is trending. Only works for Instagram accounts connected through Facebook login (supports_instagram_music: true); accounts connected with Instagram login get a 400, because Meta only offers music on the Facebook-login API. The catalogue is the subset Meta clears for third-party apps, so it can differ from the in-app library. download_url previews expire after about 1.5 days.'
operationId: SocialAccountsController_searchInstagramAudio_v1
parameters:
- name: query
required: false
in: query
description: Search words, e.g. a song or artist. Omit for trending audio.
schema:
type: string
- name: type
required: false
in: query
description: music (default) or original_sound (audio from other reels).
schema:
enum:
- music
- original_sound
type: string
- name: id
required: true
in: path
description: Social Account ID of an Instagram account
schema:
type: number
responses:
'200':
description: '{ data: [{ audio_id, title, display_artist, duration_in_ms, audio_type, cover_artwork_thumbnail_uri, download_url, ig_username, is_ads_eligible, on_platform_audio_preview_link }] }'
'400':
description: Not an Instagram account, or an Instagram account connected with Instagram login (music needs Facebook login).
'404':
description: Social account not found.
'502':
description: Meta returned an error.
security:
- bearer: []
summary: Search Instagram music for reels
tags:
- Social Accounts
components:
schemas:
CreateConnectLinkDto:
type: object
properties:
platform:
type: string
description: Platform the link connects. One link connects one platform.
enum:
- instagram
- facebook
- tiktok
- youtube
- twitter
- linkedin
- threads
- pinterest
- bluesky
example: instagram
return_url:
type: string
description: 'Where the person is sent after the platform consent screen. https only (http allowed for localhost). Query parameters are appended: status=connected with platform, account_ids (comma separated) and external_ref, or status=error with reason.'
example: https://app.example.com/social/callback?salon=42
external_ref:
type: string
description: Your own reference for the person or client this link is for (a customer id, for example). Stored on every account the link connects and returned as external_ref on GET /social-accounts, so you can filter accounts by it.
example: salon_42
expires_in:
type: number
description: How long the link stays valid, in seconds. Default 86400 (24 hours), minimum 60, maximum 604800 (7 days). Mint a fresh link whenever you need one; minting is free.
example: 86400
required:
- platform
- return_url
DeleteEntityResponseDto:
type: object
properties:
success:
type: boolean
description: Whether or not the entity was deleted
required:
- success
ConnectLinkResponseDto:
type: object
properties:
url:
type: string
description: Link to give to the person who owns the social account. They open it, approve on the platform, and are sent to your return_url.
expires_at:
type: string
description: ISO timestamp when the link stops working
platform:
type: string
description: Platform this link connects
connected:
type: number
description: Accounts connected under this API key right now
included:
type:
- object
- 'null'
description: Accounts included in the plan. When connected reaches this, minting answers 402 until the cap is raised on the billing page.
required:
- url
- expires_at
- platform
- connected
- included
SocialAccountDto:
type: object
properties:
id:
type: number
description: The unique identifier of the social account
platform:
type: string
description: The platform of the social account
username:
type: string
description: The platform's username of the social account
profile_picture_url:
type:
- object
- 'null'
description: The account's profile picture URL, or null when the platform didn't provide one. Updated when the account is reconnected or refreshed.
needs_reconnect:
type: boolean
description: True when repeated dead-token failures have paused posting to this account (Meta platforms). Posts to it are skipped until the account is reconnected in the dashboard; any reconnect clears it automatically. Pause your automation for accounts in this state instead of retrying.
external_ref:
type:
- object
- 'null'
description: Your reference from the connect link that connected this account (POST /social-accounts/connect-link), or null for accounts connected in the dashboard.
connected_via_link_at:
type:
- object
- 'null'
description: When this account was last connected or reconnected through a connect link (ISO 8601), or null if it never was.
workspace_id:
type:
- object
- 'null'
description: The dashboard workspace this account sits in, or null for the default Main workspace. Pass it as ?workspace_id= to list only that workspace's accounts.
workspace_name:
type:
- object
- 'null'
description: Name of that workspace ("Main" for the default one).
has_x_premium:
type:
- object
- 'null'
description: 'X (Twitter) accounts only: true when the account is on X Premium, which allows posts up to 25,000 characters instead of 280. Refreshed when the user reconnects or clicks Refresh on X. null for every other platform.'
supports_instagram_music:
type:
- object
- 'null'
description: 'Instagram accounts only: true when the account is connected through Facebook login, which is the only connection Meta lets attach Instagram music (platform_configurations.instagram.audio_id, tracks from GET /v1/social-accounts/{id}/instagram-audio). false for accounts connected with Instagram login. null for every other platform.'
required:
- id
- platform
- username
- profile_picture_url
- needs_reconnect
- external_ref
- connected_via_link_at
- workspace_id
- workspace_name
- has_x_premium
- supports_instagram_music
securitySchemes:
bearer:
scheme: bearer
bearerFormat: JWT
type: http
mcp-oauth:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://www.post-bridge.com/authorize
tokenUrl: https://www.post-bridge.com/api/oauth/token
refreshUrl: https://www.post-bridge.com/api/oauth/token
scopes:
posts:read: Read posts, drafts and scheduled posts
posts:write: Create, update, schedule and delete posts
accounts:read: List connected social accounts
media:read: List uploaded media
media:write: Upload and delete media
analytics:read: Read post analytics
description: Used by MCP clients (Claude, ChatGPT, Cursor). REST API callers use the Bearer API key above instead.