POST leads/contact-messages

Send a message to leads. Email is sent to leads defined by LeadIds parameter.

Request

URL ( requires authentication )

https://api.crexi.com/leads/contact-messages

Body Parameters

Attachments

Collection of Attachment

Optional

Max length: 10

CCEmails

string

Optional

LeadIds

Collection of integer

Required

Message

string

Required

Max length: 2000

Subject

string

Required

Max length: 500

Example

JSON

{
  "Attachments": [
    {
      "ContentId": "72283cad-269c-4af9-8c94-0844f41cc70f"
    },
    {
      "Base64Content": "{base 64 encoded file}",
      "Filename": "Attachment2.jpg"
    },
    {
      "Base64Content": "{base 64 encoded file}",
      "Filename": "Attachment1.png",
      "Remove": false
    }
  ],
  "CCEmails": "test1@example.com,test2@example.com",
  "LeadIds": [
    1,
    2
  ],
  "Message": "Message",
  "Subject": "Hello"
}

Response

Details

Returns an HTTP 200 OK if operation was successfull. Returns 400 Bad Request and an error message otherwise.