Skip to main content
POST
Connect an app with a key

Authorizations

Authorization
string
header
required

An API key from Settings → API keys, sent as Authorization: Bearer kb_live_…. A workspace key starts kb_; a personal key starts kbp_ and acts as its owner.

Headers

Idempotency-Key
string
required

A unique key (a UUID works) for this request. Retrying with the same key returns the first answer instead of running twice.

Maximum string length: 255
Kallabot-Version
enum<string>

The API version to answer as, a date (YYYY-MM-DD). Leave it out for the current version (2026-11-07). An unknown version is refused with 400 unsupported_api_version.

Available options:
2026-11-07
Example:

"2026-11-07"

Body

application/json
piece
string
required

The app's key, e.g. cal-com.

Required string length: 1 - 160
type
enum<string>
required

How the app connects.

Available options:
secret_text,
custom_auth,
basic_auth
display_name
string | null

A name for the connection.

Maximum string length: 120
external_id
string | null

A stable name; one is made up when left out.

Pattern: ^[A-Za-z0-9_\-]{1,128}$
secret_text
string | null

For secret_text: the key.

Maximum string length: 8192
props
Props · object | null

For custom_auth: the app's own sign-in fields.

username
string | null

For basic_auth.

Maximum string length: 512
password
string | null

For basic_auth.

Maximum string length: 8192

Response

Successful Response

id
string
required

The connection's id.

status
enum<string>
required

Whether it works.

Available options:
connected,
error,
missing,
unknown
used_by_workflows
integer
required

How many workflows use it.

external_id
string | null

Its stable name; a piece-action tool runs as it.

name
string | null

Its display name.

piece
string | null

The app it signs in to.

app
string | null

The app's short name.

auth_type
string | null

oauth2, secret_text, custom_auth, …

created_at
string | null

When it was added (ISO 8601).

updated_at
string | null

When it last changed (ISO 8601).