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

# List Code Repos - GET /v1/workspaces/:workspace_id/code-repos

> Return code repos visible to the caller via GET /v1/workspaces/:workspace_id/code-repos. Minimum role viewer.

Return the code repositories visible to the current user in a workspace.

## Endpoint

```http theme={null}
GET /v1/workspaces/:workspace_id/code-repos
```

## Authentication

`Authorization: Bearer <jwt>` or `X-API-Key <sk_...>`. Minimum role: **viewer**.

## Path parameters

**workspace\_id** `string` *required*

Workspace id.

## Response

The response is an array; each element is a repo (fields identical to [Import Repo](https://docs.ariacompute.com/api-reference/memo/code-repos/import.md)).

## Example

```bash cURL theme={null}
curl https://memo.ariacompute.com/v1/workspaces/ws_01a2b3c4d5e6/code-repos \
  -H "Authorization: Bearer <jwt>"
```

```json 200 theme={null}
[
  {
    "id": "repo_01a2b3c4d5e6",
    "workspace_id": "ws_01a2b3c4d5e6",
    "owner_id": "usr_01a2b3c4d5e6",
    "url": "https://github.com/ariacompute/ariamem",
    "branch": "main",
    "status": "ready",
    "visibility": "private",
    "error": "",
    "created_at": "2026-10-12T11:00:00Z",
    "updated_at": "2026-10-12T11:02:00Z"
  }
]
```


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