Jobs

Read a job's document text

GET
https://api.searchsoftware.nl/v4/records/jobs/{id}/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 jobs: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

idstringrequiredpath

Job ID

file_idstringquery

Another file on the same record (from the files list). Defaults to the main document.

offsetstringquery

Character offset to continue from (next_offset), default 0

limitstringquery

Max characters, 1-20000, default 20000

Response

Document text

Response fields application/json
statusstringokrequired
Example
ok
dataobjectrequired
Show child attributes
idstring

Identifier

Example
vM7Lp2q
typestringdocument_text
Example
document_text
attributesobject
Show child attributes
file_idstring

Identifier

Example
vM7Lp2q
filenamestring
Example
CV Anna Jansen.pdf
mimestring | null
Example
application/pdf
is_primaryboolean
Example
true
total_charsinteger<int32>

Characters of the normalized text

Example
6120
offsetinteger<int32>
Example
0
textstring
Example
Anna Jansen
Senior engineer
next_offsetinteger<int32> | null

Offset of the next chunk; null at the end

400Bad RequestErrorResponse

Invalid id

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "INVALID_ID",
    "status_code": 400,
    "message": "Invalid id"
  }
}
401UnauthorizedErrorResponse

Invalid API key

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "INVALID_API_KEY",
    "status_code": 401,
    "message": "Invalid API key"
  }
}
403ForbiddenErrorResponse

Insufficient scope, or document text is turned off for MCP calls

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "FORBIDDEN",
    "status_code": 403,
    "message": "Insufficient scope"
  }
}
404Not FoundErrorResponse

Job or file not found

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "NOT_FOUND",
    "status_code": 404,
    "message": "Record not found"
  }
}
422Unprocessable EntityErrorResponse

Invalid parameter, NO_PRIMARY_DOCUMENT or TEXT_NOT_AVAILABLE

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "VALIDATION_FAILED",
    "status_code": 422,
    "message": "Validation failed"
  }
}
500Internal Server ErrorErrorResponse

Internal server error

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "INTERNAL_ERROR",
    "status_code": 500,
    "message": "Internal server error"
  }
}

Authorization

bearer_authhttp (bearer) in header

API key or OAuth access token in Authorization header

Scopes: jobs:read

oauth2_authoauth2

OAuth authorization code flow with mandatory S256 PKCE.

Scopes: jobs:read

apikey_authapiKey in query

API key in query string

Scopes: jobs:read