POST
/
messages

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Surge-Account
string
required

The account ID

Body

application/json

POST body for creating a message. Either an attachment or the body must be given.

conversation
object
required

Params 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.