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

# Read server-registered task metadata

> Registered task

> [!WARNING]
>
> **Confirm your deployment before running this request.** This page describes an API contract;
> a published reference does not establish hosted availability. Check the dated
> [host report](/api-reference/hosts) and obtain your deployment URL and credentials.
> Replace the example host if your provisioned service uses a different URL.

### Path parameters

**taskId** `string (uuid)` *required*

### Response

`RegisteredAgentTask`

**task\_id** `string` *required*

**parent\_task\_id** `string,null` *required*

**sandbox\_id** `string` *required*

**name** `string` *required*

Minimum length: `1`. Maximum length: `128`.

**objective** `string` *required*

Minimum length: `1`. Maximum length: `16000`.

**command\_sha256** `string` *required*

**root\_task\_id** `string` *required*

**depth** `integer` *required*

Minimum: `0`. Maximum: `16`.

**created\_at** `string (date-time)` *required*

**access\_role** `string` *required*

Allowed values: `'owner'`, `'operator'`, `'viewer'`.

**lineage** `string` *required*

Fixed value: `'server_verified'`.

**worker\_status** `string` *required*

Fixed value: `'not_observed'`.

### Status codes

| Code | Meaning |
| - | - |
| `200` | Registered task |
| `400` | Invalid task request or query |
| `401` | Authentication required |
| `403` | Insufficient scope, task role or sandbox permission |
| `404` | Task unavailable to this principal |

### Using this contract

Read the [source OpenAPI document](/spec/sandbox.json) for declared schemas and alternatives.
This page also includes documented corrections from the [spec overlays](https://github.com/stateset/docs/tree/main/spec/overlays).
Example IDs and values are illustrative; replace them with records from your workspace.

```bash cURL theme={null}
curl --silent --show-error --fail-with-body --request GET \
  --url 'https://api.sandbox.stateset.app/api/v1/agent-tasks/{taskId}' \
  --header 'Authorization: ApiKey YOUR_API_KEY'
```

```json 200 theme={null}
{
  "task_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "parent_task_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "sandbox_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "name": "prepared-check",
  "objective": "Check the prepared workspace input",
  "command_sha256": "47e77e8adb10a12bdf7abc3b7b45c4936fe802109d4ac06b977a4cda52dd9837",
  "root_task_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "depth": 1,
  "created_at": "2026-08-31T14:22:05Z",
  "access_role": "owner",
  "lineage": "server_verified",
  "worker_status": "not_observed"
}
```


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