---
title: "GET /v1/logs/{endpoint_name}"
method: GET
path: "/v1/logs/{endpoint_name}"
tags: ["endpoint"]
---

# GET /v1/logs/{endpoint_name}

`GET /v1/logs/{endpoint_name}`

## Request

- Base URL: `https://api.octoai.cloud`
- URL: `https://api.octoai.cloud/v1/logs/{endpoint_name}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/octoml/apis/octoai-api/docs/v1/logs/:endpoint_name/get.ts> (a function with typed inputs; its response is checked against the schema)

Return endpoint logs

## Path parameters

- `endpoint_name` string, required

## Query parameters

- `begin_time` string, date-time
- `end_time` string, date-time
- `max_lines` integer
- `replica_id` string

## Response `200`

A set of endpoint logs

- LogEntry[]
  - `timestamp` string, date-time, required: time of the log entry (ISO8601 format)
  - `replica_id` string, required: unique ID of the replica
  - `data` string, required: user-provided log data

---

[API](https://skmtc.dev/octoml/apis/octoai-api.md) - [All operations](https://skmtc.dev/octoml/apis/octoai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/octoml/apis/octoai-api/revisions/ff4ad53097bc?raw)
