Get Category

Retrieve details of a specific category.

Endpoint

GET /v1/workspaces/{workspaceId}/category/{categoryId}

Request

curl -X GET \
  'https://api.sharely.ai/v1/workspaces/{workspaceId}/category/{categoryId}' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'organizationid: your-organization-id'

Response

{
  "id": "category-uuid",
  "name": "Product Documentation",
  "description": "All product-related docs",
  "parentId": null,
  "metadata": {
    "color": "blue",
    "icon": "book"
  },
  "knowledgeCount": 45
}

Related Endpoints