Docs
API 1.39
Status
Programs

Run extraction against a stored snapshot without fetching

POST /v1/programs/{id}/versions/{n}/replay: Run extraction against a stored snapshot without fetching

POST /v1/programs/{id}/versions/{n}/replay
Operation idreplayProgramVersion
Key scoperun: keys that run jobs (and admin keys)
SectionPrograms

#Parameters

NameInTypeRequiredDescription
idpathstringyesmin length 1
npathintegeryes≥ 1

#Request body

FieldTypeRequiredDescription
snapshotstring or "ground_truth"yes

#Example request

curl -X POST "https://api.kaab.ist/v1/programs/{id}/versions/{n}/replay" \
  -H "Authorization: Bearer $KAAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"snapshot":"ground_truth"}'

#Responses

#200

Replay result

FieldTypeRequiredDescription
datamap of anyyes
rawmap of anyyes
warningsobjectyes
warnings[].codeenum (19 values)yesone of "null_marker", "parse_failed", "out_of_range", "required_missing", "list_short", "fill_rate_drop", "escalated", "healed_locator_used", "obstacle_dismissed", "field_empty", "step_skipped", "cache_hit", "byo_fallback_used", "pdf_source_not_extractable", "pdf_no_text", "pdf_pages_truncated", "redirect_not_followed", "pagination_incomplete", "captcha_inject_navigated"
warnings[].fieldstring or null
warnings[].rawstring or null
warnings[].stepstring or null
warnings[].messagestring
warnings[].detailstring
warnings[].countinteger≥ 1
warnings[].ofinteger≥ 0
warnings[].hintobject
warnings[].hint.date_formatstring
warnings[].hint.date_formatsstring
warnings[].hint.ambiguoustrue
warnings[].hint.localestring

#Errors

Every error answers with the error envelope; its code is one of the error codes.

StatusWhen
400request_invalid: request validation failed
401Missing or invalid API key
402insufficient_credits: top up to continue
403The key's scope does not cover this operation
404Resource not found
409Conflicting state (see error.code)
422Semantically invalid request (see error.code)
429Rate limited; see Retry-After
500internal: unexpected server error

Was this page helpful?