Skip to main content
POST
Issue a link that ties a channel to one of my tenants

Body

application/json
tenantId
string
required

The customer this link belongs to. Frozen into the link when it is made: whoever opens it decides whether to connect, never to whom.

subtenantId
string

The person inside that customer, when you know which one. Send the same id your product already uses for them (for example in the chat widget), so every channel attributes to the same person. Without it, WhatsApp falls back to the contact id and email to the invited address.

platform
enum<string>

Which channel. Defaults to slack. Microsoft Teams links are issued from the console, not from this endpoint.

Available options:
slack,
whatsapp,
email
channelAppId
string

The presence the link connects to — a Slack bot or a WhatsApp app. Omit for email, which has no installable app.

accountId
string

WhatsApp only, and required there: the connected number the person is to write to. The code only works on that number.

greeting
string

WhatsApp only: what the pre-written message says in front of the code. The person can edit it before sending, so treat it as a suggestion.

expiresInHours
integer

How long the link works for. A week by default, a month at most.

Required range: 1 <= x <= 720
maxBindings
number

How many distinct identities may connect through it: 1 by default, 20 at most. Always 1 for email.

requireApproval
boolean

Hold what connects as pending until somebody approves it in the console. On WhatsApp the person is told they are waiting rather than left without an answer.

purpose
string

Your own note. Nobody else sees it.

email
object

Required when platform=email. The exact address that will be attributed, and the agent or assistant whose mailbox sends the invitation. The target is frozen into the link.

runtimeMetadata
object

Persistent runtime metadata, saved when the invitation is created and stored on the subtenant when subtenantId is given, otherwise on the tenant. Omit to preserve; {} clears. Identity keys are reserved. Precedence: request metadata < tenant < subtenant.

runtimeSecretMetadata
object

String credentials injected into the same runtime metadata. Stored encrypted and returned masked; never included in the link or its public page. Omit to preserve; {} clears.

Response

The link, said once