Skip to main content
POST
Create a connection

Authorizations

X-API-KEY
string
header
required

Your partner API key, pk_…. Backend only.

Headers

Idempotency-Key
string

1–200 characters. The same key and request returns the same connection with 200; a different request on that key is a 409.

Maximum string length: 200

Path Parameters

workspace
string<uuid>
required

A workspace uuid from provisioning. It must be administered by a customer you provisioned.

Body

application/json
platform
enum<string>
required
Available options:
whatsapp,
facebook,
instagram,
tiktok
Example:

"whatsapp"

return_url
string<uri>
required

One of your registered return URLs, exactly.

Example:

"https://app.acmedealers.test/integrations/callback"

state
string

Comes back on the return URL and in the completion event. No secrets or personal data.

Maximum string length: 500
Example:

"dealer-4821"

channel_id
string<uuid>

Reconnect this existing channel.

coexistence
boolean

WhatsApp only: keep the number on the WhatsApp Business app.

Response

The same request again on the same Idempotency-Key

success
boolean
Example:

true

data
object