A channel is a login with a platform: Facebook, Instagram, Threads or TikTok. What the API can do for a channel depends on the permissions the person granted when they connected it, and on the rules of the platform. This page tells you what to expect.
What each channel type needs
To publish, a channel needs these permissions. A person grants them when they connect the channel in IQCore.
| Channel type | Publishing needs | Other features |
|---|---|---|
| Facebook Page | pages_manage_posts |
Comments need pages_manage_engagement and pages_read_engagement. Messages need pages_messaging. |
| Instagram, connected through Facebook login | instagram_content_publish (the Instagram account is linked to a Facebook Page) |
Comments need instagram_manage_comments. Messages need instagram_manage_messages. |
| Instagram, connected through Instagram login | instagram_business_content_publish |
Comments need instagram_business_manage_comments. Messages need instagram_business_manage_messages. |
| Threads | threads_content_publish |
Replies need threads_read_replies and threads_manage_replies. |
| TikTok | video.publish |
See TikTok. |
Insights (post and channel statistics) are not available through the API yet. IQCore has to get the insights permissions approved by Meta first, so Meta insights are not part of v1 today.
See what a channel has
GET /channels and GET /channels/{id} (reference) show, for each channel:
| Field | Meaning |
|---|---|
status |
connected, expired, needs_reconnect, revoked or error. Anything but connected must be reconnected in IQCore. |
capabilities |
For publish, comments, messages and insights: available, requires_permission, unavailable or coming_soon. |
granted_permissions |
The platform permissions this channel's features need that the login granted. |
missing_permissions |
The ones the login did not grant. |
token_expires_at |
When the login expires, or null if no expiry is known. |
reconnect_url |
A page in the IQCore dashboard where a person reconnects the channel. |
reconnect_url is not an OAuth link. It opens a dashboard page, and a person must be logged in to IQCore. IQCore never gives your code a token or a sign-in link for Facebook, Instagram, Threads or TikTok. Show the link to a person, for example in an e-mail or a message from your n8n flow.
curl "https://iqcore.ai/api/public/v1/channels/$CHANNEL_ID" -H "Authorization: Bearer $IQCORE_KEY"const channel = await (await fetch(`https://iqcore.ai/api/public/v1/channels/${channelId}`, {
headers: { Authorization: `Bearer ${process.env.IQCORE_KEY}` },
})).json();
if (channel.status !== "connected" || channel.missing_permissions.length) {
console.log("Ask a person to reconnect:", channel.reconnect_url);
}import os
import requests
channel = requests.get(
f"https://iqcore.ai/api/public/v1/channels/{channel_id}",
headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}"},
timeout=30,
).json()
if channel["status"] != "connected" or channel["missing_permissions"]:
print("Ask a person to reconnect:", channel["reconnect_url"])Logins expire
Platform logins do not last forever. IQCore renews them in the background where the platform allows it. When one cannot be renewed, you get events:
channel.expiring: the login ends within 7 days, or IQCore could not renew it. The data hasexpires_atand areason.channel.needs_reconnect: the channel stopped working and must be reconnected now.channel.connectedandchannel.disconnectedshow the other changes.
React to them by telling a person to open reconnect_url. See Events.
A dry run warns about a login that is expired or expiring within 3 days.
TikTok
TikTok sets strict rules for apps that post for a creator. IQCore follows them, and that changes what the API can do.
- The creator chooses, every time. TikTok requires that the creator picks the privacy level (with no default) and turns on any interaction settings themselves, on a screen that shows their current TikTok profile, before anything is sent. This screen is in IQCore. The API cannot set privacy or interactions for them.
- So
approve,publishandschedulefor a TikTok target answer202withrequires_action: tiktok_post_settingsuntil a person has confirmed the post's settings on IQCore's TikTok screen. This holds in every approval mode, also for a live key of an owner inapimode. Each TikTok target showstiktok.settings_confirmedandtiktok.settings_url. - Not audited yet. TikTok limits apps that it has not audited: they can post only privately (
SELF_ONLY), and for a small number of users a day. IQCore's app has not been audited yet, so TikTok through the API has the same limits as TikTok in the dashboard. - Inbox. TikTok can also receive a post as a draft that the creator finishes in the TikTok app. That target gets the status
sent_to_inbox(post eventpost.sent_to_inbox). - Rates. TikTok limits how often one login can start a post (6 requests per minute) and how many posts a creator can make a day.
- TikTok is posted for the same creator who owns the channel: their key, their channel, their own tools.
Use the 202 to build a good flow: create the post, then show the person the settings_url and wait for post.approved or post.published.
- Instagram accepts at most 100 API-published posts in a moving 24-hour period per account. A post over the limit fails with a rate-limit error. A dry run does not check this limit.
- IQCore prepares pictures for Instagram (a fresh JPEG, padded if the ratio is outside 4:5 to 1.91:1) and needs one picture or video for every Instagram post.
- Stories are not supported.
Threads and Facebook
Threads posts are at most 500 characters. A link you send counts in those characters. Facebook accepts JPEG and PNG as they are, and turns WebP and GIF into JPEG. See Media for every file rule.
Use IQCore's data only for the customer
A customer's key returns that customer's own data. Your tools and agencies that use it act for the customer. You must not sell it, or use it for anything but managing the customer's own accounts, and you must delete it on request. These rules come from the platforms and are part of the API terms (see the API terms, a draft that is being reviewed; the beta runs on the general Terms & Conditions).