---
updatedAt: 2025-09-22T20:32:56.000Z
agentTools:
  projectIndex: https://docs.v7labs.com/llms.txt
---

# List Annotation Classes

Lists annotation classes for a team.

The endpoint does not require authentication. If not authenticated, or if authenticated with a key that does not have sufficient permissions, the endpoint will only include classes associated with the team's open (public) datasets.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "darwin-api",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://darwin.v7labs.com/api"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-default": "ApiKey {{key}}",
        "x-bearer-format": ""
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/teams/{team_slug_or_id}/annotation_classes": {
      "get": {
        "summary": "List Annotation Classes",
        "description": "Lists annotation classes for a team.",
        "operationId": "list-annotation-classes",
        "parameters": [
          {
            "name": "team_slug_or_id",
            "in": "path",
            "description": "Slug or id of the team to list classes for",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  annotation_classes: [\n    {\n      \"annotation_types\": [\n        {\n          \"description\": \"\",\n          \"granularity\": \"main\",\n          \"icon_url\": \"\",\n          \"id\": 614,\n          \"metadata_skeleton\": {\"_type\": \"map\"},\n          \"name\": \"polygon\",\n          \"subs\": [],\n          \"visible\": true\n        }\n      ],\n      \n      \"dataset_id\": 5249,\n      \"description\": \"\",\n      \"id\": 1,\n      \"images\": [],\n      \"inserted_at\": \"2021-07-13T07:24:25\",\n      \"metadata\": {\n        \"_color\": \"rgba(122,122,122,1.0)\", \n        \"polygon\": {}\n      },\n      \"name\": \"Class-0\",\n      \"updated_at\": \"2021-07-13T07:24:25\"\n    },\n    ....\n  ],\n  type_counts: \"type_counts\": [\n    {\"count\": 3, \"name\": \"All\"},\n    {\"count\": 1, \"id\": 1, \"name\": \"tag\"},\n    {\"count\": 1, \"id\": 2, \"name\": \"polygon\"},\n    {\"count\": 1, \"id\": 3, \"name\": \"bounding_box\"}\n  ]\n}"
                  }
                }
              }
            }
          },
          "404": {
            "description": "404",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"errors\": {\n    \"detail\": \"Not found\",\n    \"message\": \"Not found\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "object",
                      "properties": {
                        "detail": {
                          "type": "string",
                          "example": "Not found"
                        },
                        "message": {
                          "type": "string",
                          "example": "Not found"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```