Messages
Send message
Sends a Message.
POST
/
messages
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Surge-Account
string
requiredThe account ID
Body
application/json
POST body for creating a message. Either an attachment or the body must be given.
conversation
object
requiredParams for selecting or creating a new conversation. Either the id or the Contact must be given.
attachments
object[]
body
string
The message body.
Response
201 - application/json
Response schema for single message
attachments
object[]
body
string
The message body.
conversation
object
A conversation with a Contact
id
string
Unique identifier for the object.