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
- objectstringAlways
file. - namestringIts name.
- pathstringIts path from the top of Data. Pass a folder's to List files to open it.
- typestringWhether it is a file or a folder.
filefolder - sizeinteger or nullIts size in bytes,
nullfor a folder. - modified_atstring or nullWhen it last changed, ISO 8601.
- download_urlstringA 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
- pathstringThe 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
- A parameter has a value the API does not accept.
paramnames it. - No folder at this path.
- The business's Okaymate server is not set up yet.
- Okaymate's router or the business's server did not answer. Try again in a moment.
GET/v1/ files
curl -G https://okaymate.ai/api/v1/files \
-H "Authorization: Bearer $OKAYMATE_API_KEY" \
-d path=PublicResponse200
{
"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
}