{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gtm-api/json-schema/gtm-api-search-cloud-browser-sessions-response-schema.json",
  "title": "SearchCloudBrowserSessionsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gtm-api-cloud-browser-sessions-api-openapi.yml#/components/schemas/SearchCloudBrowserSessionsResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "enum": [
        true
      ]
    },
    "operation": {
      "type": "string",
      "enum": [
        "search"
      ]
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "item": {
            "type": "object",
            "properties": {
              "sid": {
                "type": "string"
              },
              "team_sid": {
                "type": "string"
              },
              "antidetect_browser_sid": {
                "type": "string"
              },
              "cloud_browser_sid": {
                "type": "string"
              },
              "linkedin_account_sid": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "connected_user_sid": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "access_key": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Masked smart-link key: cb_ak_ followed by asterisks and the key's last 4 characters. Null when the session used no key at all (access_type internal). Join it to antidetect_browsers.cloud_browser_access[].key on the last 4 characters, never on equality."
              },
              "access_type": {
                "type": "string",
                "enum": [
                  "internal",
                  "external"
                ]
              },
              "ip": {
                "type": "string"
              },
              "ip_country": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "ip_city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "fingerprint": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "user_agent": {
                    "type": "string"
                  },
                  "screen_resolution": {
                    "type": "string"
                  },
                  "timezone": {
                    "type": "string"
                  },
                  "language": {
                    "type": "string"
                  },
                  "platform": {
                    "type": "string"
                  }
                },
                "required": [
                  "user_agent",
                  "screen_resolution",
                  "timezone",
                  "language",
                  "platform"
                ]
              },
              "fingerprint_hash": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "referrer": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "is_login_case": {
                "type": "boolean"
              },
              "login_confirmed_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "login_result": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "success",
                  "cookie_save_failed",
                  "browser_start_failed",
                  "abandoned"
                ]
              },
              "login_error_reason": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "connected_at": {
                "type": "string"
              },
              "disconnected_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "session_duration_seconds": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "disconnect_cause": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "user",
                  "keep_alive_stale",
                  "ttl_expired",
                  "stuck_disconnecting",
                  "maintenance"
                ]
              },
              "disconnect_reason": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": "string"
              }
            },
            "required": [
              "sid",
              "team_sid",
              "antidetect_browser_sid",
              "cloud_browser_sid",
              "linkedin_account_sid",
              "connected_user_sid",
              "access_key",
              "access_type",
              "ip",
              "ip_country",
              "ip_city",
              "fingerprint",
              "fingerprint_hash",
              "referrer",
              "is_login_case",
              "login_confirmed_at",
              "login_result",
              "login_error_reason",
              "connected_at",
              "disconnected_at",
              "session_duration_seconds",
              "disconnect_cause",
              "disconnect_reason",
              "created_at"
            ]
          },
          "included": {
            "type": "object",
            "additionalProperties": {}
          }
        },
        "required": [
          "item",
          "included"
        ]
      }
    },
    "pagination": {
      "type": "object",
      "properties": {
        "next_cursor": {
          "type": [
            "string",
            "null"
          ]
        },
        "has_more": {
          "type": "boolean"
        },
        "total_count": {
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "next_cursor",
        "has_more",
        "total_count"
      ]
    },
    "applied_filters": {
      "type": "object",
      "additionalProperties": {}
    },
    "includes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "meta": {
      "type": "object",
      "properties": {
        "trace_id": {
          "type": "string",
          "description": "UUID v7; same 128-bit value as the X-Trace-Id header."
        },
        "span_id": {
          "type": "string",
          "pattern": "^[0-9a-f]{16}$",
          "description": "16 hex chars, root span of this request."
        },
        "timestamp": {
          "type": "string",
          "description": "ISO 8601 UTC (Y-m-dTH:i:sZ), response time."
        },
        "duration_ms": {
          "type": "integer",
          "minimum": 0,
          "description": "Server-side wall clock."
        },
        "team_sid": {
          "type": [
            "string",
            "null"
          ],
          "description": "The team this call ran in (the token team, or the team_sid override). Null when unauthenticated; absent from pre-2026-08-20 backends."
        },
        "actor_type": {
          "type": [
            "string",
            "null"
          ],
          "description": "user | agent | api_key | system. Null when unauthenticated; absent from pre-2026-08-20 backends."
        }
      },
      "required": [
        "trace_id",
        "span_id",
        "timestamp",
        "duration_ms"
      ]
    },
    "counts": {
      "type": "object",
      "additionalProperties": {}
    }
  },
  "required": [
    "success",
    "operation",
    "items",
    "pagination",
    "applied_filters",
    "includes",
    "meta"
  ]
}