Skip to main content
POST
/
insights
/
{threadId}
/
messages
Send message
curl --request POST \
  --url https://productlane.com/api/v1/insights/{threadId}/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "threadId": "<string>",
  "content": "<string>",
  "cc": [
    {
      "name": "<string>",
      "email": "jsmith@example.com",
      "mailboxHash": "<string>"
    }
  ],
  "bcc": [
    {
      "name": "<string>",
      "email": "jsmith@example.com",
      "mailboxHash": "<string>"
    }
  ],
  "attachments": [
    {
      "Name": "<string>",
      "ContentType": "<string>",
      "Content": "<string>",
      "ContentLength": "<string>",
      "ContentID": "<string>"
    }
  ],
  "channelId": "<string>"
}'
{
  "messageId": "<string>",
  "threadId": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

threadId
string
required

Body

application/json
threadId
string
required

The ID of the thread to send the message to (also provided in URL path)

content
string
required

HTML-formatted content of the message

Minimum length: 1
cc
object[]

CC recipients for email messages

bcc
object[]

BCC recipients for email messages

attachments
object[]

File attachments for the message

channelId
string

Slack channel ID. If not provided, uses the thread's slackChannelId if available (for Slack messages only)

Response

Successful response

messageId
string
required

The unique identifier of the created message

threadId
string
required

The thread ID the message was sent to