Fetch the latest status and details for a task.
cURL
curl --request GET \ --url https://twill.ai/api/v1/tasks/{taskIdOrSlug} \ --header 'Authorization: Bearer <token>'
{ "task": { "id": "<string>", "slug": "<string>", "title": "<string>", "url": "<string>", "repositoryUrl": "<string>", "baseBranch": "<string>", "featureBranch": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" }, "latestJob": { "id": "<string>", "status": "PENDING", "type": "<string>", "startedAt": "2023-11-07T05:31:56Z", "completedAt": "2023-11-07T05:31:56Z", "pr": { "url": "<string>", "number": 123, "title": "<string>" }, "plan": "<string>", "planOutcome": "<string>" } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Task id (UUID) or task slug.
Task detail
Show child attributes
Was this page helpful?