{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sendraven-ai/json-schema/sendraven-ai-audience-schema.json",
  "title": "Audience",
  "description": "A list of contacts. serializeAudience in api-server/src/serialize.ts.",
  "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/Audience",
  "type": "object",
  "required": [
    "id",
    "name",
    "contact_count",
    "created_at"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "The id every path and body field that names an audience takes, never the name."
    },
    "name": {
      "type": "string",
      "description": "Not unique."
    },
    "contact_count": {
      "type": "integer",
      "description": "Contacts on the list, recounted after each API write that adds or removes members."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}