Data Models

Complete reference for all data structures used in the Sent API.

Contact Models

Contact Object

The contact object represents a phone number with its various formats and available messaging channels.

FieldTypeDescription
idUUIDUnique contact identifier
phoneNumberStringPhone number as originally provided
formatE164StringE.164 international format
formatInternationalStringHuman-readable international format
formatNationalStringNational format for the country
formatRfcStringRFC 3966 tel: URI format
countryCodeStringCountry calling code
regionCodeStringISO 3166-1 alpha-2 country code
availableChannelsStringComma-separated available channels
defaultChannelStringRecommended messaging channel

Contact List Response

Paginated response containing an array of contact objects.

Template Models

Template Object

Pre-approved message templates for WhatsApp and SMS messaging.

FieldTypeDescription
idUUIDUnique template identifier
nameStringHuman-readable template name
categoryStringTemplate category (see below)
whatsappTemplateNameStringWhatsApp internal name
whatsappTemplateStatusStringWhatsApp approval status
publishedBooleanWhether template is active

Template Categories

CategoryDescriptionUse Cases
AUTHENTICATIONOTP and verification2FA, login codes
MARKETINGPromotional contentCampaigns, offers
UTILITYTransactional messagesConfirmations, updates

Template Status Values

StatusDescription
PENDINGAwaiting WhatsApp approval
APPROVEDReady for use
REJECTEDNot approved by WhatsApp

Template List Response

Paginated response containing an array of template objects.

Message Models

Send Message Request

Request payload for sending messages via contact ID or phone number.

FieldTypeRequiredDescription
contactIdUUIDYes*Contact ID (for contact endpoint)
phoneNumberStringYes*Phone number (for phone endpoint)
templateIdUUIDYesTemplate to use
messageBodyObjectNoTemplate variable values
webhookUrlStringNoURL for status updates

*One of contactId or phoneNumber is required depending on endpoint

Message Response

Message endpoints return 204 No Content on success or include a message ID in the response body.

Pagination Model

Standard pagination structure used by list endpoints.

FieldTypeDescription
itemsArrayList of objects
totalCountIntegerTotal items available
pageIntegerCurrent page (0-based)
pageSizeIntegerItems per page
totalPagesIntegerTotal pages available

Channel Types

ChannelDescription
smsTraditional SMS messaging
whatsappWhatsApp Business messaging

Phone Number Formats

The API accepts various phone number formats and normalizes them:

FormatExampleDescription
E.164+1234567890International format (recommended)
International+1 234-567-890With formatting
National(234) 567-890Country-specific format
IDD Prefix0011234567890International dialing
Raw1234567890Digits only (requires context)

Webhook Payload

Status updates sent to the webhook URL when provided.

Webhook Status Values

StatusDescription
sentMessage accepted by provider
deliveredConfirmed delivery to device
readMessage read (WhatsApp only)
failedDelivery failed