Skip to main content
POST
Upload an agent file

Authorizations

Authorization
string
header
default:cr_sk_your_key_here
required

Account API key from Developer Console. Keys start with cr_sk_.

Path Parameters

agent_id
string<uuid>
required

Body

multipart/form-data
file
file
required
path
string

Relative path inside the agent, using / between folders. Defaults to the uploaded file name. Characters outside the safe file-name set, such as spaces, become _; the response name is the stored path. .. segments are refused.

Maximum string length: 512
Example:

"references/style-guide.md"

Response

The file at this path was replaced.

id
string<uuid>
required
name
string
required
mime_type
string
required
size_bytes
integer | null
required
sha256
string | null
required
created_at
string<date-time>
required