easyCoexistence Social channels API
The Social channels API from easyCoexistence — 3 operation(s) for social channels.
The Social channels API from easyCoexistence — 3 operation(s) for social channels.
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/easycoexistence-com:easycoexistence-com-social-channels-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: EasyCoexistence Social channels API
version: '1'
description: 'Your connected numbers and channels from your own backend: status and sending health, credentials, where messages go, signed status events. Messages never pass through EasyCoexistence: send through Meta with the number''s own token. Fields are snake_case, dates ISO 8601 in UTC. New fields and events are added without notice: ignore what you do not use. Reference: https://easycoexistence.com/docs/api. 36 operations.'
servers:
- url: https://easycoexistence.com/api/v1
security:
- apiKey: []
tags:
- name: Social channels
paths:
/channels:
get:
operationId: listChannels
tags:
- Social channels
summary: List channels
description: 'Every channel on the account, newest first.
`status`: `connected`, `disconnected` (the network refused the token or the owner withdrew access; connecting it again brings it back), `suspended`, `removed`.'
parameters:
- name: channel
in: query
required: false
description: Keeps one network.
schema:
type: string
enum:
- instagram
- facebook
- tiktok
- name: external_ref
in: query
required: false
description: 'Partners: keeps the ones a customer connected, by the `external_ref` of their connect session.'
schema:
type: string
- name: include_removed
in: query
required: false
description: Includes removed ones.
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
additionalProperties: true
example:
data:
- id: 9a41…
channel: instagram
external_ref: null
name: Bloom Café
username: bloomcafe
external_id: …
status: connected
token_ready: true
webhook_url: null
disconnected_reason: null
last_checked_at: …
created_at: …
'401':
description: '`unauthorized`: No key, or a key that does not exist or was revoked.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/channels/{id}:
get:
operationId: getChannel
tags:
- Social channels
summary: Get a channel
description: 'One channel. With `credentials=1`, also the network''s API base and a fresh access token.
- **Instagram**: the Graph API base and the account''s id, and no token: Meta''s terms do not allow handing it to another app. Act on the account through the MCP tools (`publish_instagram_post`, `list_social_comments`, `reply_to_comment`, `send_social_dm`, `get_social_insights`), which keep the token.
- **Facebook Pages**: the Graph API base and the Page''s id, and no token: Meta''s terms do not allow handing it to another app. Act on the Page through the MCP tools (`publish_facebook_post`, `list_social_comments`, `reply_to_comment`, `send_social_dm`, `get_social_insights`), which keep the token.
- **TikTok**: `api_base` https://business-api.tiktok.com/open_api/v1.3 and `business_id`; send the token as the `Access-Token` header. It lasts 24 hours.
- Publishing, comments, insights and everything else go through the network''s own API with that token, or through Posts for publishing.'
parameters:
- name: id
in: path
required: true
description: The channel's id.
schema:
type: string
format: uuid
- name: credentials
in: query
required: false
description: Adds `credentials`. EasyCoexistence renews the tokens, so fetch it per job instead of storing it.
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
additionalProperties: true
example:
id: 9a41…
channel: instagram
external_ref: null
name: Bloom Café
username: bloomcafe
external_id: …
status: connected
token_ready: true
webhook_url: null
disconnected_reason: null
last_checked_at: …
created_at: …
credentials:
api_base: …
access_token: …
expires_at: …
'401':
description: '`unauthorized`: No key, or a key that does not exist or was revoked.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: '`not_found`: Nothing with that id on this account.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'502':
description: '`credentials_unavailable`: The network would not give a fresh token; the channel may need connecting again.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
delete:
operationId: removeChannel
tags:
- Social channels
summary: Remove a channel
description: Revokes access at the network and forgets the token; nothing is left for the owner to do. Scheduled posts on it are canceled. Billing stops at the end of the cycle.
parameters:
- name: id
in: path
required: true
description: The channel's id.
schema:
type: string
format: uuid
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
additionalProperties: true
example:
removed: true
billing_stops_at_period_end: true
'401':
description: '`unauthorized`: No key, or a key that does not exist or was revoked.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: '`not_found`: Nothing with that id on this account.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: '`removed`: It was removed from the account.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/channels/{id}/webhook:
put:
operationId: setChannelWebhook
tags:
- Social channels
summary: Relay the channel's events
description: Relays the events Instagram, Facebook and TikTok send us to your URL (comments; on Instagram and Facebook also mentions and DMs), signed with a per-channel secret returned once. Each POST carries `{ "platform", "account_id", "external_id", "entry" }`, where `entry` is the network's own event, and `X-EC-Signature` made as in Events. Relayed in memory, never stored, so there are no retries.
parameters:
- name: id
in: path
required: true
description: The channel's id.
schema:
type: string
format: uuid
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
url:
type:
- string
- 'null'
format: uri
description: Your endpoint. `null` stops.
required:
- url
additionalProperties: true
example:
url: https://hooks.example.com/social/<long-random-secret>
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
additionalProperties: true
example:
webhook_url: https://hooks.example.com/social/…
signing_secret: whsec_…
note: Shown once.
'401':
description: '`unauthorized`: No key, or a key that does not exist or was revoked.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: '`not_found`: Nothing with that id on this account.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
enum:
- invalid_json
- invalid_request
- channel_unavailable
- not_supported
- invalid_media
- unauthorized
- billing_required
- suspended
- not_found
- removed
- conflict
- not_managed
- secret_change
- rate_limited
- internal
- meta_error
- meta_rejected
- revoke_failed
- credentials_unavailable
message:
type: string
description: For people; may change.
securitySchemes:
apiKey:
type: http
scheme: bearer
description: The account's ec_live_ key, made in Dashboard → Developers.