API Reference

A short guide to working with Categories in the Layer API

Introduction

This guide provides an overview of the API endpoints related to Layer categories. It's intended to help developers understand how to retrieve categories and their associated views for specific projects.

📘

Categories are limited to read only requests

Currently, categories data is read only. There are no endpoints currently to create or update categories.

Authentication

All endpoints described in this guide require bearer authentication. Ensure you include a valid bearer token in the Authorization header of your requests. Take a look at our Authentication guide for more details.

Endpoints Overview

Example Category Object

{
  "categories": [
    {
      "createdAt": "2023-08-01T12:00:00Z",
      "count": 5,
      "initials": "IS",
      "instance": "Issue",
      "modelCategory": true,
      "order": 1,
      "name": "Punch List",
      "id": "2efsdc98wjh23v0j",
      "updatedAt": "2023-08-02T12:00:00Z"
    }
  ]
}

Category Parameters

PropertyDescriptionPossible Values
idUnique ID of the categoryString 28e4elfgkj3rfgv0
createdAtDate the category was createdTimestamp "2023-08-22T12:45:00Z"
countNumber of elements in the categoryNumber 50
initialsInitials of the categoryString IS
instanceName for an element instance in the categoryString Issue
modelCategoryTrue if the category was created from a modelBoolean true
orderOrder of the category in the projectNumber 3
nameName of the categoryString Punch List
updatedAtDate & time the category was last updatedTimestamp "2023-08-22T12:45:00Z"
viewsList of views in the categoryList [View, View, ...]