Developer Portal
How-to guides

How to Attach a Link

Add a Link When Sending a Message

Include link attachments directly when creating a text message using the v6 API.

POST /v6/messages/text
Content-Type: application/json
{
  "conversation_id": "<conversation_id from webhook>",
  "transcript": "Check out this link",
  "reply_to_message_id": "<id from webhook>",
  "attachments": [
    {
      "type": "link",
      "link": "https://example.com"
    }
  ]
}

Attach a Link to an Existing Message

Add a URL link attachment to an existing message. You can include multiple links in one request.

POST /messages/{message_id}/attachments
Content-Type: application/json
{
  "attachments": [
    {
      "type": "link",
      "link": "https://example.com"
    }
  ]
}

The message_id is returned in the response from POST /v6/messages/text.

How to Attach a Link | Carbon Voice Developer Portal