POST
/
get_endpoint_logs
/
get endpoint logs
curl --request POST \
  --url https://run.vast.ai/get_endpoint_logs/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "endpoint": "vLLM-Qwen3-8B",
  "tail": 1000
}'
{
  "logs": "2023-10-01 12:00:00 - Worker started\n2023-10-01 12:01:00 - Request processed"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
endpoint
string
required

Name of the endpoint

Example:

"vLLM-Qwen3-8B"

tail
integer
default:10000

Number of log lines to retrieve from the end

Example:

1000

Response

200 - application/json

Successfully retrieved endpoint logs.

logs
string

The endpoint logs

Example:

"2023-10-01 12:00:00 - Worker started\n2023-10-01 12:01:00 - Request processed"