Skip to main content
POST
Add an address

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Scopes

agent

Act as the agent chosen at sign-in

Path Parameters

id
string
required

The agent's id

Body

application/json
channel
enum<string>
required
Available options:
email,
sms,
telegram,
slack
value
string<email>
Pattern: ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
country
string

The ISO country of the phone number; the first one the server sells by default

Pattern: ^[A-Z]{2}$
token
string

What connects an address the workspace already has: the token @BotFather gave a Telegram bot, or a Slack app's bot token and signing secret with a space between

Minimum string length: 1
setup
string<uuid>

The state a provider's consent page sent the member back with, for an app they installed from the link setUpAddress gave with token

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
code
string

The code the provider's consent page sent the member back with, beside setup

Minimum string length: 1

Response

The new address

id
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
channel
enum<string>
required
Available options:
email,
sms,
telegram,
slack
value
string
required

The email address, phone number, Telegram bot's @username, or Slack bot's workspace and member ids

name
string | null
required

What people know the address by when its value is an id, like a Slack bot's @name

domainId
string<uuid> | null
required

The workspace's own domain the address is on

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
primary
boolean
required

Whether new messages on its channel go out from it

createdAt
string<date-time>
required
registering
boolean

Whether US carriers are still registering the phone number, which sends nothing until they have