Customer.io · Schema

customerAttributesObject

Behavioral DataBroadcastCampaignsCDPCustomer DataCustomer Data PlatformData IngestionEmailEvent TrackingMarketing AutomationMessagingPush NotificationsSegmentsSMSTransactional EmailA2A

Properties

Name Type Description
customer object The profile you referenced by ID in the request.
View JSON Schema on GitHub

JSON Schema

customer-io-customer-attributes-object-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/customer-io/json-schema/customer-io-customer-attributes-object-schema.json",
  "title": "customerAttributesObject",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/customer-io-customers-api-openapi.yml#/components/schemas/customerAttributesObject",
  "x-scalar-ignore": true,
  "type": "object",
  "properties": {
    "customer": {
      "type": "object",
      "description": "The profile you referenced by ID in the request.",
      "properties": {
        "id": {
          "type": "string",
          "description": "The customer ID referenced in the request."
        },
        "identifiers": {
          "$ref": "#/$defs/customer_identifiers"
        },
        "attributes": {
          "type": "object",
          "description": "Contains attributes assigned to this profile, including your workspace's people-identifiers (by default, these are `id`, `email`, and `cio_id`). Attributes are all stored as strings.",
          "properties": {
            "id": {
              "$ref": "#/$defs/customer_id"
            },
            "email": {
              "$ref": "#/$defs/email_address"
            },
            "cio_id": {
              "$ref": "#/$defs/cio_id"
            },
            "cio_subscription_preferences": {
              "type": "string",
              "description": "A person's subscription preferences as stringified JSON. If unset, preferences are computed from topic defaults; see `_cio_subscription_preferences_computed`."
            },
            "_cio_subscription_preferences_computed": {
              "type": "string",
              "description": "A person's computed subscription preferences as stringified JSON, combining set preferences with defaults for unset topics. [Learn more about backfilled preferences](/messaging/channels/subscriptions/center/#backfill-preferences)."
            }
          },
          "additionalProperties": {
            "x-additionalPropertiesName": "additional attributes",
            "description": "Non-identifier attributes assigned to this person.",
            "type": "string"
          }
        },
        "timestamps": {
          "deprecated": true,
          "type": "object",
          "description": "The epoch timestamps when corresponding attributes were set on the customer profile.",
          "properties": {
            "cio_id": {
              "type": "integer",
              "description": "The date-time when `cio_id` was assigned.",
              "format": "unix timestamp"
            },
            "_last_emailed": {
              "type": "integer",
              "description": "The date-time when you last emailed a person.",
              "format": "unix timestamp"
            },
            "email": {
              "type": "integer",
              "description": "The date-time when the person's email address was added.",
              "format": "unix timestamp"
            },
            "id": {
              "type": "integer",
              "description": "The date-time when the person's ID was generated.",
              "format": "unix timestamp"
            },
            "unsubscribed": {
              "type": "integer",
              "description": "The date-time when the person unsubscribed.",
              "format": "unix timestamp"
            },
            "_cio_subscription_preferences_computed": {
              "type": "integer",
              "description": "Because this value is computed and not actually set on a person, this value is always 0"
            },
            "cio_subscription_preferences": {
              "type": "integer",
              "description": "The datetime when a person's subscription preferences were last updated.",
              "format": "unix timestamp"
            },
            "additionalProperties": {
              "x-additionalPropertiesName": "additional attribute timestamps",
              "description": "Timestamps when attributes assigned to the person were set.",
              "format": "unix timestamp"
            }
          }
        },
        "unsubscribed": {
          "type": "boolean",
          "description": "If `true`, a person is globally unsubscribed from email, SMS, WhatsApp, and push. Values like `true`, `TRUE`, `1`, and `\"1\"` count as true; other values are treated as subscribed or topic-based."
        },
        "devices": {
          "type": "array",
          "description": "Lists the devices associated with the customer profile.",
          "items": {
            "$ref": "#/$defs/device_object"
          }
        }
      }
    }
  },
  "$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."
    },
    "customer_id": {
      "x-scalar-ignore": true,
      "type": [
        "string",
        "null"
      ],
      "description": "The ID of a customer profile, analogous to a \"person\" in the UI. If your workspace supports multiple identifiers (email and ID), this value can be null."
    },
    "customer_identifiers": {
      "x-scalar-ignore": true,
      "type": "object",
      "description": "Identifiers for the person in a response—`id`, `cio_id`, and `email`. Unset `id` or `email` values are `null`. We recommend this object over the less descriptive `customer_id`. This object doesn't include `phone`, even if your workspace uses phone numbers as an identifier; look for the person's `phone` attribute instead.",
      "required": [
        "email",
        "id",
        "cio_id"
      ],
      "properties": {
        "email": {
          "type": [
            "string",
            "null"
          ],
          "format": "email",
          "description": "A person's email address, if set."
        },
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "A person's unique ID, if set. This is the same as the `customer_id` if present."
        },
        "cio_id": {
          "$ref": "#/$defs/cio_id"
        }
      }
    },
    "device_object": {
      "x-scalar-ignore": true,
      "description": "Device properties collected by [Customer.io SDKs](/integrations/sdk/) unless `autoTrackDeviceAttributes` is disabled. You can use these properties in segments and Liquid.",
      "allOf": [
        {
          "type": "object",
          "required": [
            "id"
          ],
          "properties": {
            "id": {
              "description": "The device token.",
              "type": "string"
            }
          }
        },
        {
          "$ref": "#/$defs/device_object_common"
        }
      ]
    },
    "device_object_common": {
      "x-scalar-ignore": true,
      "type": "object",
      "description": "Device information common to the v1 and v2 APIs.",
      "required": [
        "platform"
      ],
      "properties": {
        "last_used": {
          "type": "integer",
          "format": "unix timestamp",
          "description": "The `timestamp` when you last identified this device. If you don't pass a timestamp when you add or update a device, we use the time of the request itself. Our SDKs identify a device when a person launches their app."
        },
        "platform": {
          "type": "string",
          "enum": [
            "ios",
            "android"
          ],
          "description": "The device/messaging platform."
        },
        "attributes": {
          "type": "object",
          "description": "Attributes that you can reference to segment your audience—like a person's attributes, but specific to a device. These can be either the attributes defined below or custom key-value attributes.",
          "properties": {
            "device_os": {
              "type": "string",
              "description": "The operating system, including the version, on the device."
            },
            "device_model": {
              "type": "string",
              "description": "The model of the device a person uses."
            },
            "app_version": {
              "type": "string",
              "description": "The version of your app that a customer uses. You might target app versions to let people know when they need to update, or expose them to new features when they do."
            },
            "app_identifier": {
              "type": "string",
              "description": "The app that the device belongs to—the **Bundle ID / App identifier** you entered with that app's push credentials. If you have more than one app, we use this attribute to send push notifications to the right app. A device without an app identifier receives push notifications you send to your [default app](/messaging/channels/push/getting-started/#the-default-app)."
            },
            "cio_sdk_version": {
              "type": "string",
              "description": "The version of the Customer.io SDK in the app."
            },
            "_last_status": {
              "type": "string",
              "readOnly": true,
              "description": "The delivery status of the last message sent to the device—sent, bounced, or suppressed. An empty string indicates that that the device hasn't received a push yet.",
              "enum": [
                "",
                "bounced",
                "sent",
                "suppressed"
              ]
            },
            "device_locale": {
              "type": "string",
              "description": "The device's [IETF language code](/journeys/channels/localization/getting-started/#supported-languages), such as `en-MX` or `es-ES`."
            },
            "push_enabled": {
              "type": "string",
              "description": "If `\"true\"`, the device is opted-in and can receive push notifications.",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          "additionalProperties": {
            "x-additionalPropertiesName": "Custom Device Attributes",
            "description": "Custom properties that you want to associate with the device.",
            "type": "string"
          }
        }
      }
    },
    "email_address": {
      "x-scalar-ignore": true,
      "type": [
        "string",
        "null"
      ],
      "description": "The email address of the customer."
    }
  }
}

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/customer-io-customer-attributes-object"
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.