# Session Debug Info

Get debug information for a session including WebSocket endpoints for CDP, recording, and logs.

The debug URL can be opened in a browser for live session monitoring (only availble when session is active)

```
GET/sessions/{session_id}/debug
```

{% tabs %}
{% tab title="200" %}

```javascript
{
  "debug_url": "<string>",
  "ws": {
    "cdp": "<string>",
    "recording": "<string>",
    "logs": "<string>"
  },
  "tabs": [
    {
      "metadata": {
        "tab_id": 123,
        "title": "<string>",
        "url": "<string>"
      },
      "debug_url": "<string>",
      "ws_url": "<string>"
    }
  ]
}
```

{% endtab %}

{% tab title="422" %}

```python
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}
```

{% endtab %}
{% endtabs %}

**Authorizations**

**Authorizations**

<sup>Authorization string header required</sup>

The access token received from the authorization server in the OAuth 2.0 flow.

**Path Parameters**

[<sup>​</sup>](https://docs.notte.cc/api-reference/debug/session-debug-info#parameter-session-id)<sup>session\_id string required</sup>

<details>

<summary>Attributes</summary>

ws.cdpstringrequired

WebSocket URL to connect using CDP protocol

ws.recordingstringrequired

WebSocket URL for live session recording (screenshot stream)

ws.logsstringrequired

WebSocket URL for live logs (obsveration / actions events)

</details>

<details>

<summary>Attributes</summary>

metadataobjectrequired

Hide child attributes

metadata.tab\_idintegerrequired[​](https://docs.notte.cc/api-reference/debug/session-debug-info#response-metadata-title)metadata.titlestringrequired[​](https://docs.notte.cc/api-reference/debug/session-debug-info#response-metadata-url)metadata.urlstringrequired[​](https://docs.notte.cc/api-reference/debug/session-debug-info#response-debug-url)debug\_urlstringrequired[​](https://docs.notte.cc/api-reference/debug/session-debug-info#response-ws-url)ws\_urlstringrequired

</details>
