Add message attachments
PUT/conversations/messages/:messageId/attachments
Set attachments on an existing message (replaces existing). Maximum 5 URLs. Supported for Custom Call message type.
Request
Version stringrequired
API Version
Available options
v3messageId stringrequired
Message Id
- application/json
- Body
- Example (auto)
Bodyrequired
attachmentsstring[]required
Array of attachment URLs to set on the message (replaces existing). Maximum 5 URLs.
{
"attachments": [
"https://provider.com/recordings/call-123.mp3"
]
}
Successfully set message attachments
- application/json
- Schema
- Example (auto)
Schema
successbooleanrequired
Indicates whether the operation was successful.
messageIdstringrequired
The ID of the message that was updated.
attachmentsstring[]required
The updated list of attachment URLs on the message.
{
"success": true,
"messageId": "ve9EPM428h8vShlRW1KT",
"attachments": [
"https://provider.com/recordings/call-123.mp3"
]
}