{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/prospectapis/json-schema/prospectapis-watchlist-with-secret-schema.json",
  "title": "WatchlistWithSecret",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/prospectapis-watchlists-api-openapi.yml#/components/schemas/WatchlistWithSecret",
  "allOf": [
    {
      "$ref": "#/$defs/Watchlist"
    },
    {
      "type": "object",
      "required": [
        "secret"
      ],
      "properties": {
        "secret": {
          "type": "string",
          "description": "The webhook signing secret (whsec_...). Shown only in this create response."
        }
      }
    }
  ],
  "$defs": {
    "Watchlist": {
      "type": "object",
      "required": [
        "id",
        "name",
        "filters",
        "webhook_url",
        "active",
        "created_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "funding",
            "ads"
          ]
        },
        "filters": {
          "$ref": "#/$defs/WatchlistFilters"
        },
        "webhook_url": {
          "type": "string",
          "format": "uri"
        },
        "active": {
          "type": "boolean"
        },
        "paused_reason": {
          "type": [
            "string",
            "null"
          ],
          "description": "Why it was paused, if it was (revoked key, repeated webhook failures, filters no longer valid)."
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "WatchlistFilters": {
      "type": "object",
      "description": "The GET /v1/funding filters a watchlist may hold (date windows and paging belong to the API call, not to an alert). At least one is required. Values may be strings or numbers. An ads watchlist (kind ads) takes domain (required) and platform. An events watchlist (kind events) takes city (required) and optionally platform, category, min_guests, max_guests, host, speaker, q and free.",
      "properties": {
        "round": {
          "type": "string"
        },
        "min_amount_usd": {
          "type": [
            "number",
            "string"
          ]
        },
        "max_amount_usd": {
          "type": [
            "number",
            "string"
          ]
        },
        "company": {
          "type": "string"
        },
        "domain": {
          "type": "string"
        },
        "investor": {
          "type": "string"
        },
        "country": {
          "type": "string",
          "description": "As the country filter of GET /v1/funding: a country name or ISO code matches country_code."
        },
        "stage": {
          "type": "string",
          "description": "Launch watchlists: post, pre or both."
        },
        "launch_type": {
          "type": "string",
          "description": "Launch watchlists: comma-separated launch types."
        },
        "category": {
          "type": "string",
          "description": "Launch watchlists: a category."
        },
        "platform": {
          "type": "string",
          "description": "Ads watchlists: one or more of meta, google, linkedin, tiktok. Events watchlists: luma, partiful or both. Comma separated; omit for all."
        },
        "level": {
          "type": "string",
          "enum": [
            "company",
            "ad"
          ],
          "description": "Ads watchlists only: company (default) delivers advertiser_started, advertiser_stopped and new_creatives; ad delivers every ad's ad_started, ad_stopped and new_creative."
        },
        "city": {
          "type": "string",
          "description": "Events watchlists: a city slug or name (required)."
        },
        "min_guests": {
          "type": [
            "string",
            "number",
            "boolean"
          ],
          "description": "Events watchlists: at least this many guests."
        },
        "max_guests": {
          "type": [
            "string",
            "number",
            "boolean"
          ],
          "description": "Events watchlists: at most this many guests."
        },
        "host": {
          "type": "string",
          "description": "Events watchlists: a host name or handle."
        },
        "speaker": {
          "type": "string",
          "description": "Events watchlists: a speaker, host or name in the title."
        },
        "q": {
          "type": "string",
          "description": "Events watchlists: the title contains this text."
        },
        "free": {
          "type": [
            "string",
            "number",
            "boolean"
          ],
          "description": "Events watchlists: true or false."
        }
      },
      "additionalProperties": false
    }
  }
}