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

# Set 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.



## OpenAPI

````yaml https://api.gleap.io/api-docs.json put /s2s/conversations/{conversationId}/network-logs
openapi: 3.0.0
info:
  title: gleap-server
  version: 14.0.0
  contact: {}
servers:
  - url: https://api.gleap.io/v3
security: []
paths:
  /s2s/conversations/{conversationId}/network-logs:
    put:
      tags:
        - S2S Conversations
      summary: Set network logs
      description: |-
        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.
      operationId: SetNetworkLogs
      parameters:
        - in: path
          name: conversationId
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/S2SPutNetworkLogsBody'
      responses:
        '204':
          description: No Content
      security:
        - s2s: []
components:
  schemas:
    S2SPutNetworkLogsBody:
      properties:
        requests:
          items:
            $ref: '#/components/schemas/S2SNetworkLogRequestInput'
          type: array
          description: >-
            Snapshot of recent network requests (max 100 entries, 2 MB).
            Replaces any previous snapshot for this conversation.
      required:
        - requests
      type: object
      additionalProperties: false
    S2SNetworkLogRequestInput:
      properties:
        url:
          type: string
          description: Full request URL.
        type:
          type: string
          description: HTTP method, e.g. "GET".
        date:
          type: string
          description: ISO timestamp of the request.
        duration:
          type: number
          format: double
          description: Duration in milliseconds.
        success:
          type: boolean
        request:
          $ref: '#/components/schemas/Record_string.unknown_'
          description: Request details, e.g. { headers, payload }.
        response:
          $ref: '#/components/schemas/Record_string.unknown_'
          description: Response details, e.g. { status, responseText }.
        initiatorType:
          type: string
      required:
        - url
      type: object
      additionalProperties: false
    Record_string.unknown_:
      properties: {}
      type: object
      description: Construct a type with a set of properties K of type T
  securitySchemes:
    s2s:
      type: http
      scheme: bearer
      bearerFormat: Service account token (JWT)

````