{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sendraven-ai/json-schema/sendraven-ai-contact-import-result-schema.json",
  "title": "ContactImportResult",
  "description": "Counts for an array sent to POST /v1/audiences/{id}/contacts.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sendraven-ai-audiences-api-openapi.yml#/components/schemas/ContactImportResult",
  "type": "object",
  "required": [
    "inserted",
    "updated",
    "skipped",
    "unsubscribed",
    "bounced",
    "complained",
    "suppressed",
    "properties_created",
    "automations_started",
    "contact_count"
  ],
  "properties": {
    "inserted": {
      "type": "integer",
      "description": "People new to the workspace."
    },
    "updated": {
      "type": "integer",
      "description": "People who already existed in the workspace, whether or not they were on this list."
    },
    "skipped": {
      "type": "integer",
      "description": "Rows not written to a contact because the same address appeared earlier in the array."
    },
    "unsubscribed": {
      "type": "integer",
      "description": "Rows with status unsubscribed (rows, so a repeated address counts each time)."
    },
    "bounced": {
      "type": "integer",
      "description": "Rows with status bounced."
    },
    "complained": {
      "type": "integer",
      "description": "Rows with status complained."
    },
    "suppressed": {
      "type": "integer",
      "description": "Suppressions this request created; one that already existed for the address and scope is not counted."
    },
    "properties_created": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Keys of contact properties created (as string) because a row carried an undeclared attribute."
    },
    "automations_started": {
      "type": "integer",
      "description": "Enrolments started. 0 unless trigger_automations=true."
    },
    "contact_count": {
      "type": "integer",
      "description": "The audience's contact count after the import."
    }
  }
}