Data Operations
Getting Tasks
Learn how to retrieve and read task information from Chunkr AI
You can retrieve information about a task at any time using the get_task()
method
This is useful for checking the status of previously created tasks or accessing their results.
Basic Usage
Customizing the Response
The get_task()
method accepts two optional parameters to customize the response:
Response Options
Parameter | Default | Description |
---|---|---|
include_chunks | True | When True , includes all processed chunks in the response. Set to False to receive a lighter response without chunk data. |
base64_urls | False | When True , returns URLs as base64-encoded strings. When False , returns presigned URLs for direct access. |
Async Usage
For async applications, remember to use await
:
Best Practices
- Store task IDs when creating tasks if you need to retrieve them later
- Use
include_chunks=False
when you only need task metadata - Consider using base64 URLs (
base64_urls=True
) when you need to cache or store the URLs locally