Tasuku
ReferenceAPI referenceWorkflows

Read a work item with its conversation, runs, plans, and outputs

GET/organizations/{organization_id}/work-items/{work_item_id}

Authorization

tasuku_session<token>

In: cookie

Path Parameters

organization_id*string
Length1 <= length <= 128
work_item_id*string
Length1 <= length <= 128

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/organizations/string/work-items/string"
{  "data": {    "work_item": {      "id": "string",      "organization_id": "string",      "title": "string",      "kind": "QUESTION",      "state": "OPEN",      "phase": "INTAKE",      "waiting_reason": "CONTEXT",      "active_run_id": "string",      "available_actions": [        "APPROVE"      ],      "source": "GITHUB",      "primary_repository_id": "string",      "requested_by_login": "string",      "source_url": "http://example.com",      "summary": "string",      "completed_at": "2019-08-24T14:15:22Z",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    },    "artifacts": [      {        "id": "string",        "artifact_type": "RESEARCH_REPORT",        "version": 1,        "status": "CURRENT",        "structured_content": {},        "rendered_markdown": "string",        "format": "MARKDOWN",        "media_type": "string",        "publication_status": "NOT_CONFIGURED",        "created_at": "2019-08-24T14:15:22Z"      }    ],    "files": [      {        "id": "string",        "workflow_run_id": "string",        "file_name": "string",        "label": "string",        "media_type": "string",        "size_bytes": 1,        "sha256": "stringstringstringstringstringstringstringstringstringstringstri",        "created_at": "2019-08-24T14:15:22Z"      }    ],    "resources": [      {        "id": "string",        "resource_type": "SLACK_THREAD",        "resource_key": "string",        "resource_url": "http://example.com",        "metadata": {},        "created_at": "2019-08-24T14:15:22Z"      }    ],    "messages": [      {        "id": "string",        "source": "SLACK",        "source_key": "string",        "author": "string",        "kind": "REQUEST",        "body": "string",        "metadata": {},        "created_at": "2019-08-24T14:15:22Z"      }    ],    "plans": [      {        "id": "string",        "source_run_id": "string",        "code": "string",        "status": "PENDING",        "structured_content": {},        "rendered_markdown": "string",        "github_comment_url": "http://example.com",        "approved_by_login": "string",        "created_at": "2019-08-24T14:15:22Z"      }    ],    "runs": [      {        "id": "string",        "workflow_type": "string",        "status": "string",        "current_phase": "string",        "error_message": "string",        "created_at": "2019-08-24T14:15:22Z",        "updated_at": "2019-08-24T14:15:22Z"      }    ],    "actions": [      {        "id": "string",        "workflow_run_id": "string",        "actor_login": "string",        "source": "SLACK",        "action": "APPROVE",        "from_state": "OPEN",        "to_state": "OPEN",        "from_phase": "string",        "to_phase": "string",        "message": "string",        "created_at": "2019-08-24T14:15:22Z"      }    ]  }}