The events feed is a list of things that happened in your organization: a post was approved, a post was published, a channel needs to be reconnected, credits are low. Read it instead of asking about every post again and again.
GET /events (reference) needs the scope social.read.
Reading the feed
| Parameter | Meaning |
|---|---|
since |
The next_cursor of the last answer, or an event's own cursor. A cursor starts with evc_. Without it, you start from the oldest event IQCore still keeps. |
types |
Only these event types, comma separated: types=post.published,post.failed. |
limit |
1 to 100 (default 50). |
include_sandbox |
A live key also gets the events of test-key (sandbox) posts. A test key always sees them. |
organization_id |
Which organization, if your key has several. |
The answer is {data, next_cursor, has_more}. Each event looks like this:
{
"id": "5f0e2f3a-7b1c-4c75-8d8e-0c2d6f4b7a11",
"type": "post.published",
"created_at": "2026-12-20T09:00:04+00:00",
"subject": { "type": "post", "id": "0d9c2d9a-1e8b-4b1e-9a77-2f1c4c3a8e55" },
"data": {
"post_id": "0d9c2d9a-1e8b-4b1e-9a77-2f1c4c3a8e55",
"target_id": "9b3a7a42-4a63-4e22-9b6f-6b7d9c0a1f10",
"channel_id": "c4c1f2de-2f2b-47f9-9a4e-0f4c6d8f1a77",
"platform": "instagram",
"target_status": "published",
"previous_status": "publishing",
"published_at": "2026-12-20T09:00:04+00:00",
"platform_post_id": "17900000000000000",
"permalink": "https://www.instagram.com/p/XXXX/"
},
"sandbox": false,
"cursor": "evc_XXXX"
}An event about a post is about one target (one channel) of the post. post_id is the id you get from posts_create and posts_get; target_id is the targets[].id.
curl "https://iqcore.ai/api/public/v1/events?since=evc_XXXX&limit=100" -H "Authorization: Bearer $IQCORE_KEY"const q = new URLSearchParams({ limit: "100" });
if (cursor) q.set("since", cursor);
const res = await fetch(`https://iqcore.ai/api/public/v1/events?${q}`, {
headers: { Authorization: `Bearer ${process.env.IQCORE_KEY}` },
});
const feed = await res.json();import os
import requests
params = {"limit": 100}
if cursor:
params["since"] = cursor
feed = requests.get("https://iqcore.ai/api/public/v1/events", params=params, timeout=30,
headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}"}).json()The polling loop
- Start with no cursor, or the cursor you saved.
- Call
GET /eventswithsince. - Handle every event in
data. - Then save
next_cursor. Ifhas_moreistrue, go back to step 2 at once. If not, wait (a minute is plenty) and go to step 2.
Save the cursor only after you handled the events. If your code crashes in between, it reads the same page again. Events have a stable id: if a repeat could do harm, drop events whose id you have seen.
Keep one cursor per organization.
Ordering
IQCore gives you each event exactly once, in order, when you follow next_cursor. A cursor never moves past an event that has not been committed yet, so nothing is skipped, even when two changes happen at the same moment.
One rare exception: an event is written just after the change it describes. If IQCore's server stops between the two, the change happened but its event does not exist (at-most-once for that one event). It is rare, but it is why you should reconcile once a day with GET /posts?updated_since=. See Pagination.
Events are recorded only for organizations that use the API (a key was made or used in the last 30 days). An organization that stops using the API for more than 30 days stops recording until it comes back.
Retention and 410
IQCore keeps events for 30 days. A cursor older than the oldest kept event answers 410 cursor_expired:
{
"error": {
"type": "invalid_request",
"code": "cursor_expired",
"message": "The cursor is older than the events kept.",
"param": null,
"request_id": "req_a1b2c3d4e5f6a1b2c3d4e5f6",
"doc_url": "https://iqcore.ai/developers/docs/errors#cursor_expired",
"oldest_cursor": "evc_XXXX"
}
}Start again from oldest_cursor, and reconcile what you missed with GET /posts?updated_since=<the last time you were sure>.
A cursor that belongs to another organization, was changed by hand or is invalid answers 422 validation with param: since.
Which events you can read
The operation needs social.read, and you see an event only when your key has the scope for its type:
| Events | Scope needed |
|---|---|
post.*, channel.* |
social.read |
credits.* |
account.read (always on) |
media.* |
media.read |
No personal data
data holds ids, statuses, codes and times only. It never has a caption, a first comment, a channel name or handle, an error text from a platform, a token or a person's data. To read the content, call posts_get or channels_get with the ids from the event. post.failed gives an error_code; posts_get gives the reason in plain words. data.permalink and data.platform_post_id come from the platform: escape them before you show them, and link only to an https:// permalink.
Event types
| Type | When | Scope | data keys |
|---|---|---|---|
post.created | A post target was created (web calendar, app, AI Chat, a posting schedule, CSV or the API). | social.read | post_id, target_id, channel_id, platform, target_status, previous_status, source, scheduled_at |
post.updated | The content or time of a post target changed (fields lists what changed, never the values). | social.read | post_id, target_id, channel_id, platform, target_status, previous_status, fields, scheduled_at |
post.deleted | A post target was deleted. | social.read | post_id, target_id, channel_id, platform, target_status, previous_status |
post.approval_requested | Someone asked a person to approve the post's drafts in IQCore. | social.read | post_id, requested_by_api_key |
post.approved | A target was approved (it is now scheduled for scheduled_at). | social.read | post_id, target_id, channel_id, platform, target_status, previous_status, scheduled_at |
post.unapproved | A scheduled target went back to draft. | social.read | post_id, target_id, channel_id, platform, target_status, previous_status, scheduled_at |
post.publishing | Publishing of a target started. | social.read | post_id, target_id, channel_id, platform, target_status, previous_status |
post.published | A target is live on its platform. | social.read | post_id, target_id, channel_id, platform, target_status, previous_status, published_at, platform_post_id, permalink |
post.sent_to_inbox | A TikTok target was delivered to the creator's TikTok inbox (not public until the creator posts it). | social.read | post_id, target_id, channel_id, platform, target_status, previous_status |
post.failed | A target could not be published (or its draft could not be written). | social.read | post_id, target_id, channel_id, platform, target_status, previous_status, error_code |
post.cancelled | A target was cancelled (skipped): nothing is published for it. | social.read | post_id, target_id, channel_id, platform, target_status, previous_status |
channel.connected | A channel was connected or reconnected. | social.read | channel_id, platform, status, previous_status |
channel.needs_reconnect | A channel lost its login: a person must reconnect it (reconnect_url on channels_get). | social.read | channel_id, platform, status, previous_status |
channel.expiring | A channel's login ends within 7 days and cannot be renewed automatically. Once per channel and expiry date. | social.read | channel_id, platform, expires_at, reason |
channel.disconnected | A channel was disconnected (by a person or because the platform withdrew the consent). | social.read | channel_id, platform, status, previous_status |
media.ready | A media item finished processing and can be used (P1.5). | media.read | media_id, kind, status |
media.failed | A media item could not be imported or processed (P1.5). | media.read | media_id, kind, status, error_code |
credits.low | The organization's credits fell below the low-balance threshold. | account.read | balance, threshold |
credits.empty | The organization's credits are used up. | account.read | balance |
Clients must ignore event types they do not know. New types can be added (see Versioning). If you pass types, you only get the ones you ask for.
Next: Post states and approval, n8n.