Get Deployment Logs
Changed onRetrieve logs for a deployment (across all of its workers).
Use after/before/order on the first request to set the time range and sort order; for the next pages pass the cursor from the previous response (it remembers the range and order).
log_type=build serves the managed build pipeline's output instead. It pages the same way, and a null next_cursor means the window is drained.
Request
- Base URLhttps://api.mistral.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Query parameters
Which log stream a deployment's logs come from.
runtime is what the workers themselves emit. build only exists for managed deployments: it is the image build pipeline's output, which no worker reports.
Which stream to read. 'runtime' is the workers' own logs; 'build' reads the image build output and requires a managed deployment.
Filter logs by worker name
Filter logs by workflow name
Only return logs at or after this timestamp
Only return logs before this timestamp
First-page sort order: 'asc' (oldest first) or 'desc'. Ignored when cursor is set.
Pagination cursor from a previous response's next_cursor; carries the window and order
Maximum number of logs to return
Response
Successful Response
Changes
- info
added the new optional
queryrequest parameterlog_type
- info
- info
endpoint added
- info