Adds a new message to an existing conversation. Returns the message object.

Request

POST https://api.comeet.co/conversations/{uid}/messages

Request body fields:

NameTypeOptionalDescription
time_sentstringRequiredYYYY-MM-DDTHH:mm:ssZ
subjectstringOptional
bodystringRequiredHTML. The following tags are supported: <b> <i> <u> <a>
fromContactRequired
toArray of ContactRequired
ccArray of ContactOptional
bccArray of ContactOptional

The Contact object:

NameTypeOptionalDescription
typestringRequiredOne of the following: user, candidate, source_contact, other
first_namestringRequired
middle_namestringOptional
last_namestringOptional
emailstringRequired if the type is not candidate
statusstringRequiredApplies to to, cc, bcc (doesn't apply to from).

One of the following: Sent, Open, Failed, Clicked
{
  "time_sent": "2018-01-01T12:50:50Z",
  "status": "Sent",
  "from": {
    "type": "user",
    "first_name": "Kelly",
    "middle_name": "",
    "last_name": "Lee",
    "email": "[email protected]"
  },
  "to": [
    {
      "type": "candidate",
      "first_name": "John",
      "middle_name": "",
      "last_name": "Johnson",
      "email": "[email protected]",
      "status": "Sent"
    }
  ],
  "cc": [],
  "bcc": [],
  "subject": "Director of Sales opportunity",
  "body": "Hi John, I wanted to see if you would be interested in interviewing for the Director of sales role in ACME."
}

Response

{
  "uid": "B12.121",
  "time_sent": "2018-01-01T12:50:50Z",
  "status": "Sent",
  "from": {
    "type": "user",
    "uid": "A00.001"
  },
  "to": [
    {
      "type": "candidate",
      "uid": "B99.999"
    }
    //...
  ],
  "cc": [],
  "bcc": [],
  "subject": "Director of Sales opportunity",
  "body": "Hi John, I wanted to see if you would be interested in interviewing for the Director of sales role in ACME."
}
{  
  "status":404,
  "error":"message_not_found",
  "message":"Message not found"
}