easyCoexistence Posts API
The Posts API from easyCoexistence — 5 operation(s) for posts.
The Posts API from easyCoexistence — 5 operation(s) for posts.
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-posts-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 Posts 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: Posts
paths:
/channels/{id}/posts:
post:
operationId: createPost
tags:
- Posts
summary: Create a post
description: 'The channel id comes from List channels. Leave out `publish_at` to post now.
A post for now that the network refused answers `422`, with the post and its `error`.
- **Instagram**: an image or a video, JPEG images only, no links. A carousel takes 2 to 10 items.
- **Facebook Pages**: text, a link, one image or one video.
- **TikTok**: one video, or 1 to 35 JPEG or WebP images. No links.
- **LinkedIn**: text, with one image (JPG, PNG or GIF) or a link. No video.'
parameters:
- name: id
in: path
required: true
description: The channel's id.
schema:
type: string
format: uuid
- name: Idempotency-Key
in: header
required: false
description: A retried request returns the same post instead of posting twice.
schema:
type: string
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
text:
type: string
description: The caption or message.
media:
type: array
items: {}
description: '`{ url, type }` with `type` `image` or `video`, or `{ media_id }` from [Upload media](#uploadMedia). A scheduled post''s files are copied when it is scheduled, so the link only has to work now. Images up to 30 MB, videos up to 1 GB.'
publish_at:
type: string
format: date-time
description: 'At least a minute from now and at most 90 days ahead. Left out: now.'
link:
type: object
additionalProperties: true
description: Facebook link posts and LinkedIn articles (LinkedIn needs the title).
ig_type:
type: string
enum:
- image
- carousel
- reels
- stories
description: Instagram; worked out from the media when left out.
title:
type: string
description: TikTok photo posts, up to 90 characters.
disable_comment:
type: boolean
description: TikTok.
image_alt:
type: string
description: LinkedIn.
required: []
additionalProperties: true
responses:
'201':
description: Created
content:
application/json:
schema:
type: object
additionalProperties: true
example:
id: 0b7e…
channel_id: 9a41…
channel: instagram
status: scheduled
publish_at: '2026-11-06T12:00:00.000Z'
source: api
text: New collection is in
media:
- type: image
media_id: c2d9…
permalink: null
error: null
failure_kind: null
may_be_published: false
created_at: '2026-10-30T14:05:11.000Z'
published_at: null
deleted_on_network_at: null
'400':
description: '`invalid_media`: The file could not be fetched, is too large, or is not a type the network takes. Or `channel_unavailable`: That channel cannot be used for this: not one this account can connect, or one that cannot post.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: '`unauthorized`: No key, or a key that does not exist or was revoked.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
description: '`billing_required`: This needs an active subscription. Reading always works.'
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'
get:
operationId: listChannelPosts
tags:
- Posts
summary: List a channel's posts
description: The same list, for one channel.
parameters:
- name: id
in: path
required: true
description: The channel's id.
schema:
type: string
format: uuid
- name: status
in: query
required: false
description: As above.
schema:
type: string
- name: limit
in: query
required: false
description: Default 50.
schema:
type: integer
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
additionalProperties: 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'
/media:
post:
operationId: uploadMedia
tags:
- Posts
summary: Upload media
description: 'The file as the body (with `Content-Type` and `Content-Length`), or `{ "url": "https://..." }` to have us copy it. Answers a `media_id` for `media` on a post, kept 48 hours until a post uses it.'
parameters: []
responses:
'201':
description: Created
content:
application/json:
schema:
type: object
additionalProperties: true
example:
media_id: c2d9…
type: image
content_type: image/jpeg
bytes: 418233
expires_at: …
'400':
description: '`invalid_media`: The file could not be fetched, is too large, or is not a type the network takes.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: '`unauthorized`: No key, or a key that does not exist or was revoked.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/posts:
get:
operationId: listPosts
tags:
- Posts
summary: List posts
description: 'The queue across every channel: upcoming first, or newest first when the filter has no upcoming status.
`processing` means the network is still working on a video. A failed post says why in `failure_kind`: `refused`, `uncertain`, `reconnect` (the channel needs to be connected again), `rate_limited` (we retried after 5 minutes, 30 minutes and 2 hours first), or `internal` (an error on our side before anything was sent: nothing is live, retry it).'
parameters:
- name: status
in: query
required: false
description: '`scheduled`, `publishing`, `processing`, `published`, `failed`, `canceled`.'
schema:
type: string
- name: from
in: query
required: false
description: '`publish_at` on or after.'
schema:
type: string
format: date-time
- name: to
in: query
required: false
description: '`publish_at` before.'
schema:
type: string
format: date-time
- name: limit
in: query
required: false
description: Default 50.
schema:
type: integer
- 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
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
additionalProperties: true
example:
data:
- id: 0b7e…
channel_id: 9a41…
channel: instagram
status: scheduled
publish_at: '2026-11-06T12:00:00.000Z'
source: api
text: New collection is in
media:
- type: image
media_id: c2d9…
permalink: null
error: null
failure_kind: null
may_be_published: false
created_at: '2026-10-30T14:05:11.000Z'
published_at: null
deleted_on_network_at: null
'401':
description: '`unauthorized`: No key, or a key that does not exist or was revoked.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/posts/{id}:
get:
operationId: getPost
tags:
- Posts
summary: Get a post
description: One post, with `permalink` once it is published.
parameters:
- name: id
in: path
required: true
description: The post's id.
schema:
type: string
format: uuid
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
additionalProperties: true
example:
id: 0b7e…
channel_id: 9a41…
channel: instagram
status: scheduled
publish_at: '2026-11-06T12:00:00.000Z'
source: api
text: New collection is in
media:
- type: image
media_id: c2d9…
permalink: null
error: null
failure_kind: null
may_be_published: false
created_at: '2026-10-30T14:05:11.000Z'
published_at: null
deleted_on_network_at: null
'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'
patch:
operationId: updatePost
tags:
- Posts
summary: Change a scheduled post
description: While it is still scheduled. To change the media, cancel it and create a new one.
parameters:
- name: id
in: path
required: true
description: The post's id.
schema:
type: string
format: uuid
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
publish_at:
type: string
format: date-time
description: ''
text:
type: string
description: ''
title:
type: string
description: ''
required: []
additionalProperties: true
example:
publish_at: '2026-11-07T09:00:00-03:00'
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
additionalProperties: true
example:
id: 0b7e…
channel_id: 9a41…
channel: instagram
status: scheduled
publish_at: '2026-11-07T12:00:00.000Z'
source: api
text: New collection is in
media:
- type: image
media_id: c2d9…
permalink: null
error: null
failure_kind: null
may_be_published: false
created_at: '2026-10-30T14:05:11.000Z'
published_at: null
deleted_on_network_at: null
'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: '`conflict`: The post can no longer be changed or canceled.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
delete:
operationId: cancelPost
tags:
- Posts
summary: Cancel a post
description: Cancels a post that has not gone out. A published post is not deleted from the network.
parameters:
- name: id
in: path
required: true
description: The post's id.
schema:
type: string
format: uuid
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
additionalProperties: true
example:
id: 0b7e…
channel_id: 9a41…
channel: instagram
status: canceled
publish_at: '2026-11-06T12:00:00.000Z'
source: api
text: New collection is in
media:
- type: image
media_id: c2d9…
permalink: null
error: null
failure_kind: null
may_be_published: false
created_at: '2026-10-30T14:05:11.000Z'
published_at: null
deleted_on_network_at: null
'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: '`conflict`: The post can no longer be changed or canceled.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/posts/{id}/retry:
post:
operationId: retryPost
tags:
- Posts
summary: Retry a failed post
description: 'Tries a failed post again. When `may_be_published` is true the network may have received it before the error: look at the account first, then send `{ "confirm": true }`, or it may go out twice.'
parameters:
- name: id
in: path
required: true
description: The post's id.
schema:
type: string
format: uuid
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
confirm:
type: boolean
description: Needed when `may_be_published` is true.
required: []
additionalProperties: true
example:
confirm: true
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
additionalProperties: true
example:
id: 0b7e…
channel_id: 9a41…
channel: instagram
status: publishing
publish_at: '2026-11-06T12:00:00.000Z'
source: api
text: New collection is in
media:
- type: image
media_id: c2d9…
permalink: null
error: null
failure_kind: null
may_be_published: false
created_at: '2026-10-30T14:05:11.000Z'
published_at: null
deleted_on_network_at: null
'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: '`conflict`: The post can no longer be changed or canceled.'
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.