AB Tasty · JSON Structure

Decision Api Campaign Request Structure

CampaignRequest schema from AB Tasty Decision API

Type: object Properties: 6 Required: 1
AggregationExperimentationFeature FlagsPersonalizationA/B Testing

CampaignRequest is a JSON Structure definition published by AB Tasty, describing 6 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

visitor_id anonymous_id context visitor_consent trigger_hit decision_group

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ab-tasty/refs/heads/main/json-structure/decision-api-campaign-request-structure.json",
  "name": "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 Structure 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 json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure 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 Structure
curl "https://apis.io/api/v1/json-structures/decision-api-campaign-request-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?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.