POST
/
api
/
media
/
{agentId}
/
upload-media
Upload media for agent
curl --request POST \
  --url http://localhost:3000/api/media/{agentId}/upload-media \
  --header 'Content-Type: multipart/form-data' \
  --form file=@example-file
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "url": "<string>",
  "type": "image",
  "mimeType": "<string>",
  "size": 123
}

Path Parameters

agentId
string<uuid>
required

ID of the agent

Body

multipart/form-data
file
file

Media file to upload

Response

Media uploaded successfully

id
string<uuid>
url
string

URL of the uploaded media

type
enum<string>
Available options:
image,
video
mimeType
string
size
integer