Files
Read a document or image
Read a text, PDF, or image file
GET
For AI assistants and scripts. A text file comes back as UTF-8 (kind: "text"), its first 1 MiB, with truncated set when there is more; a PDF as the text of its pages (up to 50 MiB files); a PNG, JPEG, GIF, or WebP image up to 3.75 MB as base64 (kind: "image"). Videos, audio, and other binary files answer unsupported_file (415): use the download link. Counts toward the same rate limit as download links.
bearer files:readheader
AuthorizationBearer <token>An API key, an OAuth access token, or a signed-in session token.
Scope: files:read
id*stringLength
1 <= lengthThe file's text or image
application/json- response
kind*"text"Value in
"text"name*stringmimeType*stringsizeBytes*integertext*stringtruncated*booleanpages*integer|nullcurl -X GET 'https://fastwater.app/v1/files/string/content'Example Response
{ "kind": "text", "name": "string", "mimeType": "string", "sizeBytes": 0, "text": "string", "truncated": true, "pages": 0}