upriver-ai · Schema

MatchInput

Request to match a persona against one catalog's entries.

Artificial IntelligenceMarketingDataCreatorsBrandsTrendsSponsorship

Properties

Name Type Description
persona object The persona to match against this catalog.
settings object Caller-controlled matching settings.
View JSON Schema on GitHub

JSON Schema

upriver-ai-match-input-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/upriver-ai/json-schema/upriver-ai-match-input-schema.json",
  "title": "MatchInput",
  "description": "Request to match a persona against one catalog's entries.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/upriver-ai-audience-api-openapi.yml#/components/schemas/MatchInput",
  "properties": {
    "persona": {
      "$ref": "#/$defs/PersonaInputModel",
      "description": "The persona to match against this catalog."
    },
    "settings": {
      "$ref": "#/$defs/MatchSettings",
      "description": "Caller-controlled matching settings."
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "persona"
  ],
  "$defs": {
    "Exclusions": {
      "properties": {
        "categories": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 50,
          "title": "Categories",
          "description": "Product categories to leave out of the results."
        },
        "brands": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 200,
          "title": "Brands",
          "description": "Brand websites, as domains, to leave out of the results."
        },
        "sensitive": {
          "type": "boolean",
          "title": "Sensitive",
          "description": "When true, statements about sensitive topics never contribute to a score.",
          "default": true
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "Exclusions"
    },
    "FacetKind": {
      "type": "string",
      "enum": [
        "identity",
        "need",
        "trigger",
        "barrier",
        "interest",
        "situation",
        "intent"
      ],
      "title": "FacetKind"
    },
    "InferredNeeds": {
      "type": "string",
      "enum": [
        "off",
        "capped",
        "on"
      ],
      "title": "InferredNeeds"
    },
    "MatchSettings": {
      "properties": {
        "preset": {
          "$ref": "#/$defs/Preset",
          "description": "Named weighting: balanced, performance (stated needs first) or awareness (interests and situations count more).",
          "default": "balanced"
        },
        "priorities": {
          "additionalProperties": {
            "type": "number"
          },
          "propertyNames": {
            "$ref": "#/$defs/FacetKind"
          },
          "type": "object",
          "title": "Priorities",
          "description": "Optional multipliers from 0 to 2 per characteristic kind, applied on top of the preset."
        },
        "exclusions": {
          "$ref": "#/$defs/Exclusions",
          "description": "What to leave out of the results."
        },
        "inferred_needs": {
          "$ref": "#/$defs/InferredNeeds",
          "description": "Whether needs implied by stated interests and situations may contribute: off, capped (a bounded share of each score) or on.",
          "default": "off"
        },
        "min_evidence": {
          "type": "number",
          "maximum": 1.0,
          "minimum": 0.0,
          "title": "Min Evidence",
          "description": "Minimum score for an advertiser to be returned at all. A price-tier mismatch (see price_tier_affinity) can by itself lower a score below this threshold.",
          "default": 0.35
        },
        "price_tier_affinity": {
          "type": "boolean",
          "title": "Price Tier Affinity",
          "description": "Whether an entry's price tier and the persona's price sensitivity, when both are known, adjust that entry's score: a small boost when they agree, a small penalty at the two extremes. Set false to leave scores unaffected by price tier.",
          "default": true
        },
        "geo": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 2,
              "minLength": 2,
              "pattern": "^[A-Za-z]{2}$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Geo",
          "description": "Optional country filter, as a two-letter ISO 3166-1 country code."
        },
        "language": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 16
            },
            {
              "type": "null"
            }
          ],
          "title": "Language",
          "description": "Optional language code filter."
        },
        "limit": {
          "type": "integer",
          "maximum": 50.0,
          "minimum": 1.0,
          "title": "Limit",
          "description": "Maximum number of advertisers returned.",
          "default": 10
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "MatchSettings",
      "description": "Caller-controlled settings. Presets plus bounded multipliers, not free weights."
    },
    "PersonaFacetInput": {
      "properties": {
        "kind": {
          "$ref": "#/$defs/FacetKind",
          "description": "What kind of statement this facet is."
        },
        "text": {
          "type": "string",
          "maxLength": 300,
          "minLength": 2,
          "title": "Text",
          "description": "The facet's text."
        },
        "confidence": {
          "type": "number",
          "maximum": 1.0,
          "minimum": 0.0,
          "title": "Confidence",
          "description": "Confidence in this facet, from 0 to 1."
        },
        "sensitive": {
          "type": "boolean",
          "title": "Sensitive",
          "description": "Whether this facet touches a sensitive topic.",
          "default": false
        },
        "source_span": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 300
            },
            {
              "type": "null"
            }
          ],
          "title": "Source Span",
          "description": "The phrase in the persona this facet came from, when known."
        },
        "parent_index": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Parent Index",
          "description": "Index of the stated facet this facet was inferred from. Must be null unless `inferred` is true."
        },
        "inferred": {
          "type": "boolean",
          "title": "Inferred",
          "description": "Whether this facet was inferred by the caller rather than stated directly in the persona.",
          "default": false
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "kind",
        "text",
        "confidence"
      ],
      "title": "PersonaFacetInput",
      "description": "One caller-supplied statement describing the persona."
    },
    "PersonaInputModel": {
      "properties": {
        "summary": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 8000,
              "minLength": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "Summary",
          "description": "Free-text persona description."
        },
        "profile": {
          "anyOf": [
            {
              "$ref": "#/$defs/PersonaProfileInput"
            },
            {
              "type": "null"
            }
          ],
          "description": "Structured persona fields."
        },
        "facets": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/PersonaFacetInput"
              },
              "type": "array",
              "maxItems": 80
            },
            {
              "type": "null"
            }
          ],
          "title": "Facets",
          "description": "Caller-typed persona facets."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "PersonaInputModel",
      "description": "Persona to match against a catalog: exactly one of summary, profile or facets."
    },
    "PersonaProfileInput": {
      "properties": {
        "identity": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 300,
              "minLength": 2
            },
            {
              "type": "null"
            }
          ],
          "title": "Identity",
          "description": "A short description of who this persona is."
        },
        "interests": {
          "items": {
            "type": "string",
            "maxLength": 300,
            "minLength": 2
          },
          "type": "array",
          "maxItems": 40,
          "title": "Interests",
          "description": "Topics or activities this persona is interested in."
        },
        "situations": {
          "items": {
            "type": "string",
            "maxLength": 300,
            "minLength": 2
          },
          "type": "array",
          "maxItems": 40,
          "title": "Situations",
          "description": "Situations or contexts relevant to this persona."
        },
        "needs": {
          "items": {
            "type": "string",
            "maxLength": 300,
            "minLength": 2
          },
          "type": "array",
          "maxItems": 40,
          "title": "Needs",
          "description": "Needs this persona has."
        },
        "intent": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 300,
              "minLength": 2
            },
            {
              "type": "null"
            }
          ],
          "title": "Intent",
          "description": "This persona's stated intent, when known."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "PersonaProfileInput",
      "description": "Structured persona fields, mapped deterministically to facets."
    },
    "Preset": {
      "type": "string",
      "enum": [
        "balanced",
        "performance",
        "awareness"
      ],
      "title": "Preset"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/upriver-ai-match-input"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.