AB Tasty · Schema

CampaignRequest

CampaignRequest schema from AB Tasty Decision API

AggregationExperimentationFeature FlagsPersonalizationA/B Testing

Properties

Name Type Description
visitor_id string Unique identifier for the application user or website visitor
anonymous_id string Identifier for anonymous visitors (e.g., session ID)
context object JSON object of key-value pairs describing the user and device context
visitor_consent boolean Determines if visitor has consented to GDPR rules
trigger_hit boolean Determines whether a CAMPAIGN hit should be automatically sent
decision_group string Groups visitors to receive the same variation assignment
View JSON Schema on GitHub

JSON Schema

decision-api-campaign-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ab-tasty/refs/heads/main/json-schema/decision-api-campaign-request-schema.json",
  "title": "CampaignRequest",
  "description": "CampaignRequest schema from AB Tasty Decision API",
  "type": "object",
  "properties": {
    "visitor_id": {
      "type": "string",
      "description": "Unique identifier for the application user or website visitor",
      "example": "user123"
    },
    "anonymous_id": {
      "type": "string",
      "description": "Identifier for anonymous visitors (e.g., session ID)",
      "example": "session_xyz"
    },
    "context": {
      "type": "object",
      "description": "JSON object of key-value pairs describing the user and device context",
      "additionalProperties": true,
      "example": {
        "device": "mobile",
        "platform": "ios",
        "subscription_level": "premium"
      }
    },
    "visitor_consent": {
      "type": "boolean",
      "description": "Determines if visitor has consented to GDPR rules",
      "default": true
    },
    "trigger_hit": {
      "type": "boolean",
      "description": "Determines whether a CAMPAIGN hit should be automatically sent",
      "default": true
    },
    "decision_group": {
      "type": "string",
      "nullable": true,
      "description": "Groups visitors to receive the same variation assignment",
      "example": "VIP_users"
    }
  },
  "required": [
    "visitor_id"
  ]
}

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/decision-api-campaign-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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