{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/signvoy-com/json-schema/signvoy-com-contact-dto-schema.json",
  "title": "ContactDto",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/signvoy-com-openapi.json#/components/schemas/ContactDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique contact identifier"
    },
    "email": {
      "type": "string",
      "description": "Email address. The only required field on a contact."
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Full name. Null for a contact captured from a send where the sender supplied only an address."
    },
    "company": {
      "type": [
        "string",
        "null"
      ]
    },
    "jobTitle": {
      "type": [
        "string",
        "null"
      ]
    },
    "phone": {
      "type": [
        "string",
        "null"
      ]
    },
    "notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "source": {
      "type": "string",
      "enum": [
        "manual",
        "auto",
        "import"
      ],
      "description": "How the contact got here. `auto` means it was captured when a document was sent to this address."
    },
    "archivedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the contact was archived. Archived contacts are hidden from the recipient picker and the default listing but keep their row."
    },
    "createdBy": {
      "type": "string",
      "description": "Clerk user id of whoever first caused the contact to exist. Attribution only — the directory is readable by the whole workspace."
    },
    "createdByName": {
      "type": "string",
      "description": "Display name of that user, resolved from Clerk. Absent when it could not be resolved."
    },
    "createdByImageUrl": {
      "type": "string",
      "format": "uri",
      "description": "Their Clerk avatar URL"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "email",
    "source",
    "createdBy",
    "createdAt",
    "updatedAt"
  ]
}