---
updatedAt: 2026-06-12T20:00:32.000Z
agentTools:
  projectIndex: https://layer-api.readme.io/llms.txt
---

# Get Categories

This operation can be used to retrieve the list of all categories for a specific project.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "termsOfService": "https://layer.team/terms-of-service",
    "title": "Layer API",
    "version": "0.3.0",
    "x-logo": {
      "altText": "Layer logo",
      "url": "https://layer.team/wp-content/themes/lessis/images/assets/layer-logo-footer.png"
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "bearerFormat": "JWT",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "paths": {
    "/projects/{projectId}/categories": {
      "get": {
        "operationId": "getProjectCategories",
        "summary": "Get Categories",
        "tags": [
          "Categories"
        ],
        "description": "This operation can be used to retrieve the list of all categories for a specific project.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "projectId",
            "required": true,
            "description": "Project ID"
          }
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "List of Layer Project Categories",
            "content": {
              "application/json": {
                "schema": {
                  "description": "List of Layer Project Categories",
                  "type": "object",
                  "required": [
                    "categories"
                  ],
                  "properties": {
                    "categories": {
                      "description": "List of Layer Project Categories",
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "count",
                          "createdAt",
                          "id",
                          "initials",
                          "instance",
                          "modelCategory",
                          "name",
                          "updatedAt"
                        ],
                        "properties": {
                          "count": {
                            "description": "Number of elements in the category",
                            "type": "number"
                          },
                          "createdAt": {
                            "description": "Date the category was created",
                            "format": "date-time",
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "initials": {
                            "description": "Initials of the category",
                            "type": "string"
                          },
                          "instance": {
                            "description": "Name for an element instance in the category",
                            "type": "string"
                          },
                          "modelCategory": {
                            "description": "True if the category was created from a model",
                            "type": "boolean"
                          },
                          "name": {
                            "description": "Name of the category",
                            "type": "string"
                          },
                          "order": {
                            "description": "Order of the category in the project",
                            "type": "number"
                          },
                          "updatedAt": {
                            "description": "Date & time the category was last updated",
                            "format": "date-time",
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "Response payload exceeded the configured size limit for this API.",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Response payload exceeded the configured size limit for this API.",
                  "properties": {
                    "code": {
                      "description": "Stable machine-readable error code.",
                      "type": "string"
                    },
                    "error": {
                      "description": "Human-readable error message.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "error"
                  ],
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.layer.team"
    }
  ],
  "x-readme": {
    "samples-languages": [
      "curl"
    ]
  }
}
```