Skip to main content
GET
/
v1
/
models
/
{model_id}
/
deployments
/
{deployment_id}
/
logs
cURL
curl --request GET \
--url https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/logs \
--header "Authorization: Bearer $BASETEN_API_KEY"
{
  "logs": [
    {
      "timestamp": "<string>",
      "message": "<string>",
      "replica": "<string>",
      "request_id": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.baseten.co/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Pass your Baseten API key. Clients automatically send Authorization: Bearer <key>. Direct callers can also use Authorization: Api-Key <key>; both schemes are accepted.

Path Parameters

model_id
string
required
deployment_id
string
required

Query Parameters

start_epoch_millis
integer | null

Epoch millis timestamp to start fetching logs

end_epoch_millis
integer | null

Epoch millis timestamp to end fetching logs

direction
enum<string> | null

Sort order for logs

Available options:
asc,
desc
limit
integer | null
default:500

Limit of logs to fetch in a single request

Required range: 1 <= x <= 1000

Response

200 - application/json

A response to querying logs.

logs
LogV1 · object[]
required

Logs for a specific entity.