Documentation Index
Fetch the complete documentation index at: https://docs.chamelio.ai/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Authentication
This endpoint requires authentication via API key. Include your API key in theX-API-Key header:
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
task_id | integer | Yes | Unique identifier for the task |
Request Example
Response
Success Response
Status Code:200 OK
Response Fields
| Field | Type | Description |
|---|---|---|
task_id | integer | ID of the task |
files | array | List of files associated with the task (maximum 10 files returned) |
total_files | integer | Total number of files for this task |
File Object Fields
| Field | Type | Description |
|---|---|---|
file_id | string | Unique file identifier (format: document_{id} for documents, attachment_{id} for attachments) |
file_name | string | Name of the file |
variable_id | string | ID of the variable this file is associated with (null if generated by a step) |
created_at | string | ISO 8601 timestamp when the file was created/uploaded |
step_id | string | ID of the workflow step that created or collected this file |
Error Responses
401 Unauthorized
Returned when authentication fails. See the authentication errors section for details.404 Not Found
Returned when the task doesn’t exist or you don’t have access to it.500 Internal Server Error
Returned when the request fails due to a server error.Notes
This endpoint returns up to 10 files by default. If the task has more than 10 files, only the first 10 are returned. Use the
total_files count to determine if there are more files.Use Cases
This endpoint is useful for:- File inventory - List all files involved in a workflow task
- Document tracking - Track which documents were uploaded or generated at each step
- Bulk download - Retrieve file IDs for downloading all task-related files
- Audit trails - Document what files were part of a workflow execution