POST
/
api
/
v1
/
agent-files
/
{agent_id}
/
files
Upload Agent File
curl --request POST \
  --url https://agent-studio.thena.ai/api/v1/agent-files/{agent_id}/files \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>' \
  --form file=@example-file
{
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "bucket_path": "<string>",
  "size": 123,
  "mime_type": "<string>",
  "metadata": {}
}

Authorizations

x-api-key
string
header
required

Path Parameters

agent_id
string<uuid> | null
required

Body

multipart/form-data

Response

200
application/json

Successful Response

The response is of type object.