List folders
/foldersLists the folders the token can see, newest first, and returns one page. A token sees folders whose read or write list holds its user, folders whose write flags its user satisfies (internal staff, entrepreneur, file upload, deal manager), and every folder in the tree of a deal it can see. Hidden folders are included; send filter[hidden]=false to leave them out. This deliberately differs from the old folder routes, which answered 404 for hidden folders. Deleted folders are never listed. Use GET /folders/{id} for one folder. It changes nothing.
Query parameters
- Default:
Page size (1–100). Defaults to 25; values are clamped to the range.
25 Opaque pagination cursor taken from a prior response's
meta.next_cursor.Comma-separated top-level fields to return.
idis always returned.Set to
permissionsto embed who may read and write each folder.Send true to add the number of folders the token can see, across every match and not just this page, to
meta.totals.Comma-separated fields to sort by: created_at or name. Prefix a field with
-for descending. Defaults to-created_at. The folder id is always the final tiebreak.Folders whose name contains this text, ignoring case.
Direct children of this folder. Send
filter[parent_id][null]=truefor root folders. Takes[in]and[not_in]with a comma-separated list.Folders in this deal's folder tree, the deal's root folder included. Takes
[in]and[not_in]with a comma-separated list.Folders linked to this transaction workflow step. Takes
[in]and[not_in]with a comma-separated list.- One of:
Folders the platform uses for this purpose. Takes
[in]and[not_in]with a comma-separated list. Each value is described under x-enum-descriptions.attachment.sig.root,attachment.sig.entity,attachment.user.custom,attachment.sig.entity.counter,attachment.sig.entity.counter.internal,attachment.user.other,attachment.user.other.default,deal.core.assets,deal.core.deal_information,deal.core.root,deal.core.text_editor_uploads,deal.tm.committed,deal.tm.confirmed,deal.tm.custom,deal.tm.preinvestment,portfolio.root,portfolio.user.documents,portfolio.asset.public,team.core.root,team.core.termsandconditions Folders of this type. Send
filter[type_id][null]=truefor folders with none. Takes[in]and[not_in]with a comma-separated list. UseGET /folder-typesfor the ids.
Responses
{
"data": [
{}
],
"meta": {
"totals": [
{}
]
}
}Authorization failed. error.code is one of org_disabled,
ip_blocked, missing_scope, scope_disabled, user_disabled.
The request can't be processed (HTTP 422): validation_failed with one ErrorDetail per
problem, or a code documented on the operation.
Examples
curl https://your-org-domain/kong/core/api/v2/folders\
-H "Authorization: Bearer $HELM_API_KEY"\
-H "Content-Type: application/json"