{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gtm-api/json-schema/gtm-api-search-linkedin-account-quota-hits-response-schema.json",
  "title": "SearchLinkedinAccountQuotaHitsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gtm-api-linkedin-account-quota-hits-api-openapi.yml#/components/schemas/SearchLinkedinAccountQuotaHitsResponse",
  "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"
              },
              "reason": {
                "type": "string",
                "enum": [
                  "connection_request",
                  "inmail",
                  "other"
                ],
                "description": "LinkedinAccountQuotaHitReasonEnum. The two send-class refusals keep their typed reasons (connection_request locks 1h, inmail 3h). 'other' (2026-08-14) is a LinkedIn 429 on any other action bucket - comment, react, follow, posting and the rest - locking that bucket for 24h; which bucket it was is in limit_type."
              },
              "limit_type": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The smart-limit bucket this refusal locked (comment_posts, react_posts, send_connection_requests, …). The disambiguator under reason 'other'. Null on rows written before 2026-08-14."
              },
              "daily_count": {
                "type": "number"
              },
              "seven_days_count": {
                "type": "number"
              },
              "thirty_days_count": {
                "type": "number"
              },
              "linkedin_quota_hit_till": {
                "type": "string",
                "description": "LinkedIn-side hard-lock expiry (ISO 8601, UTC)."
              },
              "linkedin_account_snapshot_sid": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "has_premium": {
                "type": "boolean"
              },
              "has_sn": {
                "type": "boolean"
              },
              "has_recruiter": {
                "type": "boolean"
              },
              "created_at": {
                "type": "string"
              }
            },
            "required": [
              "sid",
              "team_sid",
              "linkedin_account_sid",
              "reason",
              "limit_type",
              "daily_count",
              "seven_days_count",
              "thirty_days_count",
              "linkedin_quota_hit_till",
              "linkedin_account_snapshot_sid",
              "has_premium",
              "has_sn",
              "has_recruiter",
              "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",
      "properties": {}
    }
  },
  "required": [
    "success",
    "operation",
    "items",
    "pagination",
    "applied_filters",
    "includes",
    "meta"
  ]
}