List files

GET /api/v1/code/files on the Caveman Cloud control plane. Requires the code:read scope. Not exposed to autonomous agents: Caveman Code files are the org's inputs for sessions and the outputs sessions wrote, uploaded and read through the Agents API by a person or a service account's key. An agent in a session reads its attached files at /mnt/session/uploads and writes /mnt/session/outputs through its runtime, never through a control-plane connection.

get/code/files

Request

  • Base URL
    https://api.caveman.so/api/v1
  • URL
    https://api.caveman.so/api/v1/code/files
  • Auth
    • OAuth 2
      Authorization code: /api/v1/oauth/authorize
      Token URL: /api/v1/oauth/token scopes: code:read
    • or HTTP bearer
    • or API key in cookie cave_access
    • or API key in cookie __Secure-cave_identity.session_token

Query parameters

purpose'input' | 'output'

Only inputs or only outputs.

beforestring uuid

The next_cursor of the previous page.

limitinteger

At most this many (default 100).

Response

A page of files

next_cursorstring nullable required

The before= of the next page; null on the last.

Changes

No recorded changes to this operation across all 1 revision of this API.