Skip to main content
GET
/
tasks
/
{taskIdOrSlug}
Get task
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>"
  }
}
Look up a task by id (UUID) or slug.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

taskIdOrSlug
string
required

Task id (UUID) or task slug.

Response

Task detail

task
object
required
latestJob
object
required