Skip to navigation

Schedule SMS session

Authentication

api-keystring

Your Atlas API key. Get it from the Atlas Portal under Settings > API Keys.

Path parameters

campaignIdstringRequired

Request

This endpoint expects an object.
customerPhoneNumberstringRequired
Contact phone number in E.164 format.
customerNamestringRequired
Contact first name.
customerLastNamestringOptional
Contact last name.
customerInfostringOptional

Key-value pairs of additional contact information (e.g. “EventType=Wedding\nEmail=user@example.com”).

customMessagestringOptional
Custom first message to send instead of the campaign default.
scheduledDatedatetimeOptional

ISO 8601 datetime to schedule the message. If omitted the message is sent immediately, unless respectCampaignSchedule is true.

respectCampaignSchedulebooleanOptionalDefaults to false

Only used when scheduledDate is omitted. When true, the message is sent at the next time allowed by the campaign’s sending windows, in the contact’s local time (immediately if a window is open now). Ignored when scheduledDate is provided. Sending limits still apply, so the returned scheduledDate can be later than the window start.

attachmentslist of stringsOptional

Up to 3 public HTTPS URLs for image or video attachments (MMS). Each URL must use HTTPS and not exceed 512 characters.

Response

Session scheduled
campaignIdstringOptional
contactPhoneNumberstringOptional
sessionIdstringOptional
messageIdstringOptional
scheduledDatedatetimeOptional
sequenceNumberintegerOptional

Errors

400
Bad Request Error
500
Internal Server Error