Skip to main content
Every endpoint that addresses a contact uses the same contact object:

Identifier

string
required
The identity of the contact on the channel, up to 200 characters.

Identifier type on a Shortext endpoint

string
default:"external_id"
Shortext endpoints only: what the identifier is. external_id, phone, email or username.
The identifier is stored and returned as you give it (normalized for phone). With phone or email, your user is the same contact as on WhatsApp or by email: a user who writes in your app and on your WhatsApp number is recognized as one person. Searching by identifier (GET /conversations?contact=, the contact knowledge of the agent) then finds both channels, and the contact can also be reached by your WhatsApp and email campaigns. On WhatsApp, mailboxes and Telegram, identifier_type is ignored: the channel sets the type.

Profile

All the profile fields are optional when you start a conversation or send an inbound message (the v1.0 POST /messages/send requires lastname). The profile updates the contact Shortext keeps; the agent uses the name and the language to address the contact.

Contacts in responses and webhooks

Responses and webhooks describe a contact with its identifier, its type, its profile and, when known, its country:
Empty profile fields are left out.