Base URL https://iqcore.ai/api/public/v1. Every request needs Authorization: Bearer iqk_… (authentication); errors follow one envelope.
WhatsApp campaigns
GET /whatsapp/campaigns
The account's WhatsApp campaigns, running ones first: id, name, status, category, number, template, counts (recipients, sent, delivered, read, replied, clicked, failed, skipped, opted out), dates and the pause reason. Filter active, draft or done.
Parameters
statusquery string — Only these campaigns (default all). One of:all,active,draft,done.limitquery integer — At most this many (default 10). min 1 · max 20organization_idquery string — The organization to act in. Required when the key works in several organizations.
Response 200
campaignsarray of object required max items 20idstring required — The campaign id.namestring requiredstatusstring required — draft, scheduled, queued, sending, paused, completed, cancelled or failed.categorystring — The template category (marketing, utility …).numberstring — The WhatsApp number it sends from.templatestring — The template: name (language).countsobject required — total = recipients; the others count recipients per state.totalinteger required min 0pending_countinteger required min 0sent_countinteger required min 0delivered_countinteger required min 0read_countinteger required min 0replied_countinteger required min 0clicked_countinteger required min 0failed_countinteger required min 0skipped_countinteger required min 0opted_out_countinteger required min 0
scheduled_atstring — When it is planned to start.started_atstring — When sending started.finished_atstring — When sending finished.pause_reasonstring — Why it is paused.held_by_iqcoreboolean — Present (true) when IQCore holds the campaign.
Errors: 400 401 403 404 422 429 500 — codes
Example
curl "https://iqcore.ai/api/public/v1/whatsapp/campaigns" \
-H "Authorization: Bearer $IQCORE_KEY"const res = await fetch("https://iqcore.ai/api/public/v1/whatsapp/campaigns", {
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/whatsapp/campaigns",
headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}"},
)
print(res.status_code, res.json()){
"campaigns": [
{
"id": "<id>",
"name": "Summer sale",
"status": "status",
"category": "category",
"number": "number",
"template": "template",
"counts": {
"total": 1,
"pending_count": 1,
"sent_count": 1,
"delivered_count": 1,
"read_count": 1,
"replied_count": 1,
"clicked_count": 1,
"failed_count": 1,
"skipped_count": 1,
"opted_out_count": 1
},
"scheduled_at": "2026-12-05T09:00:00Z",
"started_at": "2026-12-05T09:00:00Z",
"finished_at": "2026-12-05T09:00:00Z",
"pause_reason": "pause_reason",
"held_by_iqcore": false
}
]
}WhatsApp campaign
GET /whatsapp/campaigns/{id}
One WhatsApp campaign by its id (from whatsapp_campaigns_list): status, template, counts (sent, delivered, read, replied, failed …), schedule, quiet hours, the cost estimate, pause details and the failures grouped by reason. No recipients.
Parameters
idpath string required — The campaign id (uuid). max length 64organization_idquery string — The organization to act in. Required when the key works in several organizations.
Response 200
idstring required — The campaign id.namestring requiredstatusstring required — draft, scheduled, queued, sending, paused, completed, cancelled or failed.categorystring — The template category (marketing, utility …).numberstring — The WhatsApp number it sends from.templatestring — The template: name (language).countsobject required — total = recipients; the others count recipients per state.totalinteger required min 0pending_countinteger required min 0sent_countinteger required min 0delivered_countinteger required min 0read_countinteger required min 0replied_countinteger required min 0clicked_countinteger required min 0failed_countinteger required min 0skipped_countinteger required min 0opted_out_countinteger required min 0
scheduled_atstring — When it is planned to start.started_atstring — When sending started.finished_atstring — When sending finished.pause_reasonstring — Why it is paused.held_by_iqcoreboolean — Present (true) when IQCore holds the campaign.timezonestring — The time zone of the schedule and the quiet hours.quiet_hoursboolean required — No sends at night in the recipient's time.estimateobjecttotalnumber | null required — Meta's estimated cost.currencystring | null requiredcompleteboolean required — Every recipient could be priced.
pause_detailstring — Details of the pause (may quote Meta). max length 200launched_atstringpaused_atstringcancelled_atstringfailuresarray of object required — Failed and skipped recipients grouped by reason (counts only). max items 15reasonstring required — A skip reason, a Meta error code, rate_limit or other.statusstring required — failed or skipped.countinteger required min 0
Errors: 400 401 403 404 422 429 500 — codes
Example
curl "https://iqcore.ai/api/public/v1/whatsapp/campaigns/<id>" \
-H "Authorization: Bearer $IQCORE_KEY"const res = await fetch("https://iqcore.ai/api/public/v1/whatsapp/campaigns/<id>", {
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/whatsapp/campaigns/<id>",
headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}"},
)
print(res.status_code, res.json()){
"id": "<id>",
"name": "Summer sale",
"status": "status",
"category": "category",
"number": "number",
"template": "template",
"counts": {
"total": 1,
"pending_count": 1,
"sent_count": 1,
"delivered_count": 1,
"read_count": 1,
"replied_count": 1,
"clicked_count": 1,
"failed_count": 1,
"skipped_count": 1,
"opted_out_count": 1
},
"scheduled_at": "2026-12-05T09:00:00Z",
"started_at": "2026-12-05T09:00:00Z",
"finished_at": "2026-12-05T09:00:00Z",
"pause_reason": "pause_reason",
"held_by_iqcore": false,
"timezone": "timezone",
"quiet_hours": false,
"estimate": {
"total": 1.5,
"currency": "currency",
"complete": false
},
"pause_detail": "pause_detail",
"launched_at": "2026-12-05T09:00:00Z",
"paused_at": "2026-12-05T09:00:00Z",
"cancelled_at": "2026-12-05T09:00:00Z",
"failures": [
{
"reason": "reason",
"status": "status",
"count": 1
}
]
}WhatsApp insights
GET /whatsapp/insights
WhatsApp figures of the last 7, 30 or 90 days: conversations, messages in and out, median first response (person and AI, seconds), AI and person replies, Meta's cost estimate, the template funnel (sent, delivered, read, replied) and the top templates.
Parameters
daysquery integer — Period: 7, 30 or 90 days (default 30). min 7 · max 90organization_idquery string — The organization to act in. Required when the key works in several organizations.
Response 200
daysinteger — The period in days (only when the account has no number).numbersinteger — 0: the account has no WhatsApp number (only then).periodobjectdaysinteger requiredfromstring requiredtostring required
kpisobject | null requiredconversationsinteger required — Conversations with a message in the period. min 0new_conversationsinteger required min 0new_by_customerinteger required — New conversations the customer started. min 0messages_ininteger required min 0messages_outinteger required min 0first_responseinteger | null required — Median first response of a person, in seconds. min 0first_response_aiinteger | null required — Median first response of the AI, in seconds. min 0ai_repliesinteger required min 0human_repliesinteger required min 0ai_shareinteger | null required — Percentage of replies the AI sent. min 0 · max 100costobject required — Meta's cost estimate of the billable messages.totalnumber | null requiredcurrencystring | null requiredmissinginteger required — Billable messages without a known rate. min 0billableinteger required min 0
template_funnelobjectsentinteger required min 0deliveredinteger required min 0readinteger required min 0repliedinteger required min 0clickedinteger required min 0failedinteger required min 0
top_templatesarray of object max items 5namestring | null requiredlanguagestring | null requiredcategorystring | null requiredstatusstring | null required — null for a template deleted since.sentinteger required min 0deliveredinteger required min 0readinteger required min 0repliedinteger required min 0failedinteger required min 0costnumber | null required — Meta's estimated cost (null = unknown).
Errors: 400 401 403 404 422 429 500 — codes
Example
curl "https://iqcore.ai/api/public/v1/whatsapp/insights" \
-H "Authorization: Bearer $IQCORE_KEY"const res = await fetch("https://iqcore.ai/api/public/v1/whatsapp/insights", {
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/whatsapp/insights",
headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}"},
)
print(res.status_code, res.json()){
"days": 1,
"numbers": 1,
"period": {
"days": 1,
"from": "from",
"to": "to"
},
"kpis": {
"conversations": 1,
"new_conversations": 1,
"new_by_customer": 1,
"messages_in": 1,
"messages_out": 1,
"first_response": 1,
"first_response_ai": 1,
"ai_replies": 1,
"human_replies": 1,
"ai_share": 1,
"cost": {
"total": 1.5,
"currency": "currency",
"missing": 1,
"billable": 1
}
},
"template_funnel": {
"sent": 1,
"delivered": 1,
"read": 1,
"replied": 1,
"clicked": 1,
"failed": 1
},
"top_templates": [
{
"name": "Summer sale",
"language": "language",
"category": "category",
"status": "status",
"sent": 1,
"delivered": 1,
"read": 1,
"replied": 1,
"failed": 1,
"cost": 1.5
}
]
}Save an Inbox label
POST /whatsapp/labels
Add an Inbox label (name up to 40 characters, optional color), or change an existing label: send its current name and rename_to and / or color. Labels are shared by the WhatsApp and social conversations of the Inbox. Runs at once.
Parameters
Idempotency-Keyheader string — Your own id for this request (1–100 of A–Z a–z 0–9 . _ : -). The same key and request within 24 hours returns the first answer (Idempotent-Replayed: true) instead of acting twice; the same key with another request is refused (422 idempotency_key_reused); while the first one runs, 409 request_in_progress. Refusals before any effect are not stored.
Request body application/json
namestring required — The label name (an existing one to change it). min length 1 · max length 40rename_tostring — A new name for an existing label. min length 1 · max length 40colorstring One of:slate,sky,violet,rose,amber,emerald,orange,pink,teal.organization_idstring — An organization id (uuid) of this key.
Response 200
labelstring required — The label's name now.messagestring required — A short sentence for a person.
Errors: 400 401 403 404 409 422 429 500 — codes
Example
curl -X POST "https://iqcore.ai/api/public/v1/whatsapp/labels" \
-H "Authorization: Bearer $IQCORE_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "Summer sale"
}'const res = await fetch("https://iqcore.ai/api/public/v1/whatsapp/labels", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.IQCORE_KEY}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Summer sale"
}),
});
console.log(res.status, await res.json());import os, uuid
import requests
res = requests.post(
"https://iqcore.ai/api/public/v1/whatsapp/labels",
headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"name": "Summer sale"
},
)
print(res.status_code, res.json()){
"label": "label",
"message": "message"
}WhatsApp numbers
GET /whatsapp/numbers
The account's WhatsApp numbers: id, number, display name, status (connected, restricted, needs_reconnect, disconnected), quality rating (green, yellow, red), messaging limit, display-name review status, when the connection expires, whether Meta needs a payment method, AI replies on or off and the reply mode. Fixes are on the WhatsApp page (page key whatsapp_numbers).
Parameters
organization_idquery string — The organization to act in. Required when the key works in several organizations.
Response 200
numbersarray of object required max items 20idstring required — The WhatsApp number id.numberstring required — The phone number as shown (or the display name).display_namestring | null required — The display name Meta verified.statusstring required — connected, restricted, needs_reconnect or disconnected.qualitystring | null required — Meta's quality rating: green, yellow or red.messaging_limitstring | null required — Meta's messaging limit tier.name_statusstring | null required — The display-name review status.connection_expires_atstring | null required — When the connection expires (null = it does not).payment_method_neededboolean required — Meta asks for a payment method in WhatsApp Manager.ai_repliesboolean required — The AI answers this number.reply_modestring required — auto = the AI sends its replies, approve = a person approves each one. One of:auto,approve.
Errors: 400 401 403 404 422 429 500 — codes
Example
curl "https://iqcore.ai/api/public/v1/whatsapp/numbers" \
-H "Authorization: Bearer $IQCORE_KEY"const res = await fetch("https://iqcore.ai/api/public/v1/whatsapp/numbers", {
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/whatsapp/numbers",
headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}"},
)
print(res.status_code, res.json()){
"numbers": [
{
"id": "<id>",
"number": "number",
"display_name": "display_name",
"status": "status",
"quality": "quality",
"messaging_limit": "messaging_limit",
"name_status": "name_status",
"connection_expires_at": "2026-12-05T09:00:00Z",
"payment_method_needed": false,
"ai_replies": false,
"reply_mode": "auto"
}
]
}Change WhatsApp number settings
PATCH /whatsapp/numbers/{number}
Change the AI settings of one WhatsApp number: reply mode, persona, instructions for the AI, hand-over words (comma separated), welcome message, away message, the replies to STOP / START, and business hours. Send only the fields to change; the rest keeps its value. The texts are what the WhatsApp AI says to your customers. Owner or admin only. Runs at once.
Parameters
numberpath string required — The WhatsApp number id (uuid, from whatsapp_numbers_list). max length 64Idempotency-Keyheader string — Your own id for this request (1–100 of A–Z a–z 0–9 . _ : -). The same key and request within 24 hours returns the first answer (Idempotent-Replayed: true) instead of acting twice; the same key with another request is refused (422 idempotency_key_reused); while the first one runs, 409 request_in_progress. Refusals before any effect are not stored.
Request body application/json
modestring — auto = the AI sends its replies, approve = a person approves each reply. One of:auto,approve.personastring max length 500instructionsstring max length 4000handover_keywordsstring max length 500welcome_messagestring max length 1000away_messagestring max length 1000optout_replystring max length 500optin_replystring max length 500hoursobjectenabledboolean required — Business hours on (outside them the away message is sent).timezonestring — e.g. Europe/Amsterdam. max length 64daysobject — Per weekday (sun … sat) up to 3 ranges ["09:00", "17:30"]; an empty list = closed.sunarray of array of string max items 3monarray of array of string max items 3tuearray of array of string max items 3wedarray of array of string max items 3thuarray of array of string max items 3friarray of array of string max items 3satarray of array of string max items 3
organization_idstring — An organization id (uuid) of this key.
Response 200
messagestring required — A short sentence for a person.
Errors: 400 401 403 404 409 422 429 500 — codes
Example
curl -X PATCH "https://iqcore.ai/api/public/v1/whatsapp/numbers/<number>" \
-H "Authorization: Bearer $IQCORE_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{}'const res = await fetch("https://iqcore.ai/api/public/v1/whatsapp/numbers/<number>", {
method: "PATCH",
headers: { Authorization: `Bearer ${process.env.IQCORE_KEY}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json" },
body: JSON.stringify({}),
});
console.log(res.status, await res.json());import os, uuid
import requests
res = requests.patch(
"https://iqcore.ai/api/public/v1/whatsapp/numbers/<number>",
headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={},
)
print(res.status_code, res.json()){
"message": "message"
}Switch the WhatsApp AI
POST /whatsapp/numbers/{number}/ai
Switch the AI replies of one WhatsApp number on or off (on: true / false). Owner or admin only. Switching on needs a connected number. Runs at once.
Parameters
numberpath string required — The WhatsApp number id (uuid, from whatsapp_numbers_list). max length 64Idempotency-Keyheader string — Your own id for this request (1–100 of A–Z a–z 0–9 . _ : -). The same key and request within 24 hours returns the first answer (Idempotent-Replayed: true) instead of acting twice; the same key with another request is refused (422 idempotency_key_reused); while the first one runs, 409 request_in_progress. Refusals before any effect are not stored.
Request body application/json
onboolean required — true = the AI answers this number, false = it does not.organization_idstring — An organization id (uuid) of this key.
Response 200
ai_onboolean required — The AI answers this number now.messagestring required — A short sentence for a person.
Errors: 400 401 403 404 409 422 429 500 — codes
Example
curl -X POST "https://iqcore.ai/api/public/v1/whatsapp/numbers/<number>/ai" \
-H "Authorization: Bearer $IQCORE_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"on": false
}'const res = await fetch("https://iqcore.ai/api/public/v1/whatsapp/numbers/<number>/ai", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.IQCORE_KEY}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json" },
body: JSON.stringify({
"on": false
}),
});
console.log(res.status, await res.json());import os, uuid
import requests
res = requests.post(
"https://iqcore.ai/api/public/v1/whatsapp/numbers/<number>/ai",
headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"on": False
},
)
print(res.status_code, res.json()){
"ai_on": false,
"message": "message"
}Save a quick reply
POST /whatsapp/quick-replies
Save a quick reply for the Inbox: a short shortcut (letters, digits, - and _; typed as /shortcut) and its text. An existing shortcut gets the new text. Saving sends nothing. Runs at once.
Parameters
Idempotency-Keyheader string — Your own id for this request (1–100 of A–Z a–z 0–9 . _ : -). The same key and request within 24 hours returns the first answer (Idempotent-Replayed: true) instead of acting twice; the same key with another request is refused (422 idempotency_key_reused); while the first one runs, 409 request_in_progress. Refusals before any effect are not stored.
Request body application/json
shortcutstring required min length 1 · max length 33bodystring required min length 1 · max length 1024organization_idstring — An organization id (uuid) of this key.
Response 200
shortcutstring required — The saved shortcut, with its slash (e.g. /hours).messagestring required — A short sentence for a person.
Errors: 400 401 403 404 409 422 429 500 — codes
Example
curl -X POST "https://iqcore.ai/api/public/v1/whatsapp/quick-replies" \
-H "Authorization: Bearer $IQCORE_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"shortcut": "shortcut",
"body": "body"
}'const res = await fetch("https://iqcore.ai/api/public/v1/whatsapp/quick-replies", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.IQCORE_KEY}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json" },
body: JSON.stringify({
"shortcut": "shortcut",
"body": "body"
}),
});
console.log(res.status, await res.json());import os, uuid
import requests
res = requests.post(
"https://iqcore.ai/api/public/v1/whatsapp/quick-replies",
headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"shortcut": "shortcut",
"body": "body"
},
)
print(res.status_code, res.json()){
"shortcut": "shortcut",
"message": "message"
}WhatsApp templates
GET /whatsapp/templates
The account's WhatsApp message templates (at most 30): name, language, category, status (approved, pending, rejected, paused, disabled …), quality and Meta's reason for a rejection. Filter problem = rejected, paused or disabled.
Parameters
statusquery string — Only these templates (default all). One of:all,approved,pending,problem.organization_idquery string — The organization to act in. Required when the key works in several organizations.
Response 200
templatesarray of object required max items 30namestring requiredlanguagestring required — e.g. en_US.categorystring — marketing, utility or authentication.statusstring — approved, pending, rejected, paused, disabled …qualitystringrejected_reasonstring — Meta's reason for a rejection (Meta's text). max length 160
Errors: 400 401 403 404 422 429 500 — codes
Example
curl "https://iqcore.ai/api/public/v1/whatsapp/templates" \
-H "Authorization: Bearer $IQCORE_KEY"const res = await fetch("https://iqcore.ai/api/public/v1/whatsapp/templates", {
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/whatsapp/templates",
headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}"},
)
print(res.status_code, res.json()){
"templates": [
{
"name": "Summer sale",
"language": "language",
"category": "category",
"status": "status",
"quality": "quality",
"rejected_reason": "rejected_reason"
}
]
}Refresh WhatsApp templates
POST /whatsapp/templates/sync
Read the message templates of one WhatsApp number from Meta again (new ones, status changes such as approved or rejected, removed ones). Submits and sends nothing.
Parameters
Idempotency-Keyheader string — Your own id for this request (1–100 of A–Z a–z 0–9 . _ : -). The same key and request within 24 hours returns the first answer (Idempotent-Replayed: true) instead of acting twice; the same key with another request is refused (422 idempotency_key_reused); while the first one runs, 409 request_in_progress. Refusals before any effect are not stored.
Request body application/json
numberstring required — The WhatsApp number id (uuid, from whatsapp_numbers_list). max length 64organization_idstring — An organization id (uuid) of this key.
Response 200
addedinteger required — Templates new in the list. min 0updatedinteger required — Templates whose status or content changed. min 0removedinteger required — Templates Meta no longer lists. min 0messagestring required — A short sentence for a person.
Errors: 400 401 403 404 409 422 429 500 — codes
Example
curl -X POST "https://iqcore.ai/api/public/v1/whatsapp/templates/sync" \
-H "Authorization: Bearer $IQCORE_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"number": "number"
}'const res = await fetch("https://iqcore.ai/api/public/v1/whatsapp/templates/sync", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.IQCORE_KEY}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json" },
body: JSON.stringify({
"number": "number"
}),
});
console.log(res.status, await res.json());import os, uuid
import requests
res = requests.post(
"https://iqcore.ai/api/public/v1/whatsapp/templates/sync",
headers={"Authorization": f"Bearer {os.environ['IQCORE_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"number": "number"
},
)
print(res.status_code, res.json()){
"added": 1,
"updated": 1,
"removed": 1,
"message": "message"
}