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

# Get all Category Views

This operation can be used to retrieve all view from a category within a project. A view represents a list of items in a category that is filtered and displayed in a specific way.

# 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/{categoryId}/views": {
      "get": {
        "operationId": "getCategoryViews",
        "summary": "Get all Category Views",
        "tags": [
          "Views"
        ],
        "description": "This operation can be used to retrieve all view from a category within a project. A view represents a list of items in a category that is filtered and displayed in a specific way.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "categoryId",
            "required": true,
            "description": "Category ID"
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "projectId",
            "required": true,
            "description": "Project ID"
          }
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "List of category views",
            "content": {
              "application/json": {
                "schema": {
                  "description": "List of category views",
                  "type": "object",
                  "required": [
                    "total",
                    "views"
                  ],
                  "properties": {
                    "total": {
                      "description": "Total number of views in the response",
                      "type": "number"
                    },
                    "views": {
                      "description": "List of category views",
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "createdAt",
                          "displayType",
                          "fieldDisplay",
                          "filterConfig",
                          "id",
                          "name",
                          "sort",
                          "status",
                          "type",
                          "updatedAt"
                        ],
                        "properties": {
                          "createdAt": {
                            "description": "Date the view was created",
                            "format": "date-time",
                            "type": "string"
                          },
                          "displayType": {
                            "description": "Defines who has access to the view",
                            "enum": [
                              "DEFAULT",
                              "EVERYONE",
                              "JUST_ME"
                            ],
                            "type": "string"
                          },
                          "fieldDisplay": {
                            "description": "Field display configuration for the view",
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "id",
                                "type"
                              ],
                              "properties": {
                                "id": {
                                  "description": "Layer field ID",
                                  "type": "string"
                                },
                                "type": {
                                  "description": "Display type (LayerElementFieldDisplayType)",
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "ARRAY"
                                      ]
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "BOOLEAN"
                                      ]
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "DATE"
                                      ]
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "FILE"
                                      ]
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "FORMULA_V2"
                                      ]
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "LOOKUP"
                                      ]
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "MODEL_VIEW"
                                      ]
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "NUMBER"
                                      ]
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "RANGE"
                                      ]
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "SPATIAL_RELATIONSHIPS"
                                      ]
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "TEXT"
                                      ]
                                    },
                                    {
                                      "type": "string",
                                      "enum": [
                                        "VERSION_HISTORY"
                                      ]
                                    }
                                  ]
                                }
                              }
                            }
                          },
                          "filterConfig": {
                            "type": "object",
                            "required": [
                              "condition",
                              "filters"
                            ],
                            "properties": {
                              "condition": {
                                "enum": [
                                  "AND",
                                  "OR"
                                ],
                                "type": "string"
                              },
                              "filters": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "clause",
                                    "field",
                                    "type"
                                  ],
                                  "properties": {
                                    "clause": {
                                      "type": "string"
                                    },
                                    "field": {
                                      "type": "object",
                                      "required": [
                                        "id",
                                        "type"
                                      ],
                                      "properties": {
                                        "id": {
                                          "description": "Layer field ID",
                                          "type": "string"
                                        },
                                        "type": {
                                          "description": "Layer field type",
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "type": {
                                      "type": "string"
                                    },
                                    "value": {}
                                  }
                                }
                              }
                            }
                          },
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "description": "View name",
                            "type": "string"
                          },
                          "sort": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "direction",
                                "field"
                              ],
                              "properties": {
                                "direction": {
                                  "enum": [
                                    "asc",
                                    "desc"
                                  ],
                                  "type": "string"
                                },
                                "field": {
                                  "type": "object",
                                  "required": [
                                    "id",
                                    "type"
                                  ],
                                  "properties": {
                                    "id": {
                                      "description": "Layer field ID",
                                      "type": "string"
                                    },
                                    "type": {
                                      "description": "Layer field type",
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "status": {
                            "description": "View status",
                            "enum": [
                              "active",
                              "archived"
                            ],
                            "type": "string"
                          },
                          "type": {
                            "description": "View type",
                            "enum": [
                              "DOCUMENT",
                              "DRAWING",
                              "FORM",
                              "GALLERY",
                              "MODEL",
                              "TABLE"
                            ],
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "Date & time the view 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"
                }
              }
            }
          },
          "4XX": {
            "description": "Default error response.",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Default error response.",
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "description": "Human-readable error message.",
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.layer.team"
    }
  ],
  "x-readme": {
    "samples-languages": [
      "curl"
    ]
  }
}
```