Skip to main content
MessagesVersion: 2021-04-15

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.

Authorizations

Authorizationstringheaderrequired

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

Scope:conversations/message.write
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version

Available options2021-04-15

Path Parameters

messageIdstringrequired

Message Id

Example:ve9EPM428h8vShlRW1KT

Body

attachmentsstring[]required

Array of attachment URLs to set on the message (replaces existing). Maximum 5 URLs.

Example:["https://provider.com/recordings/call-123.mp3"]

Response

Successfully set message attachments

successbooleanrequired

Indicates whether the operation was successful.

Example:true
messageIdstringrequired

The ID of the message that was updated.

Example:ve9EPM428h8vShlRW1KT
attachmentsstring[]required

The updated list of attachment URLs on the message.

Example:["https://provider.com/recordings/call-123.mp3"]