Read a company's document text
Returns the plain text of the record's main document (usually a CV), or of file_id when that file is attached to the same record. The text is normalized (line endings, trailing spaces, blank-line runs) and returned in chunks of at most limit characters; next_offset continues where the text stopped and is null at the end. Offsets count characters of the normalized text.
Requires companies:read and files:read. Calls through the Pikaflow MCP server also need the workspace setting "Let AI apps read document text" (403 DOCUMENT_TEXT_DISABLED while it's off).
Parameters
idstringrequiredpathCompany ID
file_ idstringqueryAnother file on the same record (from the files list). Defaults to the main document.
offsetstringqueryCharacter offset to continue from (next_offset), default 0
limitstringqueryMax characters, 1-20000, default 20000
Response
Document text
Invalid id
Invalid API key
Insufficient scope, or document text is turned off for MCP calls
Company or file not found
Invalid parameter, NO_PRIMARY_DOCUMENT or TEXT_NOT_AVAILABLE
Internal server error
Authorization
bearer_ authhttp (bearer) in headerAPI key or OAuth access token in Authorization header
Scopes: companies:read
oauth2_ authoauth2OAuth authorization code flow with mandatory S256 PKCE.
Scopes: companies:read
apikey_ authapiKey in queryAPI key in query string
Scopes: companies:read
