Skip to main content
POST
/
agent
/
attachments
Create agent attachment
curl --request POST \
  --url http://localhost:3000/api/openapi/agent/attachments \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "threadId": "<string>",
  "filename": "<string>",
  "mediaType": "<string>",
  "data": "<string>"
}
'
"<unknown>"

Authorizations

x-api-key
string
header
required

The API key to authenticate requests.

Body

application/json
threadId
string
required
filename
string
required
Minimum string length: 1
mediaType
string
required
Minimum string length: 1
data
string
required
Minimum string length: 1

Response

200 - application/json

OK

The response is of type any.