Skip to content
Docs
Qubitara Connect

API reference

Updated Version 3QC-4

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:

text
Authorization: Bearer qc_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Create 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) and limit (default 25, maximum 200). The response adds meta with page, limit, total, pages, hasNext and hasPrev.

  • 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

/contacts

List, create, read and update contacts. Companies, tags and CSV import.

CRM

/crm

Deals, tasks and segments.

Conversations

/conversations

The inbox: list, read a thread, reply.

Channels

/channels

List and manage connected channels.

Campaigns

/campaigns

Campaigns and templates.

Automation

/automation

Flows: list, publish, pause, archive, run history.

Tickets

/tickets

Tickets and categories.

Appointments

/appointments

Services, availability and bookings.

AI

/ai

AI settings, usage, suggested replies and summaries.

Analytics

/analytics

Dashboard and report figures.

Billing

/billing

Wallet, plans, invoices and rates.

Developer

/developer

API keys, webhooks, request logs and usage.

Audit log

/audit-logs

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.

email

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