API reference

Files

Files are the business's Data, what its Claude keeps on its own server, as the Data tab shows them. List a folder and download its files with their signed links.

Endpoints

The file object

A file or a folder of the business's Data, what its Claude keeps on its server.

Attributes

  • objectstring
    Always file.
  • namestring
    Its name.
  • pathstring
    Its path from the top of Data. Pass a folder's to List files to open it.
  • typestring
    Whether it is a file or a folder.
    filefolder
  • sizeinteger or null
    Its size in bytes, null for a folder.
  • modified_atstring or null
    When it last changed, ISO 8601.
  • download_urlstring
    A signed link to download the file, good for 10 minutes. Files only.
File object
{
  "object": "file",
  "name": "prices.md",
  "path": "Public/prices.md",
  "type": "file",
  "size": 2184,
  "modified_at": "2026-11-22T17:05:42.000Z",
  "download_url": "https://lumen-studio.okaymate.ai/files/download?t=eyJ2IjoxLCJvcCI6ImdldCJ9.5f2b9c"
}

List files

GET/v1/filesRead access

Returns what one folder holds, its folders and its files, in one page.

Query parameters

  • pathstring
    The folder to open. Leave it out or empty for the top of Data.

Returns

A list of file objects with the folder's path. has_more is always false.

Errors

GET/v1/files
curl -G https://okaymate.ai/api/v1/files \
  -H "Authorization: Bearer $OKAYMATE_API_KEY" \
  -d path=Public
Response200
{
  "object": "list",
  "path": "Public",
  "data": [
    {
      "object": "file",
      "name": "Classes",
      "path": "Public/Classes",
      "type": "folder",
      "size": null,
      "modified_at": "2026-11-20T08:31:10.000Z"
    },
    {
      "object": "file",
      "name": "prices.md",
      "path": "Public/prices.md",
      "type": "file",
      "size": 2184,
      "modified_at": "2026-11-22T17:05:42.000Z",
      "download_url": "https://lumen-studio.okaymate.ai/files/download?t=eyJ2IjoxLCJvcCI6ImdldCJ9.5f2b9c"
    }
  ],
  "has_more": false,
  "next_cursor": null
}