Hey, human!
HTTP/2 200 OK content-type: text/markdown; charset=utf-8 vary: accept, user-agent x-agent: [ai_agent]
Loading the agent response…
The text of one file, by page range (about 12,000 characters per call)
Returns the readable text of one file. For a PDF pick pages with from_page and to_page; truncated says more follows. 404 for a file the token's person cannot open; 422 not_readable when the file has no text to read (a scan, picture, audio, video or archive). Needs files:read.
Do this with AI
I want to the text of one file, by page range (about 12,000 characters per call). Use the Tarkle API. Read the reference for this operation and follow it exactly: https://project-03b42162.restlessdocs.com/endpoint/getfiletext.md Authenticate with your API key as a Bearer token in the Authorization header. Then make the request for me and tell me what came back.
Paste this into Claude, Cursor, or any AI assistant and it will do it for you.
https://tarkle.com/api/v1/files/{id}/textcurl --request GET \
--url https://tarkle.com/api/v1/files/id/text \
--header 'Authorization: Bearer $API_KEY' \
--header 'X-Workspace-Key: X-Workspace-Key'Path parameters
idstringrequiredA file id (digits) or a folder id (uuid)
Query parameters
from_pageintegerFirst page (PDFs)
to_pageintegerLast page (PDFs)
workspace_keystringThe same key as the X-Workspace-Key header, for clients that cannot set headers. Send one of the two, or both with the same value (different values are 400 conflicting_workspace)
Header parameters
X-Workspace-KeystringrequiredThe 8-character key of the workspace this call acts on; GET /workspaces lists the keys a token can use. A workspace id is refused (400 workspace_key_required)