POST
/
api
/
v1
/
task
curl --request POST \
  --url https://api.chunkr.ai/api/v1/task \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: multipart/form-data' \
  --form chunk_processing=null \
  --form expires_in=123 \
  --form high_resolution=false \
  --form ocr_strategy=null \
  --form pipeline=null \
  --form segment_processing=null \
  --form segmentation_strategy=null
{
  "configuration": {
    "chunk_processing": {
      "ignore_headers_and_footers": true,
      "target_length": 512
    },
    "expires_in": 123,
    "high_resolution": true,
    "input_file_url": "<string>",
    "json_schema": "<any>",
    "model": null,
    "ocr_strategy": "All",
    "pipeline": null,
    "segment_processing": {
      "Caption": null,
      "Footnote": null,
      "Formula": null,
      "ListItem": null,
      "Page": null,
      "PageFooter": null,
      "PageHeader": null,
      "Picture": null,
      "SectionHeader": null,
      "Table": null,
      "Text": null,
      "Title": null
    },
    "segmentation_strategy": "LayoutAnalysis",
    "target_chunk_length": 123
  },
  "created_at": "2023-11-07T05:31:56Z",
  "expires_at": "2023-11-07T05:31:56Z",
  "finished_at": "2023-11-07T05:31:56Z",
  "message": "<string>",
  "output": null,
  "started_at": "2023-11-07T05:31:56Z",
  "status": "Starting",
  "task_id": "<string>",
  "task_url": "<string>"
}

Authorizations

Authorization
string
header
required

Body

multipart/form-data

Multipart form request to create an task

The body is of type object.

Response

200
application/json

Detailed information describing the task, its status and processed outputs

The response is of type object.