For the complete documentation index, see llms.txt. This page is also available as Markdown.

Files

Upload files to an agent. Requires files scope.

Upload a file to an agent

post

Uploads a file to the agent's knowledge base. Requires files scope. The agent must be running.

Authorizations
AuthorizationstringRequired

API key sent as Bearer token. Two types:

  • Master key (g_master_...): full access to all agents and endpoints.
  • Agent key (g_agent_...): scoped to a single agent with specific permissions.
Path parameters
idstring · uuidRequired
Body
filenamestring · max: 255Required
contentstringRequired
mimeTypestring · max: 100Required
Responses
200

File uploaded

No content

post/agents/{id}/files
POST /api/v1/agents/{id}/files HTTP/1.1
Host: api.guayaba.run
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 54

{
  "filename": "text",
  "content": "text",
  "mimeType": "text"
}

No content

Last updated