Saasco logoSaasco logo
Saasco logoSaasco logo

Introduction

Quick StartWhat is Saasco?

Analytics

CRM

Email Marketing

Knowledge

getList CollectionsgetGet CollectionpostCreate CollectionputUpdate CollectiondelDelete CollectiongetList Public Collections

Support

Projects

Collections

List Collections

Lists a help center's collections, each with its articles and nested child collections, for building the navigation tree. Includes drafts and internal articles. Use List Public Collections for the reader-facing version.

GET
/projects/{projectId}/knowledge/collections

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project that owns the help center.

Query Parameters

helpCenterIdrequiredstring

ID of the help center whose collections to list.

parentIdstring | null

Only return children of this collection. Pass null for top-level collections; omit for all of them.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://www.saasco.com/api/v2/projects/string/knowledge/collections?helpCenterId=string"
[
  {
    "id": "string",
    "createdAt": "string",
    "updatedAt": "string",
    "projectId": "string",
    "helpCenterId": "string",
    "name": "string",
    "description": "string",
    "url": "string",
    "icon": "string",
    "order": -9007199254740991,
    "parentId": "string",
    "articles": [],
    "children": []
  }
]
{
  "code": "BAD_REQUEST",
  "message": "Invalid input data",
  "issues": []
}
{
  "code": "UNAUTHORIZED",
  "message": "Authorization not provided",
  "issues": []
}
{
  "code": "FORBIDDEN",
  "message": "Insufficient access",
  "issues": []
}
{
  "code": "NOT_FOUND",
  "message": "Not found",
  "issues": []
}
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "Internal server error",
  "issues": []
}

Increment Article Views

Adds one to an article's view counter. Public and unauthenticated, intended to be called on page load. Every call counts. There is no per-reader deduplication, so this measures page views rather than unique readers.

Get Collection

Fetches a single collection by ID. Returns `null` rather than 404 when nothing matches.