> ## 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 Symbols - GET /v1/workspaces/:workspace_id/code-repos/:repo_id/symbols

> Return parsed symbols of a repo via GET /v1/workspaces/:workspace_id/code-repos/:repo_id/symbols, filterable by file. Minimum role viewer.

Return the symbols (functions / classes / methods / variables) parsed from a code repository. Filter by `file` query parameter.

## Endpoint

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

## Authentication

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

## Path parameters

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

Workspace id.

**repo\_id** `string` *required*

Repo id.

## Query parameters

**file** `string`

Only return symbols in this file path.

## Response

The response is an array; each element is a symbol:

**id** `string`

Symbol id (`sym_...`).

**repo\_id** `string`

Owning repo id.

**workspace\_id** `string`

Owning workspace id.

**file\_path** `string`

File path of the symbol.

**name** `string`

Symbol name.

**kind** `string`

Symbol kind (`function` / `class` / `method` / `variable`).

**signature** `string`

Signature.

**content** `string`

Symbol source content.

**line\_start** `integer`

Start line.

**line\_end** `integer`

End line.

## Example

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

```json 200 theme={null}
[
  {
    "id": "sym_01a2b3c4d5e6",
    "repo_id": "repo_01a2b3c4d5e6",
    "workspace_id": "ws_01a2b3c4d5e6",
    "file_path": "internal/api/api.go",
    "name": "RegisterRoutes",
    "kind": "function",
    "signature": "func RegisterRoutes(r *gin.Engine, s *Services)",
    "content": "func RegisterRoutes(...) { ... }",
    "line_start": 50,
    "line_end": 129
  }
]
```


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