{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gtm-api/json-schema/gtm-api-search-linkedin-account-snapshots-response-schema.json",
  "title": "SearchLinkedinAccountSnapshotsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gtm-api-linkedin-account-snapshots-api-openapi.yml#/components/schemas/SearchLinkedinAccountSnapshotsResponse",
  "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"
              },
              "linkedin_account_sid": {
                "type": "string"
              },
              "warmup_score": {
                "type": "number"
              },
              "warmup_breakdown": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "driver": {
                      "type": "string",
                      "enum": [
                        "account_age",
                        "limit_hits",
                        "blocks",
                        "activity",
                        "sessions_ip",
                        "completeness"
                      ]
                    },
                    "penalty_pct": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "driver",
                    "penalty_pct"
                  ]
                }
              },
              "account": {
                "type": "object",
                "additionalProperties": {}
              },
              "account_diff": {
                "type": "number"
              },
              "sessions": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "object",
                  "additionalProperties": {}
                }
              },
              "sessions_count": {
                "type": "number"
              },
              "sessions_diff": {
                "type": "number"
              },
              "network_size": {
                "type": "number"
              },
              "has_verification": {
                "type": "boolean"
              },
              "account_completeness": {
                "type": "number"
              },
              "account_age_months": {
                "type": "number"
              },
              "last_post_days": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "last_month_connection_requests_sent": {
                "type": "number"
              },
              "last_month_connection_requests_accepted": {
                "type": "number"
              },
              "last_month_messages_sent": {
                "type": "number"
              },
              "last_month_messages_received": {
                "type": "number"
              },
              "last_month_messages_blocked": {
                "type": "number"
              },
              "withdrawal_queue": {
                "type": "number"
              },
              "tips": {
                "type": "object",
                "additionalProperties": {}
              },
              "smart_limits_enabled": {
                "type": "boolean"
              },
              "smart_limits": {
                "type": "object",
                "additionalProperties": {}
              },
              "fact_limits": {
                "type": "object",
                "additionalProperties": {}
              },
              "executed_actions": {
                "type": "object",
                "additionalProperties": {
                  "type": "number"
                }
              },
              "created_by": {
                "type": "object",
                "properties": {
                  "actor_type": {
                    "type": "string",
                    "enum": [
                      "user",
                      "support",
                      "api_key",
                      "system",
                      "agent"
                    ]
                  },
                  "actor_sid": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "team_sid": {
                    "type": "string"
                  },
                  "actor_name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The OAuth client that acted (\"Claude\", \"n8n\"); null for a user, an API key or a system job."
                  },
                  "oauth_client_sid": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The acting OAuth client (id_oc_*); null off the OAuth path."
                  },
                  "reason": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Why a system actor wrote the row (snapshot_capture_job, ...); null otherwise."
                  },
                  "permissions": {
                    "type": "object",
                    "additionalProperties": {},
                    "description": "Internal audit context: the grant set the actor held at write time. Not a contract."
                  },
                  "cluster_id": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Internal audit context: the cluster that served the write."
                  },
                  "trace_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Internal audit context: the trace id of the request that wrote the row."
                  }
                },
                "required": [
                  "actor_type",
                  "actor_sid",
                  "team_sid",
                  "permissions"
                ]
              },
              "created_at": {
                "type": "string"
              },
              "updated_at": {
                "type": "string"
              },
              "deleted_at": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "sid",
              "team_sid",
              "linkedin_account_sid",
              "warmup_score",
              "warmup_breakdown",
              "account",
              "account_diff",
              "sessions",
              "sessions_count",
              "sessions_diff",
              "network_size",
              "has_verification",
              "account_completeness",
              "account_age_months",
              "last_post_days",
              "last_month_connection_requests_sent",
              "last_month_connection_requests_accepted",
              "last_month_messages_sent",
              "last_month_messages_received",
              "last_month_messages_blocked",
              "withdrawal_queue",
              "tips",
              "smart_limits_enabled",
              "smart_limits",
              "fact_limits",
              "executed_actions",
              "created_by",
              "created_at",
              "updated_at",
              "deleted_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",
      "properties": {}
    }
  },
  "required": [
    "success",
    "operation",
    "items",
    "pagination",
    "applied_filters",
    "includes",
    "meta"
  ]
}