Skip to main content
GET
/
api
/
v3
/
content-types
List content types
curl --request GET \
  --url https://api.lighton.ai/api/v3/content-types \
  --header 'Authorization: Bearer <token>'
{
  "content_types": [
    {
      "path": "legal",
      "code": "legal",
      "label": "Legal",
      "description": "Legal documents: contracts, litigation, compliance.",
      "inherit_attributes": true,
      "attributes": [
        {
          "name": "jurisdiction",
          "label": "Jurisdiction",
          "type": "multi-select",
          "required": false,
          "description": "Legal jurisdiction(s) governing the document",
          "choices": [
            "FR",
            "US",
            "UK",
            "DE"
          ]
        },
        {
          "name": "confidentiality_level",
          "label": "Confidentiality Level",
          "type": "select",
          "required": false,
          "description": "",
          "choices": [
            "Public",
            "Internal",
            "Confidential",
            "Strictly Confidential"
          ]
        }
      ],
      "children": [
        {
          "path": "legal:contract",
          "code": "contract",
          "label": "Contract",
          "description": "Binding agreements between parties.",
          "inherit_attributes": true,
          "attributes": [
            {
              "name": "jurisdiction",
              "label": "Jurisdiction",
              "type": "multi-select",
              "required": false,
              "description": "Legal jurisdiction(s) governing the document",
              "choices": [
                "FR",
                "US",
                "UK",
                "DE"
              ],
              "inherited": true
            },
            {
              "name": "effective_date",
              "label": "Effective Date",
              "type": "date",
              "required": false,
              "description": "",
              "choices": []
            }
          ],
          "children": [
            {
              "path": "legal:contract:nda",
              "code": "nda",
              "label": "Non-Disclosure Agreement",
              "description": "",
              "inherit_attributes": true,
              "attributes": [
                {
                  "name": "jurisdiction",
                  "label": "Jurisdiction",
                  "type": "multi-select",
                  "required": false,
                  "description": "Legal jurisdiction(s) governing the document",
                  "choices": [
                    "FR",
                    "US",
                    "UK",
                    "DE"
                  ],
                  "inherited": true
                },
                {
                  "name": "effective_date",
                  "label": "Effective Date",
                  "type": "date",
                  "required": false,
                  "description": "",
                  "choices": [],
                  "inherited": true
                },
                {
                  "name": "counterparty",
                  "label": "Counterparty",
                  "type": "text",
                  "required": true,
                  "description": "Name of the other party",
                  "choices": []
                },
                {
                  "name": "is_mutual",
                  "label": "Is Mutual",
                  "type": "boolean",
                  "required": false,
                  "description": "",
                  "choices": []
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "can_edit": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

depth
integer

Tree depth limit. Omitted = full tree. 0 = roots only.

include_attributes
boolean

Include attribute definitions per content type node. Default: true.

path
string

Content type path(s) to filter (comma-separated).

query
string

When provided, filter the catalog to content types found in a first-pass retrieval for this query. Without this parameter, the full company catalog is returned (existing behavior).

Response

Company content type tree with optional attribute definitions.

content_types
ContentTypeNodeResponse · object[]
required
can_edit
boolean | null