v1
latestOpenAPI 3.1.02026-07-265094114.0 KBTasks
Get agent task by ID
Retrieve a specific agent task by its unique identifier
get/v1/tasks/{id}
Path parameters
idstring required
Example:agt_0190f3a1b2c34d5e6f7a8b9c0d1e2f3a
The external ID (agt_…) or internal UUID of the agent task
Query parameters
versionnumber
The agent task version to filter by. If not provided, the latest version will be used.
Response
Successfully retrieved agent task
Example response
{
"requestId": "07008c5a-f916-4bdc-bfda-e8f6c328f7c5",
"resource": "tasks",
"data": {
"id": "agt_0190f3a1b2c34d5e6f7a8b9c0d1e2f3a",
"name": "Grammar Checker",
"description": "Ensure your text is free from grammar errors to enhance clarity and professionalism",
"contextItems": [
{
"id": "5e9f3d7b-9ec6-44e7-b752-3977fef34c18",
"name": "Original text",
"type": "TEXTAREA",
"question": "What text do you want to check?",
"options": [
"grammar",
"writing"
]
}
],
"version": 1,
"scope": "PUBLIC",
"updatedAt": "2024-10-29T03:47:44.468Z",
"createdAt": "2024-10-02T03:51:26.020Z",
"longDescription": "#### Overview\nElevate the quality of your content by running it through a comprehensive grammar checker...",
"publishedAt": "2024-10-14T04:12:20.369Z",
"categories": []
}
}