# Get embedding

```http
GET /projects/{project_reference}/embeddings/{chunkId}
```

Return a chunk embedding. Requires project.knowledge.read.

## Parameters

| Name                | In    | Required | Description                                                                                                                                                                                                       |
| ------------------- | ----- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference` | path  | Yes      |                                                                                                                                                                                                                   |
| `chunkId`           | path  | Yes      |                                                                                                                                                                                                                   |
| `environment`       | query |          | Deployment index to read. Omit all scope selectors for project-wide stored embeddings, including branch, release, historical, and legacy indexes. PREVIEW explicitly selects current main or the selected branch. |
| `branch_id`         | query |          | Select a current preview branch. Use null to explicitly select current main; when PREVIEW is set, an omitted branch also selects main.                                                                            |
| `release_id`        | query |          | Select a frozen release by ID. RELEASE is inferred when environment is omitted.                                                                                                                                   |
| `release_version`   | query |          | Select a frozen release by version when no release ID is supplied. RELEASE is inferred when environment is omitted.                                                                                               |
| `dimension`         | query | Yes      | Vector dimension to retrieve.                                                                                                                                                                                     |
| `include_vector`    | query |          |                                                                                                                                                                                                                   |

## Responses

| Status | Description                                                        |
| ------ | ------------------------------------------------------------------ |
| 200    | Embedding metadata and optionally the vector for a specific chunk. |
| 400    | Bad request                                                        |
| 401    | Unauthorized                                                       |
| 403    | Forbidden                                                          |
| 404    | Chunk or embedding not found                                       |
| 500    | Server error                                                       |
