{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/upriver-ai/json-schema/upriver-ai-sponsor-channels-response-schema.json",
  "title": "SponsorChannelsResponse",
  "description": "A page of social accounts publicly associated with one sponsor.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/upriver-ai-sponsorships-api-openapi.yml#/components/schemas/SponsorChannelsResponse",
  "properties": {
    "sponsor_id": {
      "type": "string",
      "title": "Sponsor Id",
      "description": "Stable identifier for the sponsor these accounts belong to."
    },
    "sponsor_name": {
      "type": "string",
      "title": "Sponsor Name",
      "description": "Name of the sponsor."
    },
    "results": {
      "items": {
        "$ref": "#/$defs/SponsorChannel"
      },
      "type": "array",
      "title": "Results",
      "description": "Social accounts publicly associated with this sponsor."
    },
    "total_count": {
      "type": "integer",
      "title": "Total Count",
      "description": "Number of accounts returned on this page."
    },
    "next_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Next Cursor",
      "description": "Pass as the `cursor` parameter to fetch the next page. Null on the last page."
    },
    "has_more": {
      "type": "boolean",
      "title": "Has More",
      "description": "True when more accounts are available on a following page.",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "sponsor_id",
    "sponsor_name",
    "total_count"
  ],
  "$defs": {
    "SponsorChannel": {
      "properties": {
        "channel_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Channel Id",
          "description": "Stable identifier for this social account. Null when the account has not been indexed yet."
        },
        "platform": {
          "type": "string",
          "title": "Platform",
          "description": "Platform the account is on (e.g. instagram, tiktok, youtube)."
        },
        "handle": {
          "type": "string",
          "title": "Handle",
          "description": "Account handle or channel identifier on the platform."
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url",
          "description": "Public profile URL for the account when available."
        },
        "display_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Display Name",
          "description": "Public display name for the account when available."
        },
        "follower_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Follower Count",
          "description": "Approximate follower or subscriber count when available."
        }
      },
      "type": "object",
      "required": [
        "platform",
        "handle"
      ],
      "title": "SponsorChannel",
      "description": "One social account publicly associated with a sponsor."
    }
  }
}