latestOpenAPI 3.0.2MIT2026-08-1745267541.8 KB

bdb3e0c48bf7

Transcoding

Transcode a message

Transcodes the message from the Conversation API format to the channel-specific formats for the requested channels. No message is sent to the contact.

post/v1/projects/{project_id}/messages:transcode

Request body

app_idstring required

The ID of the app used to transcode the message.

channelsConversationChannel[] required

The list of channels for which the message shall be transcoded.

fromstring

Optional.

tostring

Optional.

Example request

{
  "app_message": {
    "card_message": {
      "choices": [
        {
          "call_message": {
            "phone_number": "+15551231234",
            "title": "Message text"
          }
        }
      ]
    }
  },
  "channels": [
    "WHATSAPP"
  ]
}

Response

A successful response.

transcoded_messageobject

The transcoded message for the different channels. The keys in the map correspond to channel names, as defined by the type ConversationChannel.