> ## Documentation Index
> Fetch the complete documentation index at: https://vastai-80aa3a82-auto-cli-sdk-preview-pr-398.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# VastAI.get_endpt_logs

Fetch logs for a serverless endpoint.

## Signature

```python theme={null}
VastAI.get_endpt_logs(
    id: int,
    level: int = 1,
    tail: Optional[int] = None
) -> dict
```

## Parameters

<ParamField path="id" type="int" required>
  id of endpoint group to fetch logs from
</ParamField>

<ParamField path="level" type="int" default="1">
  log detail level (0 to 3)
</ParamField>

<ParamField path="tail" type="Optional[int]" />

## Returns

`dict`

## Example

```python theme={null}
from vastai import VastAI

client = VastAI(api_key="YOUR_API_KEY")
result = client.get_endpt_logs(id=12345)
print(result)
```
