curl --request POST \
--url http://localhost:3000/api/messaging/channels/{channelId}/upload-media \
--header 'Content-Type: multipart/form-data' \
--form agentId=3c90c3cc-0d44-4b50-8888-8dd25736052a \
--form file=@example-file
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"channelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "image",
"mimeType": "<string>",
"size": 123
}
Upload media file to a specific channel
curl --request POST \
--url http://localhost:3000/api/messaging/channels/{channelId}/upload-media \
--header 'Content-Type: multipart/form-data' \
--form agentId=3c90c3cc-0d44-4b50-8888-8dd25736052a \
--form file=@example-file
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"channelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "image",
"mimeType": "<string>",
"size": 123
}
ID of the channel
Media uploaded successfully
The response is of type object
.
Was this page helpful?