OmniSocialsOmniSocials
DocumentationAPI reference
Help centerSupport
  • Documentation
  • API reference
Developers
  • Quickstart
  • API reference
  • SDKs
  • MCP server
  • CLI
For AI agents
  • Docs for AI agents
  • llms.txt
  • OpenAPI spec
  • Postman collection
Product
  • OmniSocials
  • Pricing
  • Changelog
  • Help center
Company
  • Support
  • Privacy policy
  • Terms of service

© 2026 OmniSocials

OmniSocials on GitHubOmniSocials on XOmniSocials on LinkedIn
Information
Posts
    List postsgetList live platform postsgetGet a postgetDelete a postdeleteUpdate a postpatchCreate a postpostCreate and publish postpostPublish a post nowpostRetry failed postpostApprove a postpostReject a postpostGet approval reviewget
Media
    List mediagetGet a media itemgetDelete a media itemdeleteRename or move mediapatchUpload a filepostUpload from base64postUpload from a URLpostCreate an upload URLpostSplit a PDF into pagespostCheck media limitspostUpload with a tokenpost
Folders
    List foldersgetCreate a folderpostDelete a folderdeleteRename or move a folderpatch
Hashtag Sets
    List hashtag setsgetCreate a hashtag setpostGet a hashtag setgetDelete a hashtag setdeleteUpdate a hashtag setpatch
Tags
    List tagsgetCreate a tagpostDelete a tagdeleteUpdate a tagpatchTag posts in bulkpost
Accounts
    List accountsgetGet an accountgetChange how often X statistics are checkedpatch
Analytics
    Get bulk post analyticsgetGet post analyticsgetCompare tagsgetGet analytics overviewgetGet account analyticsgetGet best posting timesgetCheck the X numbers of a post now ("Update now")post
Credits
    Credit balance and X statisticsget
Approvals
    List approval workflowsget
Webhooks
    List webhooksgetCreate a webhookpostGet a webhookgetDelete a webhookdeleteUpdate a webhookpatchRotate webhook secretpost
Locations
    Search locationsgetValidate a locationget
Audio
    Search Instagram audioget
Pinterest
    List product PinsgetCheck a product Pinget
Inbox
    List conversationsgetList messagesgetMark conversation readpostReply to a conversationpostHide or unhide a commentpostLike or unlike a commentpostDelete a commentdeleteGet next conversationget
Automations
    List automationsgetCreate an automationpostGet an automationgetDelete an automationdeleteUpdate an automationpatchList automation eventsgetGet automation resultsgetGet one person's storyget
Feature requests
    List what OmniSocials cannot dogetList your feature requestsgetSend a feature requestpostGet a feature requestget
Schemas
OmniSocials API
OmniSocials API

Automations

Download schema

Comment-to-DM automations on the connected Instagram account or Facebook Page (platform): a keyword in a comment on a post (or in a DM, or in an Instagram story reply) gets a DM back, once per person, with an optional public reply under the comment. On Facebook the DM lands in Messenger. Create one for an OmniSocials post (post_id), for a post published outside OmniSocials (instagram_media_id or facebook_post_id), for the next post the workspace publishes, or for every post. Opt-in scopes automations:read and automations:write. A post can also carry its automations at create time (comment_dm_automation on POST /posts/create, with platforms for Instagram, Facebook or both).


List automations

GET
https://api.omnisocials.com/v1
/automations

Returns the comment-to-DM automations of the workspace, newest first. An automation answers a keyword in a comment (or a DM, or an Instagram story reply) with a DM, once per person. It runs on the connected Instagram account, the connected Facebook Page or the connected X account (platform; on X it answers DMs only). Needs the opt-in automations:read scope.

List automations › query Parameters

status
​string · enum
Enum values:
active
paused
completed
post_id
​string

Only the automations bound to this OmniSocials post (one per platform at most).

platform
​string · enum

Only the automations of this platform.

Enum values:
instagram
facebook
x

List automations › Responses

List of automations

​Automation[]
GET/automations
curl "https://api.omnisocials.com/v1/automations?status=active" \ -H "Authorization: Bearer $OMNISOCIALS_API_KEY"
Example Responses
{ "data": [ { "id": "318", "type": "comment_to_dm", "platform": "instagram", "status": "active", "name": "Guide DM", "post_id": "1024", "instagram_media_id": "17912345678901234", "facebook_post_id": "104857600123456_987654321098765", "post": {}, "trigger": { "kinds": [ "comment" ], "scope": "post", "keywords": [ "guide" ], "match": "word" }, "actions": { "dm": { "text": "Here is the guide 👇", "button": { "title": "Get the guide", "url": "https://example.com/guide" } }, "public_reply": { "enabled": true, "variations": [ "Sent you a DM!" ] }, "follow_gate": { "enabled": true, "first_message": { "text": "Tap the button and I'll send you the link 👇", "button": "Send me the link" }, "not_following": { "text": "Tap the button and I'll send you the link 👇", "button": "Send me the link" } }, "follow_up": { "enabled": true, "text": "Did the guide help? Book a free call here 👇", "delay_hours": 23, "button": { "title": "Book a call", "url": "https://example.com/call" }, "tap": { "text": "Tap the button and I'll send you the link 👇", "button": "Send me the link" } } }, "limits": { "max_sends": 500, "stop_at": "2026-11-30T23:00:00.000Z" }, "stats": { "matched": 120, "sent": 112, "skipped": 6, "failed": 2, "followed": 41, "follow_ups_sent": 37, "follow_ups_skipped": 9, "linked": 80, "clicked": 31, "follow_up_clicks": 6, "answered": 14, "last_event_at": "2026-10-21T15:00:12.000Z" }, "created_at": "2026-10-20T14:32:10.000Z", "updated_at": "2026-10-20T14:35:42.000Z" } ] }
json
application/json

Create an automation

POST
https://api.omnisocials.com/v1
/automations

Creates a comment-to-DM automation on the connected Instagram account (default) or on the connected Facebook Page (platform: facebook). When somebody comments a keyword on the post (or sends it in a DM, or in an Instagram story reply, see trigger.kinds), the account sends them actions.dm.text as a private message, once per person, and optionally posts one of actions.public_reply.variations under the comment. On Facebook the DM lands in Messenger. Meta's rules are the same on both: one private reply per comment, within 7 days of the comment, and an automatic message only within 24 hours after the person's last DM, button tap or quick reply (the comment does not open that window). OmniSocials caps sends at 700 DMs an hour per account and platform (Meta's own limit is 750 calls an hour); an answer over the cap waits in a queue and goes out as soon as there is room, for up to about a day (24 hours for a comment, 23 hours for a DM or story reply). On X (platform: x) only trigger.kinds: ["dm"] exists: the account answers a DM with the keyword (or any first message with match: any), once per person, after X DMs are turned on for the workspace in the dashboard; X allows 15 answers per 15 minutes per account, and each answer ends with "Reply STOP to stop automatic messages.". For scope post, pass one of post_id (an OmniSocials post that goes to the platform; a scheduled post starts listening once it is live), instagram_media_id (an Instagram post published outside OmniSocials) or facebook_post_id (a Page post published outside OmniSocials). Needs the opt-in automations:write scope and a connected Instagram account, Facebook Page or X account; an active X automation also needs X DMs on (else 409 x_dms_off; status: paused always saves). Follow first (actions.follow_gate, Instagram only): the person first gets a short message with one button, and the link in dm.text goes out once a tap shows they follow the account; somebody who does not follow yet is asked to follow and tap again. Texts hold 640 characters and buttons 20; leave them out for the defaults. Facebook and X have no follow status, so enabled: true there answers 400 follow_gate_instagram_only. Follow-up (actions.follow_up, Instagram and Facebook): one more DM 1 to 23 hours (default 23) after the answer went out, inside Meta's 24-hour window. On an Instagram comment with Follow first off, the first DM becomes a tap step with one button (follow_up.tap, defaults "Tap the button and I'll send you the link 👇" and "Send me the link"), and the tap sends dm.text and opens the window; with Follow first on, its own tap does that. A DM or story reply trigger needs no tap step. On Facebook only people who answer the DM get the follow-up. text holds 1000 characters (640 with a button), button is an optional link button (title 20 characters, an http(s) url). X has none: enabled: true there answers 400 follow_up_not_supported. Link button (actions.dm.button, Instagram and Facebook): a button under the DM (title 20 characters, an https url of at most 900) whose taps OmniSocials counts through a short link for 60 days after the DM (stats.clicked, the event's clicked_at); the DM text then holds 640 characters. A Facebook comment answer has no buttons and gets the address under the text instead; X answers 400 dm_button_not_supported. Keywords (match: word, the default) also catch the forms people write: capitals, accents, fancy letters, longer letter runs and a plural or common ending ("guides", "guideee" for GUIDE), never part of another word and no typos. Read the funnel with GET /automations/{id}/results.

Create an automation › Request Body

The fields of an automation. POST /automations requires `actions`; PATCH /automations/{id} takes any subset.
​AutomationActions · required

On create dm is required. On PATCH each key merges into the stored actions, so { "follow_gate": { "enabled": true } } or { "follow_up": { "delay_hours": 12 } } alone keeps the DM and the public reply.

name
​string

A label for the automations list (max 120 characters).

Example: Guide DM
platform
​string · enum

The channel the automation runs on. Default instagram. instagram_media_id implies instagram and facebook_post_id implies facebook; a body that names another platform answers 400 validation_error. On PATCH it cannot change: another platform answers 400 platform_immutable. x answers DMs to the connected X account: only the dm kind (X allows an automated DM only after the person DMed you), the workspace needs X DMs turned on in the dashboard (else 409 x_dms_off for an active automation; status: paused saves it), every answer ends with the line "Reply STOP to stop automatic messages.", and a person who replies STOP gets no automatic DM from the account again. X does not give apps the messages of an encrypted X Chat conversation, so those get no answer.

Enum values:
instagram
facebook
x
Example: instagram
​AutomationTrigger
post_id
​string

For scope post: an OmniSocials post (scheduled or live) that goes to the automation's platform. A post that does not go there answers 400 post_not_instagram or post_not_facebook. One automation per post and platform: a post that goes to Instagram and Facebook can have one of each.

Example: 1024
instagram_media_id
​string

For scope post on Instagram: the numeric id of a post or reel that was published outside OmniSocials (from the Instagram API, GET /me/media). The post is read from Instagram to check it belongs to the connected account.

Example: 17912345678901234
facebook_post_id
​string

For scope post on Facebook: the id of a post that was published on the connected Facebook Page outside OmniSocials. Pass {page-id}_{post-id} or the post id alone (the Page id is put in front). The post is read from Facebook with the Page token; a post of another Page answers 404 facebook_post_not_found. Implies platform: facebook. Pass one of post_id, instagram_media_id or facebook_post_id.

Example: 104857600123456_987654321098765
​AutomationLimits
status
​string · enum

paused creates the automation without turning it on. Default active.

Enum values:
active
paused

Create an automation › Responses

Automation created

​Automation
POST/automations
curl -X POST "https://api.omnisocials.com/v1/automations" \ -H "Authorization: Bearer $OMNISOCIALS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "post_id": "12345", "trigger": {"keywords": ["guide"]}, "actions": { "dm": {"text": "Here is the guide: https://example.com/guide"} } }'
Example Request Body
{ "name": "Free guide", "post_id": "12345", "trigger": { "keywords": [ "guide", "link" ], "match": "word" }, "actions": { "dm": { "text": "Here is the guide: https://example.com/guide" }, "public_reply": { "enabled": true, "variations": [ "Sent you a DM!", "Check your inbox 📩" ] } }, "limits": { "max_sends": 500 } }
json
application/json
Example Responses
{ "data": { "id": "318", "type": "comment_to_dm", "platform": "instagram", "status": "active", "name": "Guide DM", "post_id": "1024", "instagram_media_id": "17912345678901234", "facebook_post_id": "104857600123456_987654321098765", "post": {}, "trigger": { "kinds": [ "comment" ], "scope": "post", "keywords": [ "guide" ], "match": "word" }, "actions": { "dm": { "text": "Here is the guide 👇", "button": { "title": "Get the guide", "url": "https://example.com/guide" } }, "public_reply": { "enabled": true, "variations": [ "Sent you a DM!" ] }, "follow_gate": { "enabled": true, "first_message": { "text": "Tap the button and I'll send you the link 👇", "button": "Send me the link" }, "not_following": { "text": "Tap the button and I'll send you the link 👇", "button": "Send me the link" } }, "follow_up": { "enabled": true, "text": "Did the guide help? Book a free call here 👇", "delay_hours": 23, "button": { "title": "Book a call", "url": "https://example.com/call" }, "tap": { "text": "Tap the button and I'll send you the link 👇", "button": "Send me the link" } } }, "limits": { "max_sends": 500, "stop_at": "2026-11-30T23:00:00.000Z" }, "stats": { "matched": 120, "sent": 112, "skipped": 6, "failed": 2, "followed": 41, "follow_ups_sent": 37, "follow_ups_skipped": 9, "linked": 80, "clicked": 31, "follow_up_clicks": 6, "answered": 14, "last_event_at": "2026-10-21T15:00:12.000Z" }, "created_at": "2026-10-20T14:32:10.000Z", "updated_at": "2026-10-20T14:35:42.000Z" } }
json
application/json

Get an automation

GET
https://api.omnisocials.com/v1
/automations/{id}

Returns one comment-to-DM automation of the key's workspace: its trigger, actions, limits, counts in stats, and the post it listens on.

Get an automation › path Parameters

id
​string · required

Get an automation › Responses

Automation

​Automation
GET/automations/{id}
curl "https://api.omnisocials.com/v1/automations/100000004" \ -H "Authorization: Bearer $OMNISOCIALS_API_KEY"
Example Responses
{ "data": { "id": "318", "type": "comment_to_dm", "platform": "instagram", "status": "active", "name": "Guide DM", "post_id": "1024", "instagram_media_id": "17912345678901234", "facebook_post_id": "104857600123456_987654321098765", "post": {}, "trigger": { "kinds": [ "comment" ], "scope": "post", "keywords": [ "guide" ], "match": "word" }, "actions": { "dm": { "text": "Here is the guide 👇", "button": { "title": "Get the guide", "url": "https://example.com/guide" } }, "public_reply": { "enabled": true, "variations": [ "Sent you a DM!" ] }, "follow_gate": { "enabled": true, "first_message": { "text": "Tap the button and I'll send you the link 👇", "button": "Send me the link" }, "not_following": { "text": "Tap the button and I'll send you the link 👇", "button": "Send me the link" } }, "follow_up": { "enabled": true, "text": "Did the guide help? Book a free call here 👇", "delay_hours": 23, "button": { "title": "Book a call", "url": "https://example.com/call" }, "tap": { "text": "Tap the button and I'll send you the link 👇", "button": "Send me the link" } } }, "limits": { "max_sends": 500, "stop_at": "2026-11-30T23:00:00.000Z" }, "stats": { "matched": 120, "sent": 112, "skipped": 6, "failed": 2, "followed": 41, "follow_ups_sent": 37, "follow_ups_skipped": 9, "linked": 80, "clicked": 31, "follow_up_clicks": 6, "answered": 14, "last_event_at": "2026-10-21T15:00:12.000Z" }, "created_at": "2026-10-20T14:32:10.000Z", "updated_at": "2026-10-20T14:35:42.000Z" } }
json
application/json

Delete an automation

DELETE
https://api.omnisocials.com/v1
/automations/{id}

Deletes the automation and its activity log. DMs that were already sent stay sent.

Delete an automation › path Parameters

id
​string · required

Delete an automation › Responses

Automation deleted

No data returned
DELETE/automations/{id}
curl -X DELETE "https://api.omnisocials.com/v1/automations/100000004" \ -H "Authorization: Bearer $OMNISOCIALS_API_KEY"
Example Responses
No example specified for this content type

Update an automation

PATCH
https://api.omnisocials.com/v1
/automations/{id}

Partial update. status pauses (paused) or resumes (active) the automation. trigger, actions and limits are merged into the stored sections: keys you omit keep their value (new keywords keep the kinds, the scope and the match; a new dm.text keeps the public reply). public_reply.variations: [] or enabled: false turns the public reply off; limits.max_sends: null removes that limit. actions.follow_gate merges into the stored one too: { "enabled": false } switches Follow first off and keeps its texts, new texts keep the switch as it is, null switches it off, and a body without follow_gate leaves it untouched. actions.follow_up merges the same way: { "enabled": false } or null switches the follow-up off and keeps its texts, keys you leave out keep their value ({ "delay_hours": 12 } changes only the delay), tap merges key by key, button: null removes the link button and a new button replaces the stored one (send title and url together), and a body without follow_up leaves it untouched; enabled: true on an X automation answers 400 follow_up_not_supported. actions.dm.button: a body without it keeps the stored button (also with a new dm.text, which must then fit in 640 characters), null removes it, a new object replaces it (send title and url together); a button on an X automation answers 400 dm_button_not_supported. Another post_id, instagram_media_id or facebook_post_id moves the automation to that post. The platform never changes: a body that names another platform (or instagram_media_id on a Facebook automation, facebook_post_id on an Instagram one) answers 400 platform_immutable. A completed automation starts again when its limits or trigger change.

Update an automation › path Parameters

id
​string · required

Update an automation › Request Body

The fields of an automation. POST /automations requires `actions`; PATCH /automations/{id} takes any subset.
AutomationInput
name
​string

A label for the automations list (max 120 characters).

Example: Guide DM
platform
​string · enum

The channel the automation runs on. Default instagram. instagram_media_id implies instagram and facebook_post_id implies facebook; a body that names another platform answers 400 validation_error. On PATCH it cannot change: another platform answers 400 platform_immutable. x answers DMs to the connected X account: only the dm kind (X allows an automated DM only after the person DMed you), the workspace needs X DMs turned on in the dashboard (else 409 x_dms_off for an active automation; status: paused saves it), every answer ends with the line "Reply STOP to stop automatic messages.", and a person who replies STOP gets no automatic DM from the account again. X does not give apps the messages of an encrypted X Chat conversation, so those get no answer.

Enum values:
instagram
facebook
x
Example: instagram
​AutomationTrigger
post_id
​string

For scope post: an OmniSocials post (scheduled or live) that goes to the automation's platform. A post that does not go there answers 400 post_not_instagram or post_not_facebook. One automation per post and platform: a post that goes to Instagram and Facebook can have one of each.

Example: 1024
instagram_media_id
​string

For scope post on Instagram: the numeric id of a post or reel that was published outside OmniSocials (from the Instagram API, GET /me/media). The post is read from Instagram to check it belongs to the connected account.

Example: 17912345678901234
facebook_post_id
​string

For scope post on Facebook: the id of a post that was published on the connected Facebook Page outside OmniSocials. Pass {page-id}_{post-id} or the post id alone (the Page id is put in front). The post is read from Facebook with the Page token; a post of another Page answers 404 facebook_post_not_found. Implies platform: facebook. Pass one of post_id, instagram_media_id or facebook_post_id.

Example: 104857600123456_987654321098765
​AutomationActions

On create dm is required. On PATCH each key merges into the stored actions, so { "follow_gate": { "enabled": true } } or { "follow_up": { "delay_hours": 12 } } alone keeps the DM and the public reply.

​AutomationLimits
status
​string · enum

paused creates the automation without turning it on. Default active.

Enum values:
active
paused

Update an automation › Responses

Automation updated

​Automation
PATCH/automations/{id}
curl -X PATCH "https://api.omnisocials.com/v1/automations/100000004" \ -H "Authorization: Bearer $OMNISOCIALS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"status": "paused"}'
Example Request Body
{ "status": "paused" }
json
application/json
Example Responses
{ "data": { "id": "318", "type": "comment_to_dm", "platform": "instagram", "status": "active", "name": "Guide DM", "post_id": "1024", "instagram_media_id": "17912345678901234", "facebook_post_id": "104857600123456_987654321098765", "post": {}, "trigger": { "kinds": [ "comment" ], "scope": "post", "keywords": [ "guide" ], "match": "word" }, "actions": { "dm": { "text": "Here is the guide 👇", "button": { "title": "Get the guide", "url": "https://example.com/guide" } }, "public_reply": { "enabled": true, "variations": [ "Sent you a DM!" ] }, "follow_gate": { "enabled": true, "first_message": { "text": "Tap the button and I'll send you the link 👇", "button": "Send me the link" }, "not_following": { "text": "Tap the button and I'll send you the link 👇", "button": "Send me the link" } }, "follow_up": { "enabled": true, "text": "Did the guide help? Book a free call here 👇", "delay_hours": 23, "button": { "title": "Book a call", "url": "https://example.com/call" }, "tap": { "text": "Tap the button and I'll send you the link 👇", "button": "Send me the link" } } }, "limits": { "max_sends": 500, "stop_at": "2026-11-30T23:00:00.000Z" }, "stats": { "matched": 120, "sent": 112, "skipped": 6, "failed": 2, "followed": 41, "follow_ups_sent": 37, "follow_ups_skipped": 9, "linked": 80, "clicked": 31, "follow_up_clicks": 6, "answered": 14, "last_event_at": "2026-10-21T15:00:12.000Z" }, "created_at": "2026-10-20T14:32:10.000Z", "updated_at": "2026-10-20T14:35:42.000Z" } }
json
application/json

List automation events

GET
https://api.omnisocials.com/v1
/automations/{id}/events

One row per comment or message the automation acted on, newest first: the DM that was sent, an answer that waits in the queue, a skip with its reason, or a failure with the platform's error. counts gives the total per outcome. On Facebook person.username is the person's name and kind is comment or dm; on X kind is always dm and opted_out rows mark people who replied STOP. With Follow first (Instagram), waiting rows are people who were asked to follow and have no link yet, and the rows the gate handled carry follow_gate (taps, whether Instagram confirmed the follow, and whether the follow came after the ask). With a follow-up, a waiting row on Instagram can also be a person who got the tap step and has not tapped yet (follow_gate.mode: tap), and each answer that went out carries follow_up: scheduled with its due_at, sent, or skipped with the reason (no tap or message in Meta's 24-hour window, a stop, a team member's own reply). Each row also says whether the answer carried a counted link button (linked), when the person first tapped it (clicked_at), when they wrote back (replied_at), and, for a keyword matched as another form, which word they wrote (match). filter=clicked lists the people who tapped the link button, filter=answered the people who wrote back. For the totals per step over a period, use GET /automations/{id}/results.

List automation events › path Parameters

id
​string · required

List automation events › query Parameters

outcome
​string · enum

queued = waits for room under the channel's send cap (at most an hour on X, about a day on Instagram and Facebook); opted_out = the person wrote STOP (X); waiting = Follow first asked the person to follow, or the tap step of a follow-up waits for the tap; no link yet (Instagram); not_sent = skipped and failed together (the people who got no DM, the dashboard's Not sent tab).

Enum values:
sent
queued
skipped
opted_out
failed
pending
waiting
not_sent
filter
​string · enum

clicked = only the people who tapped the DM's link button (clicked_at set); answered = only the people who wrote back within 7 days of the answer (replied_at set). Combines with outcome.

Enum values:
clicked
answered
limit
​integer · max: 100
Default: 25
offset
​integer
Default: 0

List automation events › Responses

Activity

​AutomationEvent[]
counts
​object

Rows per outcome over the whole log (not narrowed by outcome or filter), e.g. { "sent": 12, "skipped": 3, "waiting": 4, "clicked": 5, "answered": 2 } (waiting = rows that wait for a tap: Follow first, or the tap step of a follow-up). clicked and answered are the rows the two filters return; they overlap the outcomes, so do not add them to the rest.

​Pagination
GET/automations/{id}/events
curl "https://api.omnisocials.com/v1/automations/100000004/events?outcome=sent" \ -H "Authorization: Bearer $OMNISOCIALS_API_KEY"
Example Responses
{ "data": [ { "id": "id", "automation_id": "automation_id", "kind": "comment", "outcome": "sent", "reason": "reason", "reason_label": "reason_label", "person": { "id": "id", "username": "username" }, "trigger_id": "trigger_id", "trigger_text": "trigger_text", "message": "message", "public_reply": "public_reply", "platform_message_id": "platform_message_id", "follow_gate": { "mode": "follow", "state": "waiting", "asked_at": "2024-08-25T15:00:00Z", "taps": 1, "followed": true, "checked": true, "after_ask": true }, "follow_up": { "state": "scheduled", "due_at": "2024-08-25T15:00:00Z", "sent_at": "2024-08-25T15:00:00Z", "reason": "reason", "reason_label": "reason_label", "platform_message_id": "platform_message_id", "clicked_at": "2024-08-25T15:00:00Z" }, "linked": true, "clicked_at": "2024-08-25T15:00:00Z", "replied_at": "2024-08-25T15:00:00Z", "match": { "keyword": "link", "word": "LINKS" }, "created_at": "2024-08-25T15:00:00Z", "sent_at": "2024-08-25T15:00:00Z" } ], "counts": {}, "pagination": { "total": 42, "limit": 20, "offset": 0, "has_more": true } }
json
application/json

Get automation results

GET
https://api.omnisocials.com/v1
/automations/{id}/results

The results of a comment-to-DM automation in a period, the numbers of the dashboard's Results tab: each step of the setup with its count (matched comments and messages, answers sent, button taps of Follow first or the tap step, links sent after the tap, follows after the ask, answers with a counted link button and the ones tapped, follow-ups sent and tapped, people who wrote back within 7 days, keywords matched as another form, public replies), all comments on the post in the period, why people got no DM, and the answers sent and link taps per day. Every number comes from the automation's events created in the period; the answer names no person (use GET /automations/{id}/events with filter for the people).

Get automation results › path Parameters

id
​string · required

Get automation results › query Parameters

period
​string · enum

7d, 30d (default) or all (since the automation was created, per week in series). Another value answers 400 validation_error.

Enum values:
7d
30d
all
Default: 30d
time_zone
​string

The IANA time zone the days of series are counted in, e.g. Europe/Amsterdam. Default UTC; an unknown name counts in UTC (the answer's time_zone says which one was used).

Example: Europe/Amsterdam

Get automation results › Responses

Results

​AutomationResults

The results of one automation in a period. Every number comes from the automation's events (one per matched comment or message) created in the period, so the rates of the dashboard's Results tab are plain divisions: got_dm / commented, clicked / linked, answered / got_dm, follow_up_clicked / follow_ups, and got_dm / comments for the share of all comments on the post.

GET/automations/{id}/results
curl "https://api.omnisocials.com/v1/automations/100000004/results?period=7d&time_zone=Europe%2FAmsterdam" \ -H "Authorization: Bearer $OMNISOCIALS_API_KEY"
Example Responses
{ "data": { "period": "7d", "from": "2024-08-25T15:00:00Z", "to": "2024-08-25T15:00:00Z", "unit": "day", "time_zone": "Europe/Amsterdam", "steps": { "commented": 412, "got_dm": 398, "tapped": 0, "got_link": 0, "followed": 0, "linked": 390, "clicked": 151, "follow_ups": 0, "follow_up_clicked": 0, "answered": 37, "variants": 58, "public_replies": 395 }, "comments": 3120, "not_sent": [ { "label": "Already got this DM", "outcome": "skipped", "count": 12 } ], "series": [ { "day": "2026-11-24", "sent": 61, "clicked": 23, "commented": 64, "answered": 5, "not_sent": 3, "tapped": 0, "got_link": 0, "follow_ups": 0 } ], "posts": [ { "post_id": "88123", "day": "2026-11-21", "platform": "instagram", "kind": "reel", "title": "Comment GUIDE and I'll send you the guide", "thumbnail": "thumbnail" } ] } }
json
application/json

Get one person's story

GET
https://api.omnisocials.com/v1
/automations/{id}/events/{event_id}/story

One person's whole story with the automation, the dashboard's person panel: what they commented or wrote, the post the comment is on, the DM the automation sends, and the DM conversation with them after it (the answer, the link, the follow-up, their replies and the team's). Take event_id from GET /automations/{id}/events (filter=clicked or filter=answered lists the people who tapped or wrote back). The DM texts (messages, and said for a DM or story reply) need the inbox:read scope (OAuth: the social inbox permission); without it they are null and the rest is returned.

Get one person's story › path Parameters

id
​string · required
event_id
​string · required

The event's id from GET /automations/{id}/events.

Get one person's story › Responses

The story

​AutomationStory

One person's story with an automation: the event (its outcome and the times of the tap, the link, the follow-up and the answer), what they wrote, the post they commented on, the DM the automation sends, and the DM conversation with them from the comment to 8 days later (the 7-day answer window and a day for the follow-up).

GET/automations/{id}/events/{event_id}/story
curl "https://api.omnisocials.com/v1/automations/<id>/events/<event_id>/story" \ -H "Authorization: Bearer $OMNISOCIALS_API_KEY"
Example Responses
{ "data": { "event_id": "5521", "event": { "id": "id", "automation_id": "automation_id", "kind": "comment", "outcome": "sent", "reason": "reason", "reason_label": "reason_label", "person": { "id": "id", "username": "username" }, "trigger_id": "trigger_id", "trigger_text": "trigger_text", "message": "message", "public_reply": "public_reply", "platform_message_id": "platform_message_id", "follow_gate": { "mode": "follow", "state": "waiting", "asked_at": "2024-08-25T15:00:00Z", "taps": 1, "followed": true, "checked": true, "after_ask": true }, "follow_up": { "state": "scheduled", "due_at": "2024-08-25T15:00:00Z", "sent_at": "2024-08-25T15:00:00Z", "reason": "reason", "reason_label": "reason_label", "platform_message_id": "platform_message_id", "clicked_at": "2024-08-25T15:00:00Z" }, "linked": true, "clicked_at": "2024-08-25T15:00:00Z", "replied_at": "2024-08-25T15:00:00Z", "match": { "keyword": "link", "word": "LINKS" }, "created_at": "2024-08-25T15:00:00Z", "sent_at": "2024-08-25T15:00:00Z" }, "kind": "comment", "said": "GUIDE please", "post": { "caption": "caption", "thumbnail": "thumbnail" }, "dm": { "text": "text", "button": "button" }, "messages": [ { "id": "id", "direction": "incoming", "text": "text", "at": "2024-08-25T15:00:00Z", "automation": true } ] } }
json
application/json

InboxFeature requests