Inbox — API reference

Base URL https://iqcore.ai/api/public/v1. Every request needs Authorization: Bearer iqk_… (authentication); errors follow one envelope.

Inbox counts

GET /inbox/counts

  • Operation inbox_counts
  • Scope inbox.read
  • Lowest role viewer
  • Read only
  • MCP 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

  • channel query string — Only this channel (social = every social channel, messenger = Facebook messages). One of: whatsapp, facebook, instagram, threads, messenger, social.
  • organization_id query string — The organization to act in. Required when the key works in several organizations.

Response 200

  • counts object required
    • open integer required — Open conversations (not snoozed). min 0
    • mine integer required — Open and assigned to the key's login. min 0
    • unassigned integer required min 0
    • needs_you integer required — Open and waiting for a person. min 0
    • snoozed integer required min 0
    • mentions integer required — Conversations with an unread @mention of the key's login. min 0
  • channel string — The channel filter, when one was given.

Errors: 400 401 403 404 422 429 500 — codes

Example

curl
curl "https://iqcore.ai/api/public/v1/inbox/counts" \
  -H "Authorization: Bearer $IQCORE_KEY"
JavaScript
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());
Python
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())
json
{
    "counts": {
        "open": 1,
        "mine": 1,
        "unassigned": 1,
        "needs_you": 1,
        "snoozed": 1,
        "mentions": 1
    },
    "channel": "channel"
}

Inbox settings

GET /inbox/settings

  • Operation inbox_settings_get
  • Scope settings.read
  • Lowest role viewer
  • Read only

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_id query string — The organization to act in. Required when the key works in several organizations.

Response 200

  • auto_assign string required — How new conversations are assigned. One of: off, round_robin, fewest_open.
  • my_status string required — The availability of the key's login. One of: available, away.
  • members array of object required max items 50
    • name string required
    • role string required — owner, admin, member or viewer.
    • status string required One of: available, away.
    • can_own boolean required — May own (and answer) conversations.
    • me boolean required — The key's own login.

Errors: 400 401 403 404 422 429 500 — codes

Example

curl
curl "https://iqcore.ai/api/public/v1/inbox/settings" \
  -H "Authorization: Bearer $IQCORE_KEY"
JavaScript
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());
Python
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())
json
{
    "auto_assign": "off",
    "my_status": "available",
    "members": [
        {
            "name": "Summer sale",
            "role": "role",
            "status": "available",
            "can_own": false,
            "me": false
        }
    ]
}