---
title: "Set network logs"
url: https://docs.gleap.ai/en/reference/rest-api/set-network-logs
method: PUT
path: "/s2s/conversations/{conversationId}/network-logs"
api: "API Reference"
tag: "S2S Conversations"
operationId: "SetNetworkLogs"
updatedAt: "2026-11-01T18:40:15.677Z"
language: en
---

# Set network logs

`PUT https://api.gleap.io/v3/s2s/conversations/{conversationId}/network-logs`

Attach a network log snapshot to the conversation — the same logs `Gleap.logNetwork()` collects in the SDK flow. Shown to agents in the conversation's "Logs" panel. Each call replaces the previous snapshot (max 100 requests, 2 MB). Not delivered via webhooks or the stream.

## Authorization

- `Authorization` (header, required): `Bearer <token>`

## Path parameters

- `conversationId` (string, required)

## Request body (`application/json`, required)

- `requests` (object[], required): Snapshot of recent network requests (max 100 entries, 2 MB). Replaces any previous snapshot for this conversation.
  - `url` (string, required): Full request URL.
  - `type` (string): HTTP method, e.g. "GET".
  - `date` (string): ISO timestamp of the request.
  - `duration` (number<double>): Duration in milliseconds.
  - `success` (boolean)
  - `request` (any): Request details, e.g. { headers, payload }.
  - `response` (any): Response details, e.g. { status, responseText }.
  - `initiatorType` (string)

## Example request

```bash
curl --request PUT \
  --url 'https://api.gleap.io/v3/s2s/conversations/{conversationId}/network-logs' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "requests": [
    {
      "url": "<url>"
    }
  ]
}'
```

## Responses

### 204

No Content
