---
title: "Get provider run logs"
method: GET
path: "/provider-runs/{provider_run_id}/logs"
tags: ["Provider Runs"]
---

# Get provider run logs

`GET /provider-runs/{provider_run_id}/logs`

## Request

- Base URL: `https://api.metorial.com`
- URL: `https://api.metorial.com/provider-runs/{provider_run_id}/logs`
- Auth: HTTP bearer

Retrieves the logs for a specific provider run.

## Path parameters

- `provider_run_id` string, required

## Headers

- `Metorial-Version` string

## Response `200`

Successful response

- ProviderRunLogs
  - `object` 'session.provider_run.logs', required: String representing the object's type
  - `provider_run_id` string, required: Provider run ID
  - `logs` object[], required: Array of log entries
    - `object` 'session.provider_run.item', required: String representing the object's type
    - `timestamp` string, date-time, required: Log timestamp
    - `message` string, required: Log message content
    - `output_type` 'stdout' | 'stderr' | 'debug.info' | 'debug.warning' | 'debug.error', required: Output type of the log entry

## Other responses

- `400`: Invalid parameters or action
- `401`: Missing or invalid API key
- `403`: The key lacks permission for this resource
- `404`: No such resource
- `422`: Validation failed
- `429`: Rate limit exceeded
- `500`: Unexpected server error

---

[API](https://skmtc.dev/metorial/apis/metorial-api.md) - [All operations](https://skmtc.dev/metorial/apis/metorial-api/llms.txt) - [OpenAPI document](https://skmtc.dev/metorial/apis/metorial-api/revisions/10ccc89f3eac?raw)
