{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sendraven-ai/json-schema/sendraven-ai-contact-property-schema.json",
  "title": "ContactProperty",
  "description": "A declared custom field. Addressed by key; nothing in the API takes the id.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sendraven-ai-contact-properties-api-openapi.yml#/components/schemas/ContactProperty",
  "type": "object",
  "required": [
    "id",
    "key",
    "name",
    "type",
    "created_at"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "key": {
      "type": "string",
      "description": "The key in a contact's attributes and in segment filters. Case-sensitive."
    },
    "name": {
      "type": "string"
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "string",
        "number",
        "boolean",
        "date",
        null
      ],
      "description": "How written values are coerced. number: numeric strings convert, true/false/\"yes\"/\"no\" become 1/0, anything else 0. boolean: true, 1, \"true\", \"1\", \"yes\" become true, anything else false. string and date: stored as a string (a date is not parsed; send ISO 8601 so gt/lt order it). null only on a property an earlier version of the API cleared; values are then stored as strings. Changing the type does not convert stored values."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}