{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/customer-io/main/json-schema/customer-io-person-page-schema.json", "title": "Person: Page view", "description": "A web \"pageview\" event attributed to a person. Our `screen` and `page` event types are more specific than our standard `event`, and help you track and target people based on the pages people visit in your mobile app or website.", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/customer-io-track-v2-api-openapi.yml#/components/schemas/person_page", "allOf": [ { "$ref": "#/$defs/person_common" }, { "type": "object", "required": [ "action", "name" ], "properties": { "action": { "type": "string", "description": "A web \"pageview\" event attributed to a person. Our `screen` and `page` event types are more specific than our standard `event`, and help you track and target people based on the pages people visit in your mobile app or website.", "enum": [ "page" ] }, "id": { "type": "string", "format": "ULID", "description": "A valid ULID used to deduplicate events. Note - our Python and Ruby libraries do not pass this id." }, "name": { "type": "string", "description": "The name of the page or page path that a person visited. This is how you'll find and select page view events in Customer.io." }, "timestamp": { "type": "integer", "description": "The Unix timestamp when the event happened." }, "attributes": { "type": "object", "description": "Additional information that you might want to reference in a message using liquid or use to set attributes on the identified person.", "properties": { "path": { "type": "string", "description": "The path portion of the page's URL. Equivalent to the canonical `path` which defaults to `location.pathname` from the DOM API." }, "referrer": { "type": "string", "description": "The previous page's full URL. Equivalent to `document.referrer` from the DOM API." }, "search": { "type": "string", "description": "The query string portion of the page's URL. Equivalent to `location.search` from the DOM API." }, "title": { "type": "string", "description": "The page's title. Equivalent to `document.title` from the DOM API." }, "url": { "type": "string", "description": "A page's full URL. We first look for the canonical URL. If the canonical URL is not provided, we'll use `location.href` from the DOM API." }, "keywords": { "type": "array", "description": "Page-content keywords, typically like HTML meta keywords. Mainly for publishers with pageview tracking; not collected automatically.", "items": { "type": "string" } } }, "additionalProperties": { "x-additionalPropertiesName": "liquid merge data", "description": "Insert key-values that you want to reference in your message here." } } } } ], "$defs": { "cio_id": { "x-scalar-ignore": true, "type": "string", "description": "A unique identifier set by Customer.io, used to reference a person if you want to update their identifiers." }, "not_nullable_customer_id": { "x-scalar-ignore": true, "type": "string", "description": "The ID of a customer profile, analogous to a \"person\" in the UI." }, "not_nullable_email_address": { "x-scalar-ignore": true, "type": "string", "description": "The email address of the customer." }, "person_common": { "x-scalar-ignore": true, "type": "object", "required": [ "type", "identifiers" ], "properties": { "type": { "description": "The operation modifies a person in Customer.io", "type": "string", "enum": [ "person" ] }, "identifiers": { "description": "The person you want to perform an action for—one of `id`, `email`, `phone`, or `cio_id`. You cannot pass multiple identifiers. You can use `email` and `phone` only if they're enabled as identifiers in your [workspace settings](/accounts/workspaces/overview/#migrate-workspace).", "oneOf": [ { "title": "id", "type": "object", "required": [ "id" ], "properties": { "id": { "$ref": "#/$defs/not_nullable_customer_id" } } }, { "title": "email", "type": "object", "required": [ "email" ], "properties": { "email": { "$ref": "#/$defs/not_nullable_email_address" } } }, { "title": "phone", "type": "object", "required": [ "phone" ], "properties": { "phone": { "type": "string", "description": "A person's phone number, in [E.164 format](https://en.wikipedia.org/wiki/E.164) (a leading `+` followed by up to 15 digits). Available only when `phone` is enabled as an identifier in your workspace." } } }, { "title": "cio_id", "type": "object", "required": [ "cio_id" ], "properties": { "cio_id": { "$ref": "#/$defs/cio_id" } } } ] } } } } }