# Get trace

```http
GET /projects/{project_reference}/traces/{trace_id}
```

Get a trace. Requires project.logs.read.

## Parameters

| Name                | In   | Required | Description |
| ------------------- | ---- | -------- | ----------- |
| `project_reference` | path | Yes      |             |
| `trace_id`          | path | Yes      |             |

## Responses

| Status | Description                                                                                                                                                                                                                                                                                                         |
| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 200    | Project-scoped trace detail from Grafana Cloud Tempo. `spans` holds at most 200 entries: the root span, error spans and their ancestors, then remaining spans. When `span_count` is larger, list the rest with GET /projects/{project\_reference}/traces/{trace\_id}/spans (status=error returns every error span). |
| 400    | Invalid trace identifier                                                                                                                                                                                                                                                                                            |
| 401    | Unauthorized                                                                                                                                                                                                                                                                                                        |
| 403    | Forbidden — project.logs.read capability required                                                                                                                                                                                                                                                                   |
| 404    | Project or trace not found                                                                                                                                                                                                                                                                                          |
| 429    | Rate limit exceeded                                                                                                                                                                                                                                                                                                 |
| 502    | External trace provider error from Grafana Cloud Tempo.                                                                                                                                                                                                                                                             |
| 503    | Trace service unavailable or Grafana Cloud Tempo read path is not configured.                                                                                                                                                                                                                                       |
