---
title: "Get the log of a container"
method: GET
path: "/containers/{id}/logs"
tags: ["Containers"]
---

# Get the log of a container

`GET /containers/{id}/logs`

## Request

- Base URL: `https://api.hypamoon.com/api/v1`
- URL: `https://api.hypamoon.com/api/v1/containers/{id}/logs`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://app.hypamoon.com/oauth/authorize`, token URL `https://api.hypamoon.com/oauth/token`, scopes: `sites:read`)

The newest lines: requests, instance starts and stops (with exit codes), health checks after a deploy, and outbound calls (allowed, through the vault, refused). Never headers, queries, bodies or secrets. Seven days.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `limit` integer
- `errors_only` boolean

## Response `200`

The lines, newest first.

- object
  - `data` object[], required
    - `at` string, required
    - `kind` string, required
    - `method` string, required
    - `path` string, required
    - `status` integer, required
    - `duration_ms` integer, required
    - `message` string, required
    - `version` string, required

## Other responses

- `400`: Bad Request: invalid_parameter.
- `401`: Unauthorized: unauthorized, missing_api_key, invalid_api_key, api_key_revoked, project_deleted.
- `403`: Forbidden: project_not_enabled, key_mode_mismatch, missing_scope, verification_required.
- `404`: Not Found: not_found.
- `429`: Too Many Requests: rate_limited.
- `500`: Internal Server Error: internal_error.
- `503`: Service Unavailable: service_unavailable.

---

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