> ## Documentation Index
> Fetch the complete documentation index at: https://docs.selfbench.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# List Tasks

> List generated tasks for a connected repository.

<ParamField path="org" type="string" required>Workspace login.</ParamField>
<ParamField path="owner" type="string" required>GitHub owner.</ParamField>
<ParamField path="name" type="string" required>Repository name.</ParamField>
<ParamField header="Authorization" type="string" required>`Bearer` plus a SelfBench API key.</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl https://app.selfbench.dev/api/orgs/mupt-ai/repos/mupt-ai/self-bench/tasks \
    -H "Authorization: Bearer $SELFBENCH_API_KEY"
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "tasks": [{
      "runId": "batch-…",
      "taskId": "task-id",
      "difficulty": "medium",
      "state": "accepted",
      "sourcePr": 123
    }]
  }
  ```
</ResponseExample>

The example omits progress, review, and artifact fields. Only human-approved tasks can be evaluated.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.