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

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

training_project_id
string
required
training_job_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
min_level
enum<string> | null

Minimum log severity to include. Omit to return all log lines, including lines that have no level. Any explicit value returns lines at or above that severity and drops lines without a level. A log severity level.

Available options:
DEBUG,
INFO,
WARNING,
ERROR

Response

200 - application/json

A response to querying logs.

logs
LogV1 · object[]
required

Logs for a specific entity.