Skip to main content
POST
/
bridge
/
api
/
v1
/
workspaces
/
{workspaceId}
/
messages
Create a new message
curl --request POST \
  --url https://api-connect-us.bridge.new/bridge/api/v1/workspaces/{workspaceId}/messages \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '
{
  "conversationId": "<string>",
  "messageBody": "<string>",
  "enableExternalBroadcast": true,
  "replyToMessageId": "<string>",
  "mediaIds": [
    "<string>"
  ]
}
'
{
"messageId": "<string>",
"messagingProduct": "bridge"
}

Headers

x-api-key
string
required

Copy the API key as provided by the Bridge Console.

Path Parameters

workspaceId
string<uuid>
required

Unique identifier of the workspace (UUID v4).

Body

application/json
conversationId
string
required

ID of the conversation

messageBody
string
required

Body of the message

enableExternalBroadcast
boolean
required

Flag to enable external broadcast

replyToMessageId
string | null

ID of the message being replied to

mediaIds
string[]

List of media IDs associated with the message

Response

Successful Response

messageId
string
required

Unique message identifier as a UUID string

messagingProduct
string
default:bridge

Product name, e.g., bridge