---
title: "Get initial container statistics"
method: GET
path: "/container/{ocid}/stats"
tags: ["Container"]
---

# Get initial container statistics

`GET /container/{ocid}/stats`

## Request

- Base URL: `https://sylve.lan:8181/api`
- URL: `https://sylve.lan:8181/api/container/{ocid}/stats`
- Auth: API key in header `Authorization`

Get the finest available CPU and memory usage window for a container

## Path parameters

- `ocid` integer, required

## Response `200`

Success

- GithubComAlchemillahqSylveInternalAPIResponseGithubComAlchemillahqSylveInternalDbStatsBootstrapGithubComAlchemillahqSylveInternalDbModelsContainerStats
  - `data` GithubComAlchemillahqSylveInternalDbStatsBootstrapGithubComAlchemillahqSylveInternalDbModelsContainerStats
    - `historyState` 'available' | 'never-recorded' | 'outside-supported-range'
    - `lastSampleAt` string
    - `points` GithubComAlchemillahqSylveInternalDbModelsContainerStats[]
      - `containerId` integer
      - `cpuUsage` number
      - `createdAt` string
      - `id` integer
      - `memoryUsage` number
    - `resolvedStep` 'minutely' | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly'
  - `error` string
  - `message` string
  - `status` string

## Changes

- **2026-11-03** `9565cdd0abf5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/alchemillahq/apis/sylve-api/changes/container/:ocid/stats/get.md)

---

[API](https://skmtc.dev/alchemillahq/apis/sylve-api.md) - [All operations](https://skmtc.dev/alchemillahq/apis/sylve-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alchemillahq/apis/sylve-api/revisions/9565cdd0abf5?raw)
