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 |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
step_run_id | string | No | ID of a specific step run to retrieve the negotiation version for |
Request Example
Response
Success Response
Status Code:200 OK
Response Fields
| Field | Type | Description |
|---|---|---|
file_id | string | Unique identifier of the latest negotiation document version |
version | integer | Version number of the negotiation document |
our_party_changes | boolean | Whether the latest version contains changes made by your party |
download_url | string | Presigned URL to download the document |
expires_at | string | ISO 8601 timestamp when the download URL expires |
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, you don’t have access to it, or no negotiation version is available.500 Internal Server Error
Returned when the request fails due to a server error.Notes
This endpoint returns the most recent version of the negotiation document. Use the
version field to track how many rounds of negotiation have occurred.Use Cases
This endpoint is useful for:- Negotiation tracking - Monitor the current state of contract negotiations
- Document retrieval - Download the latest version of a negotiated document
- Turn detection - Determine which party made the most recent changes
- Integration - Sync negotiation progress with external contract management systems