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. Not used for Telegram.

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
provider
enum<string>
required

Aliases accepted: facebook and messenger (facebook_page), instagram_login, gbp, x, vk, bluesky.

Available options:
facebook_page,
instagram,
instagram_direct,
linkedin,
linkedin_page,
youtube,
google_m_b,
threads,
tiktok,
pinterest,
reddit,
tumblr,
twitter,
v_kontakte,
blue_sky,
mastodon,
whatsapp,
telegram
Example:

"google_m_b"

return_url
string<uri>

One of your registered return URLs, exactly. Required for every provider but telegram.

Example:

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

state
string

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

Maximum string length: 500
Example:

"dealer-4821"

account_id
string<uuid>

Reconnect this publishing account (of that workspace and provider).

channel_id
string<uuid>

Reconnect this messaging channel: a WhatsApp channel, or a channel that belongs to an account of provider.

coexistence
boolean

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

max_accounts
integer

Providers with a picker: the most accounts your customer may tick.

Required range: 1 <= x <= 100
allow_unverified
boolean

Reconnects: let your customer confirm a profile that cannot be proven to be the same one.

server
string

mastodon: the server. Asked on the hosted page when absent.

Maximum string length: 253
handle
string

blue_sky: the handle Bluesky's sign-in opens on.

Maximum string length: 253
bot_token
string

telegram only: the BotFather token. Never stored on the connection or echoed back.

Required string length: 20 - 120
Example:

"123456:ABC…"

name
string

telegram only: the channel name.

Maximum string length: 120
Example:

"Acme Motors"

takeover
boolean

telegram only: move the bot's webhook here even though it points somewhere else.

Response

The connection this Idempotency-Key already made, or the same Telegram bot again

success
boolean
Example:

true

data
object
meta
object

Telegram only.