Immutable · Schema

MessagesRequest

CompanyGamingBlockchainNFTWeb3WalletsMarketplaceAnalyticsAttributionCustomer Data PlatformAuthenticationDeveloper PlatformA2A

Properties

Name Type Description
messages array
View JSON Schema on GitHub

JSON Schema

immutable-messages-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/immutable/main/json-schema/immutable-messages-request-schema.json",
  "title": "MessagesRequest",
  "x-generated": "2026-10-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/immutable-ingest-api-openapi.yml#/components/schemas/MessagesRequest",
  "type": "object",
  "required": [
    "messages"
  ],
  "properties": {
    "messages": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Message"
      },
      "minItems": 1,
      "maxItems": 100
    }
  },
  "$defs": {
    "ConsentStatus": {
      "type": "string",
      "description": "One of not_set, none, anonymous, full."
    },
    "EventContext": {
      "type": "object",
      "properties": {
        "library": {
          "type": "string",
          "description": "Required. Max 256 characters."
        },
        "libraryVersion": {
          "type": "string",
          "description": "Required. Max 256 characters."
        },
        "userAgent": {
          "type": "string",
          "description": "Max 512 characters."
        },
        "locale": {
          "type": "string",
          "description": "Max 256 characters."
        },
        "timezone": {
          "type": "string",
          "description": "Max 256 characters."
        },
        "screen": {
          "type": "string",
          "description": "Max 256 characters."
        },
        "screenDensity": {
          "type": "number",
          "format": "float"
        },
        "pageUrl": {
          "type": "string",
          "description": "Max 2048 characters."
        },
        "pagePath": {
          "type": "string",
          "description": "Max 2048 characters."
        },
        "pageReferrer": {
          "type": "string",
          "description": "Max 2048 characters."
        },
        "pageTitle": {
          "type": "string",
          "description": "Max 256 characters."
        },
        "browserLanguage": {
          "type": "string",
          "description": "Max 256 characters."
        }
      }
    },
    "IdentityType": {
      "type": "string",
      "description": "One of passport, steam, epic, google, apple, discord, email, custom."
    },
    "Message": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "Required. One of track, page, screen, identify, alias."
        },
        "messageId": {
          "type": "string",
          "description": "Required. Client-generated identifier for this message. Expected to be a UUID, but validated per-message rather than at the request-parsing layer so a malformed value can be reported in `rejections` instead of failing the whole batch."
        },
        "eventTimestamp": {
          "type": "string",
          "description": "Required. Expected to be an RFC3339 timestamp, but validated per-message rather than at the request-parsing layer so a malformed value can be reported in `rejections` instead of failing the whole batch."
        },
        "anonymousId": {
          "type": "string",
          "description": "Max 256 characters."
        },
        "deviceId": {
          "type": "string",
          "description": "Max 256 characters."
        },
        "sessionId": {
          "type": "string",
          "description": "Max 256 characters."
        },
        "context": {
          "$ref": "#/$defs/EventContext"
        },
        "eventName": {
          "type": "string",
          "description": "Max 256 characters."
        },
        "properties": {
          "type": "object",
          "additionalProperties": true
        },
        "userId": {
          "type": "string",
          "description": "Max 256 characters."
        },
        "identityType": {
          "$ref": "#/$defs/IdentityType"
        },
        "traits": {
          "type": "object",
          "additionalProperties": true
        },
        "fromId": {
          "type": "string",
          "description": "Max 256 characters."
        },
        "fromType": {
          "$ref": "#/$defs/IdentityType"
        },
        "toId": {
          "type": "string",
          "description": "Max 256 characters."
        },
        "toType": {
          "$ref": "#/$defs/IdentityType"
        },
        "surface": {
          "$ref": "#/$defs/Surface"
        },
        "consentLevel": {
          "$ref": "#/$defs/ConsentStatus"
        },
        "test": {
          "type": "boolean",
          "description": "When true, marks the event as test traffic. The flag is passed through to the CDP as-is."
        }
      }
    },
    "Surface": {
      "type": "string",
      "description": "One of web, unity, unreal."
    }
  }
}

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/immutable-messages-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.