---
title: "Get instance logs"
method: GET
path: "/instances/{id}/logs"
tags: ["Instance Logs"]
---

# Get instance logs

`GET /instances/{id}/logs`

## Request

- Base URL: `https://api.cloudpepper.io`
- URL: `https://api.cloudpepper.io/instances/{id}/logs`
- Auth: HTTP bearer

Retrieves the Odoo server logs for the specified instance. This endpoint allows you to monitor application activity, troubleshoot issues, and diagnose errors in your Odoo instance. You can use the Range header to request specific portions of the log file, which is useful for large log files or continuous monitoring. Note that this endpoint requires the instance's cloud server to have the Logs capability enabled.

**Key Parameters:**
- `id`: The unique identifier of the instance whose logs you want to retrieve

## Response `200`

Full log content retrieved successfully

## Other responses

- `206`: Partial log content retrieved successfully
- `403`: Access denied or logs capability not enabled
- `404`: Instance not found

---

[API](https://skmtc.dev/cloudpepper/apis/cloudpepper-api-docs.md) · [All operations](https://skmtc.dev/cloudpepper/apis/cloudpepper-api-docs/llms.txt) · [OpenAPI document](https://skmtc.dev/cloudpepper/apis/cloudpepper-api-docs/revisions/b6a59274cedc?raw)
