Messages

Send SMS by number

Changed on

REQUIRED SCOPES <code>[‘messages:write’]</code><br>Using the given endpoint, you can send an SMS message via API by phone number. <br><br>As a result, instead of team’s id and conversation’s id, it is allowed to indicate the user’s phone number in order to send them a message.

post/messages

Request

  • Base URL
    https://api.salesmessage.com/pub/v2.3
  • URL
    https://api.salesmessage.com/pub/v2.3/messages
  • Auth
    HTTP bearer

Query parameters

numberstring required
Example:+12025550018

Number

team_idinteger required
Example:1

Team ID

messagestring textarea required

Message

send_atstring date-time

Send At

media_url[][url]string[]

Url for media

[
  "https://example.com/image.png"
]

Response

OK

idinteger
conversation_idinteger
automatedboolean
statusstring
typestring
mms_statusstring
bodystring
body_rawstring
has_taggingboolean
iconstring
received_atstring
send_atstring
queued_atstring
sent_atstring
delivered_atstring
failed_atstring
failed_reasonstring
created_atstring
stop_on_responseboolean
is_hipaaboolean
manuallyTranscribeAvailableboolean

False when transcript_locked.

transcript_lockedboolean

Call made while HIPAA was enabled, HIPAA is off now: no transcript.

user_idinteger
source_idstring
sourcestring

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status