Contacts — API reference

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

Contacts summary

GET /contacts/summary

  • Operation contacts_summary
  • Scope contacts.read
  • Lowest role viewer
  • Read only

Counts of the account's contacts: total, the plan limit (null = unlimited) and how many can still be added, with consent, from ads, per channel (contacts, opted in, opted out) and the number of tags. No names or addresses.

Parameters

  • organization_id query string — The organization to act in. Required when the key works in several organizations.

Response 200

  • total integer required min 0
  • limit integer | null required — The plan's contact limit (null = unlimited).
  • remaining integer | null required — Contacts that can still be added (null = unlimited). min 0
  • consented integer required — Contacts with recorded consent. min 0
  • from_ads integer required — Contacts that came from an ad. min 0
  • channels array of object required
    • channel string required
    • contacts integer required min 0
    • opted_in integer required min 0
    • opted_out integer required min 0
  • tags integer required — Number of contact tags. min 0

Errors: 400 401 403 404 422 429 500 — codes

Example

curl
curl "https://iqcore.ai/api/public/v1/contacts/summary" \
  -H "Authorization: Bearer $IQCORE_KEY"
JavaScript
const res = await fetch("https://iqcore.ai/api/public/v1/contacts/summary", {
  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/contacts/summary",
    headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}"},
)
print(res.status_code, res.json())
json
{
    "total": 1,
    "limit": 1,
    "remaining": 1,
    "consented": 1,
    "from_ads": 1,
    "channels": [
        {
            "channel": "channel",
            "contacts": 1,
            "opted_in": 1,
            "opted_out": 1
        }
    ],
    "tags": 1
}

Contact tags

GET /contacts/tags

  • Operation contact_tags_list
  • Scope contacts.read
  • Lowest role viewer
  • Read only

The account's contact tags, by name: id, name, colour and how many contacts carry each tag. Use a tag name to filter contacts_search.

Parameters

  • organization_id query string — The organization to act in. Required when the key works in several organizations.

Response 200

  • tags array of object required max items 100
    • id string required — The tag id.
    • name string required
    • color string required One of: slate, sky, violet, rose, amber, emerald, orange, pink, teal.
    • contacts integer required — Contacts with this tag. min 0

Errors: 400 401 403 404 422 429 500 — codes

Example

curl
curl "https://iqcore.ai/api/public/v1/contacts/tags" \
  -H "Authorization: Bearer $IQCORE_KEY"
JavaScript
const res = await fetch("https://iqcore.ai/api/public/v1/contacts/tags", {
  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/contacts/tags",
    headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}"},
)
print(res.status_code, res.json())
json
{
    "tags": [
        {
            "id": "<id>",
            "name": "Summer sale",
            "color": "slate",
            "contacts": 1
        }
    ]
}

Contact

GET /contacts/{id}

  • Operation contact_get
  • Scope contacts.read
  • Lowest role viewer
  • Read only, personal data

One contact of the account by its id (from contacts_search): name, e-mail, phone, gender, source, consent, channels with opt-in, tags, the ad it came from, last activity and the team notes (shortened).

Parameters

  • id path string required — The contact id (uuid). max length 64
  • organization_id query string — The organization to act in. Required when the key works in several organizations.

Response 200

  • id string required — The contact id.
  • name string
  • email string
  • phone string
  • gender string
  • source string — Where the contact came from.
  • consent_at string — When consent was recorded.
  • consent_source string
  • channels array of object required — The channels with the contact's opt-in state.
    • channel string required One of: email, sms, whatsapp, telegram, instagram, messenger, facebook, tiktok.
    • opt_in string required — opted_in, opted_out, marketing_stopped or unknown.
  • tags array of string required — Tag names.
  • ad object — The first ad the contact came from.
    • headline string required max length 120
    • at string required
  • notes string — The team's notes (shortened; text people typed). max length 500
  • last_interaction_at string
  • created_at string

Errors: 400 401 403 404 422 429 500 — codes

Example

curl
curl "https://iqcore.ai/api/public/v1/contacts/<id>" \
  -H "Authorization: Bearer $IQCORE_KEY"
JavaScript
const res = await fetch("https://iqcore.ai/api/public/v1/contacts/<id>", {
  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/contacts/<id>",
    headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}"},
)
print(res.status_code, res.json())
json
{
    "id": "<id>",
    "name": "Summer sale",
    "email": "email",
    "phone": "phone",
    "gender": "gender",
    "source": "source",
    "consent_at": "2026-12-05T09:00:00Z",
    "consent_source": "consent_source",
    "channels": [
        {
            "channel": "email",
            "opt_in": "opt_in"
        }
    ],
    "tags": [
        "tag"
    ],
    "ad": {
        "headline": "headline",
        "at": "at"
    },
    "notes": "notes",
    "last_interaction_at": "2026-12-05T09:00:00Z",
    "created_at": "2026-12-05T09:00:00Z"
}