Skip to main content
GET
/
organizations
/
{organization_id}
/
portal
/
collections
/
tree
List collection tree
curl --request GET \
  --url https://api.example.com/organizations/{organization_id}/portal/collections/tree/ \
  --header 'X-Initdesk-Token: <api-key>'
[
  {
    "id": 123,
    "parent": 123,
    "name": "<string>",
    "slug": "<string>",
    "meta_description": "<string>",
    "icon": "<string>",
    "position": 123,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "children": [
      {}
    ],
    "articles": [
      {}
    ]
  }
]

Documentation Index

Fetch the complete documentation index at: https://developers.initdesk.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Initdesk-Token
string
header
required

Path Parameters

organization_id
string
required

Query Parameters

include_articles
boolean

Include collection articles in each node. Accepted true values: true, 1, yes.

is_published
boolean

Filter embedded article nodes by publication status when include_articles=true: true -> status=published, false -> status!=published. Empty value returns all.

Response

200 - application/json
id
integer
required
read-only
parent
integer | null
required
read-only
name
string
required
read-only
slug
string
required
read-only
Pattern: ^[-a-zA-Z0-9_]+$
meta_description
string
required
read-only
icon
string
required
read-only
position
integer
required
read-only
created_at
string<date-time>
required
read-only
updated_at
string<date-time>
required
read-only
children
object[]
required
read-only
articles
object[]
required
read-only