> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rustybrowser.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Fetch Logs

> Retrieve logs for a browser session

## Description

Returns the log output for a browser session. Useful for debugging failed instructions or tracing browser activity.

## Authentication

Open-source deployments do not require authentication by default. If your server config enables `X-API-Key`, include that header with the request.

## Path Parameters

<ParamField path="id" type="string" required>
  The browser ID to fetch logs for.
</ParamField>

## Response

<ResponseField name="logs" type="array">
  Array of log entries for the session.
</ResponseField>

## Example

```bash theme={null}
curl http://localhost:8080/browsers/exc-3328818e-3ef8-4579-856e-bbb22a7df67b/logs/
```

<ResponseExample>
  ```json 500 No Logs Found theme={null}
  {
    "error": {
      "code": "INTERNAL_ERROR",
      "message": "Flux logs: HTTP error (404): execution not found"
    }
  }
  ```
</ResponseExample>
