Files
Mint a file token
POST
A short-lived token that opens stored files on the files host as you: the browser's cookie (no keys, checked per file), or a token scoped to the files of one use (a model reading your images, a provider running a generation, an MCP result). A token never opens more than you can read.
header
AuthorizationBearer <esk_live_…>A workspace API key created in workspace settings. It acts as the member who created it, narrowed to its abilities, projects and credit limit. Each operation names the ability it needs.
Scope: assets:read
Endless-Api-Version?stringPin the caller to an API major (1). Omit to accept the current version. A major this deployment cannot serve is refused with 400 unsupported_api_version.
application/json- body
purpose*stringValue in
"cookie""provider""model""mcp""export""push"keys?array<string>Items
items <= 100OK
application/json- response
token*stringexpires_at*stringcurl -X POST 'https://api.endless.app/file-tokens' \ -H 'Content-Type: application/json' \ -d '{ "purpose": "cookie"}'Example Response
{ "token": "string", "expires_at": "string"}