{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentline-cloud/json-schema/agentline-cloud-contact-create-schema.json",
  "title": "ContactCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentline-cloud-contacts-api-openapi.yml#/components/schemas/ContactCreate",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1,
      "title": "Name",
      "description": "Who this is, e.g. 'Dr. Patel' or 'Joe's Plumbing'"
    },
    "phone_number": {
      "type": "string",
      "title": "Phone Number",
      "description": "The contact's phone number with a leading + and country code, e.g. '+12125551234'. Spaces, dashes, dots and parentheses are removed before saving; a number without a country code is rejected."
    },
    "label": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Label",
      "description": "Why the agent deals with this person, e.g. 'dentist', 'landlord', 'customer', 'Mom'. list_contacts can filter by it. Omit for no label."
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "name",
    "phone_number"
  ]
}