- Qubitara Connect
- API reference
API reference
The Qubitara Connect API is a JSON REST API. This page covers what every endpoint has in common. The complete, always current list of endpoints is in the console under Developer → Documentation. It is generated from the running API, shows the permission each endpoint needs and gives a curl example.
Base address#
All endpoints are under /api/v1 on the address of your Qubitara Connect deployment, for example /api/v1/contacts.
Authentication#
Send your API key as a bearer token on every request:
Authorization: Bearer qc_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxCreate keys under Developer → API Keys. A key belongs to one organization and can use only the endpoints its scopes allow. Never put a key in browser or mobile code. See Authentication and API keys.
Conventions#
Content type. Requests and responses are
application/json.Success.
{ "success": true, "message": "...", "data": ... }.Lists. Pass
page(from 1) andlimit(default 25, maximum 200). The response addsmetawithpage,limit,total,pages,hasNextandhasPrev.Identifiers. UUIDs.
Timestamps. ISO 8601, in UTC.
Errors.
{ "success": false, "message": "...", "errors": [...] }. See Errors and limits.
Resources#
Resource | Path | Examples of what it does |
|---|---|---|
Contacts |
| List, create, read and update contacts. Companies, tags and CSV import. |
CRM |
| Deals, tasks and segments. |
Conversations |
| The inbox: list, read a thread, reply. |
Channels |
| List and manage connected channels. |
Campaigns |
| Campaigns and templates. |
Automation |
| Flows: list, publish, pause, archive, run history. |
Tickets |
| Tickets and categories. |
Appointments |
| Services, availability and bookings. |
AI |
| AI settings, usage, suggested replies and summaries. |
Analytics |
| Dashboard and report figures. |
Billing |
| Wallet, plans, invoices and rates. |
Developer |
| API keys, webhooks, request logs and usage. |
Audit log |
| Read the audit log. |
Which of these a key can reach depends on its scopes.
Example: contacts#
GET /contacts#
Lists contacts. Needs the scope contacts.view.
Name | In | Type | Required | Description |
|---|---|---|---|---|
page | query | integer | No | Page number, from 1. |
limit | query | integer | No | Items per page, 1 to 200. Default 25. |
search | query | string | No | Text to search for. |
lifecycleStage | query | string | No | One of subscriber, lead, qualified, customer, churned, other. |
tag | query | string | No | Only contacts with this tag. |
isBlocked | query | boolean | No | Only blocked or only unblocked contacts. |
POST /contacts#
Creates a contact. Needs the scope contacts.create. At least one of firstName, lastName, displayName, email or phone is required.
Name | In | Type | Required | Description |
|---|---|---|---|---|
firstName, lastName | body | string | No | Up to 80 characters each. |
displayName | body | string | No | Up to 180 characters. |
body | string | No | A valid email address. | |
phone | body | string | No | Up to 32 characters. |
jobTitle | body | string | No | Up to 120 characters. |
lifecycleStage | body | string | No | One of subscriber, lead, qualified, customer, churned, other. |
tags | body | string[] | No | Up to 50 tags, each up to 60 characters. |
customFields | body | object | No | Your own fields. |
country, locale, timezone | body | string | No | Free text. |
Status#
GET /api/v1/status needs no key and reports whether the API and its supporting services are operational.
Next steps#
Errors and limits
Webhooks