---
title: "get endpoint logs"
method: POST
path: "/get_endpoint_logs/"
tags: ["Serverless"]
---

# get endpoint logs

`POST /get_endpoint_logs/`

Retrieves logs for a specific endpoint by name.

CLI Usage: `vastai get endpoint logs <endpoint_name> [--tail <num_lines>]`

## Request body

- object
  - `endpoint` string, required — Name of the endpoint
  - `tail` integer — Number of log lines to retrieve from the end

## Response `200`

Successfully retrieved endpoint logs.

- union
  - object
    - `logs` string — The endpoint logs
  - string — Error message when endpoint not found or authentication fails

---

[API](https://skmtc.net/vast/apis/vast-ai-api.md) · [All operations](https://skmtc.net/vast/apis/vast-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vast/vast-ai-api/versions/4ed14f79f796/schema)
