---
title: "Get site logs"
method: GET
path: "/sites/environments/{env_id}/logs"
tags: ["Logs"]
---

# Get site logs

`GET /sites/environments/{env_id}/logs`

## Path parameters

- `env_id` string, uuid, required

## Query parameters

- `file_name` 'error' | 'access' | 'kinsta-cache-perf', required
- `lines` number, required

## Response `200`

Successfully found site logs

- GetLogsResponseSchema
  - `environment` ActiveContinerEnvironment, required
    - `container_info` Logs, required
      - `logs` string, required

## Other responses

- `400` — One or more of the required parameters were not provided to the request
- `401` — No or invalid API key provided to the request
- `404` — Could not find the site logs or the user does not have permissions to retrieve data
- `500` — Error occurred while retrieving site logs

---

[API](https://skmtc.net/sevalla/apis/sevalla-api.md) · [All operations](https://skmtc.net/sevalla/apis/sevalla-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sevalla/sevalla-api/revisions/ab648a80ca4d/schema)
