Post, read and reply for a customer
Everything you do for one customer goes through the posting API, /v1. These are the endpoints of the OmniSocials API, called with your Connect key and one extra header that names the customer.
The examples use the sandbox address. For live, use https://api.omnisocials.com with a live key.
The customer header
Name the customer on every /v1 call:
Text
ext: takes your own id, the external_id you gave the customer. The call then works on that customer's accounts, posts, media and statistics only.
Two parts of /v1 are not open to Connect keys and answer 403 not_available_for_connect:
/v1/webhooks. Use the webhook endpoints of the Connect API, see Events and webhooks.- Approval workflows. Keep reviews in your product, see Review before posting.
Create a post
Terminal
schedule_at(ISO 8601, in the future) schedules the post."publish_now": true, orPOST /v1/posts/create-and-publish, publishes it at once.- Without either, the post is a draft.
"draft": truewithschedule_atkeeps a draft with a planned time. contentcan hold one text per network next todefault, for example"instagram": "…".- Media: public
httpsURLs inmedia_urls, or upload first and send the ids inmedia_ids(see Media library).
Read the post back with GET /v1/posts/{id}, with the same header. status is one of:
status | Meaning |
|---|---|
draft | Saved, never publishes on its own |
scheduled | Publishes at schedule_at |
posting | Publishing now |
published | Live on every network |
failed | No network took it |
warning | Some networks failed |
A failed network carries the reason. POST /v1/posts/{id}/retry tries the failed networks again.
The Creating posts guide and the Posts reference cover every field.
A calendar
Terminal
start_dateandend_datefilter onschedule_at: the time a post is planned for, or, for a post sent at once, the moment it was sent. Both ends are inclusive.- With a range, the posts come in calendar order, earliest first.
YYYY-MM-DDis a whole UTC day andYYYY-MMa whole month. For your customer's own days, send ISO 8601 datetimes with their offset, such as2026-11-01T00:00:00+01:00, with the+URL-encoded as%2B.- A draft without a date never matches. A draft with
schedule_atdoes. Addstatus=scheduled(orpublished,failed) to narrow the list. - Read every page:
limitgoes up to 100, then sendoffsetwhilepagination.has_moreis true.
Move a post with PATCH /v1/posts/{id} and { "schedule_at": "…" }.
Media library
- The files, newest first:
GET /v1/media, withlimit,offset,folder_idandsearch. - Upload:
POST /v1/media/upload(multipart, fieldfile) orPOST /v1/media/upload-from-urlwith{ "url" }. The answer'sidgoes inmedia_idson a post. - Folders:
GET /v1/folders, andPOST /v1/folderswith{ "name" }. - Delete a file:
DELETE /v1/media/{id}.
See the Media guide for formats and sizes, and the Media and Folders reference.
Statistics
- One or more posts:
GET /v1/analytics/posts?ids=101,102, or one post withGET /v1/analytics/posts/{id}. - Account numbers, such as followers per day:
GET /v1/analytics/accounts. - The customer's connected accounts:
GET /v1/accounts.
Simulated posts in the sandbox get no statistics. See the Analytics reference.
Comments and DMs
- The newest conversations, comments under a post and DMs:
GET /v1/inbox/conversations. - One conversation:
GET /v1/inbox/conversations/{id}/messages. - Answer:
POST /v1/inbox/conversations/{id}/replywith{ "text": "Thanks!" }. Addmessage_idto answer one comment in a thread. - Mark read:
POST /v1/inbox/conversations/{id}/read.
See the Inbox guide and the Inbox reference.
Comment to DM
On Instagram and Facebook, an automation sends a DM to everyone who comments a keyword under a post:
Terminal
platformisinstagram(the default) orfacebook.- Pause or resume with
PATCH /v1/automations/{id}. Who got a DM:GET /v1/automations/{id}/events. - Meta allows one private reply per comment, within 7 days, and an automatic message only within 24 hours after the person's last DM or button tap. A
follow_upon the automation sends one more DM inside that window (see Follow-up).
See the Automations guide and the Automations reference.
Review before posting
The approval workflows of the OmniSocials app are not open to Connect keys. Keep the review in your product:
- Create the post as a draft:
POST /v1/posts/createwithoutpublish_now. With"draft": trueandschedule_at, it keeps its planned time. - When your reviewer approves,
PATCH /v1/posts/{id}with{ "draft": false }schedules it at the stored time, orPOST /v1/posts/{id}/publishposts it at once. - Keep who approved, and any comments, in your own database.
Differences from the OmniSocials API guides
The guides of the OmniSocials API apply to Connect, with these differences:
- One Connect key works for all your customers. The
OmniSocials-Customerheader picks the customer of each call. - X posts go through your own X app, so X bills its API use to you. OmniSocials charges no X credits to a Connect account. See X through your own app.
- The connect links of the Connect API connect social accounts. The dashboard steps in the OmniSocials API guides do not apply.
- Webhooks and approval workflows work as described on this page, not as in those guides.