Skip to content
Docs
Qubitara Connect

Authentication and API keys

Updated Version 1QC-38

An API key lets your own software call Qubitara Connect on behalf of one organization.

Create a key#

  1. Open Developer → API Keys. You need the permission to manage API keys. Viewing keys needs a separate, lower permission.

  2. Choose to create a key and fill in:

Field

Notes

Name

Required, up to 120 characters.

Environment

live or test. This is a label. See below.

Scopes

Required. Tick at least one. Up to 50.

Expiry

Optional. Must be a future date.

  1. Copy the key now. It is shown once and cannot be recovered. Only a fingerprint is stored. If you lose it, revoke it and create a new one.

What a key looks like#

qc_live_ or qc_test_ followed by 40 letters and digits. The first 16 characters are shown in the console so you can tell keys apart.

Scopes#

A scope is a permission name, such as contacts.view, contacts.create, inbox.reply or campaigns.view. A key can do only what its scopes allow. These rules apply:

  • A key with no scopes can authenticate but cannot do anything, so the console and the API require at least one.

  • You cannot give a key a permission you do not hold yourself.

  • Unknown permission names are refused.

The Documentation tab shows the permission each endpoint needs.

Use a key#

Send it as a bearer token:

text
Authorization: Bearer qc_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

A key belongs to exactly one organization, so you do not send an organization header. If you send one it is ignored.

Never put a key in browser or mobile code. Call the API from your server.

Live and test#

The environment is a label that appears in the key, the audit log and the key list. A test key reaches the same API and the same data as a live key. It is not a sandbox. Use the label to keep your own environments apart, and use Developer → Sandbox to try webhooks safely.

Expiry, revoking and rotation#

  • An expired or revoked key stops working at once.

  • To rotate, create a new key, switch your software over, then revoke the old key.

  • The console shows when each key was last used, from which IP address, and how many requests it has made.

Monthly API allowance#

Each plan can set a monthly allowance of API requests. It counts requests made with API keys, not people using the console. Until a figure is set for a plan, the allowance is unlimited.

When a limit applies, responses carry X-RateLimit-Limit and X-RateLimit-Remaining. When it is used up, requests return HTTP 429 with the code API_QUOTA_EXCEEDED and a Retry-After header counting down to the first day of next month (UTC). You can see your usage under Developer.

Request logs#

Developer → Request Logs lists each API-key request with its method, path, status, time taken, IP address and key. You can filter by key, status and path.

When authentication fails#

Status

Message

Meaning

401

That API key is not valid, has been revoked, or has expired.

Check the key. The message does not say which of the three it is.

403

This organization is suspended. Contact support.

The organization is suspended.

403

Missing permission: ...

The key lacks a needed scope.

Next steps#

  • Quickstart

  • Webhooks

  • Errors and limits

Was this page helpful?