internal

Upload And Run Requirements Extraction

Upload a guideline PDF and bench the extraction over it.

Returns as soon as the upload exists and the run is registered; extraction takes tens of seconds, so it continues in the background and the run's status reports where it is.

document_type types the stored file, and defaults from the profile: marketing standards for marketing, GENERIC_POLICY otherwise. Pass it explicitly when you know what the document is — the regulatory default is deliberately unopinionated about content, and GENERIC_POLICY is one of the types is_guideline_document refuses, so re-benching that upload from the CLI needs --allow-any-doc-type. A document typed specifically does not.

The run itself is not subject to that guard: the document was uploaded expressly to be benched.

post/internal/evals/requirements-extraction/upload

Request

  • Base URL
    https://api.kobaltlabs.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.kobaltlabs.com/internal/evals/requirements-extraction/upload
  • Auth
    none declared

Request body multipart/form-data

filestring binary required
profile'regulatory' | 'marketing'

Which product's guidance to extract with.

document_typestring nullable
modelstring
temperaturenumber

Response

Successful Response

run_idstring required
upload_idstring required

Changes

No recorded changes to this operation across all 8 revisions of this API.