Quickstart
// Start of Selection This guide provides a streamlined approach to using the Chunkr API for document processing and analysis. The way you use the API is by creating a task for each document you want to process, and then polling the task until it is completed.
Setup
-
Create an Account
Go to chunkr.ai and create an account. Once logged in, navigate to the API section to obtain your API key.
-
Create a task
Use the following curl command to create a new task:
Note: The
json_schema
parameter is optional. When provided, it should be a list of properties for structured extraction. If you do not require structured data extraction, you can omit this field.This command will return the task object containing the
task_id
needed for polling the task. -
Get the task
Use the following curl command to check the status of your task:
Keep polling this endpoint until the
status
field in the response changes toSucceeded
. Once successful, theoutput
field in the response will contain the processed data. -
Interpreting the Response
Here is an example of what the output might look like. For a full list of fields and explanations of the output, refer to the task response page.