{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/copper-financial/json-schema/copper-financial-tag-schema.json",
  "title": "Tag",
  "description": "A tag is a string that can be associated to any of the 6 core entities in Copper (Leads, People, Companies, Opportunities, Tasks, Projects)",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/copper-financial-tags-api-openapi.yml#/components/schemas/Tag",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the tag"
    },
    "count": {
      "type": "integer",
      "description": "The total number of entities the tag is associated to"
    },
    "count_people": {
      "type": "integer",
      "description": "The number of people the tag is associated to"
    },
    "count_leads": {
      "type": "integer",
      "description": "The number of leads the tag is associated to"
    },
    "count_companies": {
      "type": "integer",
      "description": "The number of companies the tag is associated to"
    },
    "count_opportunities": {
      "type": "integer",
      "description": "The number of opportunities the tag is associated to"
    },
    "count_projects": {
      "type": "integer",
      "description": "The number of projects the tag is associated to"
    },
    "count_tasks": {
      "type": "integer",
      "description": "The number of tasks the tag is associated to"
    }
  },
  "required": [
    "name"
  ]
}