# List log entries

```http
GET /projects/{project_reference}/logs
```

List project log entries. Requires project.logs.read.

## Parameters

| Name                | In    | Required | Description                                                                                                                                                                                |
| ------------------- | ----- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `project_reference` | path  | Yes      | Project slug, UUID, or domain that identifies the project.                                                                                                                                 |
| `start`             | query |          | Start time (RFC 3339). Defaults to 1 hour ago. Logs are kept for 31 days and one query spans at most 30 days; an older start or a wider range returns 400. Cannot be combined with cursor. |
| `end`               | query |          | End time (RFC 3339). Defaults to now. Cannot be combined with cursor.                                                                                                                      |
| `cursor`            | query |          | Opaque page\_info.next from a previous page. It continues the original window and sort order; repeat the same filters with every cursor.                                                   |
| `limit`             | query |          | Max entries to return (default: 100, max: 1000)                                                                                                                                            |
| `sort_order`        | query |          | Sort order by timestamp. Defaults to "desc", newest first. Entries that share a timestamp keep one stable order.                                                                           |
| `level`             | query |          | Filter by log level                                                                                                                                                                        |
| `search`            | query |          | Free-text search over the fields each entry shows                                                                                                                                          |
| `environment`       | query |          | Exact runtime environment tag, for example preview or production. Untagged telemetry is excluded.                                                                                          |
| `host`              | query |          | Exact request host (without scheme or path), for example demo.preview\.veryfront.com. Untagged telemetry is excluded.                                                                      |
| `release_id`        | query |          | Exact release ID on emitted logs; untagged logs are excluded.                                                                                                                              |
| `service`           | query |          | Filter by service: veryfront-server, veryfront-api or veryfront-proxy.                                                                                                                     |
| `trace_id`          | query |          | Filter by exact trace ID to correlate logs with a distributed trace.                                                                                                                       |
| `request_id`        | query |          | Filter by exact request ID.                                                                                                                                                                |
| `run_id`            | query |          | Filter by exact run ID to see every service line that belongs to one run.                                                                                                                  |
| `sort_by`           | query |          |                                                                                                                                                                                            |

## Responses

| Status | Description                                                                                                                                                                                                                                                                                                                                                                               |
| ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 200    | Recent project log entries from the runtime (veryfront-server), the API (veryfront-api) and the proxy (veryfront-proxy). Only lines stamped with the project id are returned; API and proxy lines carry only request fields; each entry carries run\_id when the line belongs to a run. Page with page\_info.next: a page can hold fewer entries than limit, or none, and still carry it. |
| 400    | Invalid log query parameters, including a time range beyond retention                                                                                                                                                                                                                                                                                                                     |
| 401    | Unauthorized                                                                                                                                                                                                                                                                                                                                                                              |
| 403    | Forbidden — project.logs.read capability required                                                                                                                                                                                                                                                                                                                                         |
| 404    | Project not found                                                                                                                                                                                                                                                                                                                                                                         |
| 413    | Too many log entries share one timestamp to page through them; add a filter                                                                                                                                                                                                                                                                                                               |
| 429    | Rate limit exceeded                                                                                                                                                                                                                                                                                                                                                                       |
| 500    | Server error                                                                                                                                                                                                                                                                                                                                                                              |
| 502    | Log provider error                                                                                                                                                                                                                                                                                                                                                                        |
| 503    | Service unavailable — log service not configured or unreachable                                                                                                                                                                                                                                                                                                                           |
