Base URL https://iqcore.ai/api/public/v1. Every request needs Authorization: Bearer iqk_… (authentication); errors follow one envelope.
Inbox counts
GET /inbox/counts
How many Inbox conversations (WhatsApp and social comments / messages) are open, assigned to me, unassigned, need a person, are snoozed, and my unread @mentions. Optional channel filter.
Parameters
channelquery string — Only this channel (social = every social channel, messenger = Facebook messages). One of:whatsapp,facebook,instagram,threads,messenger,social.organization_idquery string — The organization to act in. Required when the key works in several organizations.
Response 200
countsobject requiredopeninteger required — Open conversations (not snoozed). min 0mineinteger required — Open and assigned to the key's login. min 0unassignedinteger required min 0needs_youinteger required — Open and waiting for a person. min 0snoozedinteger required min 0mentionsinteger required — Conversations with an unread @mention of the key's login. min 0
channelstring — The channel filter, when one was given.
Errors: 400 401 403 404 422 429 500 — codes
Example
curl "https://iqcore.ai/api/public/v1/inbox/counts" \
-H "Authorization: Bearer $IQCORE_KEY"const res = await fetch("https://iqcore.ai/api/public/v1/inbox/counts", {
headers: { Authorization: `Bearer ${process.env.IQCORE_KEY}` },
});
console.log(res.status, await res.json());import os
import requests
res = requests.get(
"https://iqcore.ai/api/public/v1/inbox/counts",
headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}"},
)
print(res.status_code, res.json()){
"counts": {
"open": 1,
"mine": 1,
"unassigned": 1,
"needs_you": 1,
"snoozed": 1,
"mentions": 1
},
"channel": "channel"
}Inbox settings
GET /inbox/settings
How the Inbox assigns conversations: auto-assignment mode (off, round_robin, fewest_open), my availability (available or away), and the team members with role, availability and whether they can own conversations.
Parameters
organization_idquery string — The organization to act in. Required when the key works in several organizations.
Response 200
auto_assignstring required — How new conversations are assigned. One of:off,round_robin,fewest_open.my_statusstring required — The availability of the key's login. One of:available,away.membersarray of object required max items 50namestring requiredrolestring required — owner, admin, member or viewer.statusstring required One of:available,away.can_ownboolean required — May own (and answer) conversations.meboolean required — The key's own login.
Errors: 400 401 403 404 422 429 500 — codes
Example
curl "https://iqcore.ai/api/public/v1/inbox/settings" \
-H "Authorization: Bearer $IQCORE_KEY"const res = await fetch("https://iqcore.ai/api/public/v1/inbox/settings", {
headers: { Authorization: `Bearer ${process.env.IQCORE_KEY}` },
});
console.log(res.status, await res.json());import os
import requests
res = requests.get(
"https://iqcore.ai/api/public/v1/inbox/settings",
headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}"},
)
print(res.status_code, res.json()){
"auto_assign": "off",
"my_status": "available",
"members": [
{
"name": "Summer sale",
"role": "role",
"status": "available",
"can_own": false,
"me": false
}
]
}