# List workspace-creation tasks

```{raw} html
<div class="mo-api-page-show-toc" aria-hidden="true"></div>
```

View workspace-creation tasks submitted by the current identity that are still in progress or recently completed.

```text
GET https://moi.matrixorigin.cn/newmoi/workspaces/creations
```

## Before you call

Prepare a [personal access token](../../../../guides/genesis/api-keys.md#create-and-manage-personal-access-tokens). You do not need to enter a workspace before calling this API.

## Request example

Replace `$AI_STUDIO_API_KEY` with an actual value.

```bash
curl "https://moi.matrixorigin.cn/newmoi/workspaces/creations" \
  -H "X-API-Key: $AI_STUDIO_API_KEY"
```

## Successful response

On success, the API returns 200. If there are no tasks, `data.creations` is an empty array. A record represents a created workspace only when its status is `succeeded` and it includes `workspace_id`.

:::::::{div} mo-api-tabs
::::::{tab-set}
:::::{tab-item} Response example

```json
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "creations": [
      {
        "id": "creation_01",
        "name": "Analytics workspace",
        "status": "succeeded",
        "workspace_id": "ws_01",
        "created_at": "2026-08-28T09:00:00Z",
        "updated_at": "2026-08-28T09:01:00Z"
      }
    ]
  }
}
```

:::::
:::::{tab-item} Field details

| Field | Type | Description |
| --- | --- | --- |
| `code` | string | `OK` on success. |
| `msg` | string | `OK` on success. |
| `data.creations` | array of object | Creation tasks for the current identity. |
| `data.creations.id` | string | Workspace-creation task ID. |
| `data.creations.name` | string | Name of the workspace to create. |
| `data.creations.status` | string | Task status: `pending`, `running`, `succeeded`, `failed`, or `cleanup_pending`. |
| `data.creations.workspace_id` | string | Created workspace ID. Omitted if creation has not succeeded. |
| `data.creations.error_code` | string | Error code when creation fails. Omitted otherwise. |
| `data.creations.created_at` | string | Task creation time. |
| `data.creations.updated_at` | string | Task update time. |

:::::
::::::
:::::::

## Error response

:::::::{div} mo-api-tabs
::::::{tab-set}
:::::{tab-item} Response example

```json
{
  "code": "ErrServer",
  "msg": "Internal server error",
  "data": null
}
```

:::::
:::::{tab-item} Field details

| Field | Type | Description |
| --- | --- | --- |
| `code` | string | Error code. |
| `msg` | string | Human-readable error message. |
| `data` | null | `null` in an error response. |

:::::
::::::
:::::::

## Next steps

For a successful task that returned `workspace_id`, [list workspaces](list-workspaces.md#query-parameters) to confirm that the workspace is accessible.
