curl --request GET \
--url https://api.avidoai.com/v0/issues/{id}/suggested-task \
--header 'x-api-key: <api-key>' \
--header 'x-application-id: <api-key>'{
"task": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"title": "Credit Card Block",
"description": "User wants to block their credit card",
"type": "NORMAL",
"status": "DRAFT",
"applicationId": "456e7890-e89b-12d3-a456-426614174000",
"topicId": "789e4567-e89b-12d3-a456-426614174000",
"createdAt": "2024-01-05T12:34:56.789Z",
"modifiedAt": "2024-01-05T12:34:56.789Z",
"inputExamples": [],
"metadata": {},
"evalDefinitions": [],
"passRate": 0,
"monitoringPassRate": 0
}
}Retrieves the DRAFT task associated with an issue of type SUGGESTED_TASK. This endpoint only works for issues that have a taskId and are of type SUGGESTED_TASK with a task in DRAFT status.
curl --request GET \
--url https://api.avidoai.com/v0/issues/{id}/suggested-task \
--header 'x-api-key: <api-key>' \
--header 'x-application-id: <api-key>'{
"task": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"title": "Credit Card Block",
"description": "User wants to block their credit card",
"type": "NORMAL",
"status": "DRAFT",
"applicationId": "456e7890-e89b-12d3-a456-426614174000",
"topicId": "789e4567-e89b-12d3-a456-426614174000",
"createdAt": "2024-01-05T12:34:56.789Z",
"modifiedAt": "2024-01-05T12:34:56.789Z",
"inputExamples": [],
"metadata": {},
"evalDefinitions": [],
"passRate": 0,
"monitoringPassRate": 0
}
}Your unique Avido API key
Your unique Avido Application ID
The unique identifier of the issue
"123e4567-e89b-12d3-a456-426614174000"
Successfully retrieved suggested task
Successful response containing the suggested task (DRAFT) associated with the issue
A task that represents a specific job-to-be-done by the LLM in the user application.
Show child attributes