Articles
Articles power your knowledge base. Create, publish, and manage help content that customers and agents can search.
The Article object
Unique article identifier (art_ prefix)
Article title
Article body (Markdown)
Category name
Publication status "draft" | "published"
Whether visible in public knowledge base
Array of tag strings
Number of times viewed
Number of times used in replies
When the article was created
Last modification timestamp
Endpoints
/api/v1/teams/{teamId}/articlesList Articles
Try itRetrieve a paginated list of knowledge base articles with optional filtering.
Query Parameters
category string Filter by category name
status string Filter by publication status
isPublic boolean Filter by public visibility
search string Full-text search in title and content
page integer Page number (1-indexed)
Default: 1
pageSize integer Results per page (max 100)
Default: 20
Code Examples
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/articles?status=published" \
-H "Authorization: Bearer sk_live_your_key"Responses
{
"success": true,
"data": [
{
"id": "art_a1b2c3d4e5f67890abcdef1234567890",
"title": "How to reset your password",
"category": "Account",
"status": "published",
"isPublic": true,
"viewCount": 342,
"useCount": 28,
"createdAt": "2025-11-15T09:00:00Z"
}
],
"meta": {
"requestId": "req_abc123",
"timestamp": "2025-12-10T14:30:00Z",
"pagination": {
"page": 1,
"pageSize": 20,
"total": 142,
"totalPages": 8
}
}
}{
"success": false,
"error": {
"type": "authentication_error",
"code": "authentication_required",
"message": "Invalid or expired API key",
"doc_url": "https://www.cstar.help/developers/api-reference#authentication",
"request_id": "req_abc123"
},
"meta": {
"timestamp": "2025-12-10T14:30:00Z"
}
}{
"success": false,
"error": {
"type": "authorization_error",
"code": "insufficient_permissions",
"message": "Secret key required for this endpoint",
"doc_url": "https://www.cstar.help/developers/api-reference#authentication",
"request_id": "req_abc123"
},
"meta": {
"timestamp": "2025-12-10T14:30:00Z"
}
}{
"success": false,
"error": {
"type": "rate_limit_error",
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded. Try again in 60 seconds",
"doc_url": "https://www.cstar.help/developers/api-reference#rate-limiting",
"request_id": "req_abc123"
},
"meta": {
"timestamp": "2025-12-10T14:30:00Z"
}
}/api/v1/teams/{teamId}/articles/{articleId}Get Article
Try itRetrieve a single article by ID with full content.
Path Parameters
articleId string requiredThe article ID (art_ prefix)
Code Examples
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/articles/{articleId}" \
-H "Authorization: Bearer sk_live_your_key"Responses
{
"success": true,
"data": {
"id": "art_a1b2c3d4e5f67890abcdef1234567890",
"title": "How to reset your password",
"content": "# Password Reset\n\n1. Go to login page\n2. Click \"Forgot Password\"...",
"category": "Account",
"status": "published",
"isPublic": true,
"tags": [
"password",
"account",
"security"
],
"viewCount": 342,
"useCount": 28,
"createdAt": "2025-11-15T09:00:00Z",
"updatedAt": "2025-12-01T11:00:00Z"
},
"meta": {
"requestId": "req_abc123",
"timestamp": "2025-12-10T14:30:00Z"
}
}{
"success": false,
"error": {
"type": "not_found_error",
"code": "RESOURCE_MISSING",
"message": "Article not found",
"request_id": "req_abc123"
},
"meta": {
"timestamp": "2025-12-10T14:30:00Z"
}
}{
"success": false,
"error": {
"type": "authentication_error",
"code": "authentication_required",
"message": "Invalid or expired API key",
"doc_url": "https://www.cstar.help/developers/api-reference#authentication",
"request_id": "req_abc123"
},
"meta": {
"timestamp": "2025-12-10T14:30:00Z"
}
}{
"success": false,
"error": {
"type": "authorization_error",
"code": "insufficient_permissions",
"message": "Secret key required for this endpoint",
"doc_url": "https://www.cstar.help/developers/api-reference#authentication",
"request_id": "req_abc123"
},
"meta": {
"timestamp": "2025-12-10T14:30:00Z"
}
}{
"success": false,
"error": {
"type": "rate_limit_error",
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded. Try again in 60 seconds",
"doc_url": "https://www.cstar.help/developers/api-reference#rate-limiting",
"request_id": "req_abc123"
},
"meta": {
"timestamp": "2025-12-10T14:30:00Z"
}
}/api/v1/teams/{teamId}/articlesCreate Article
Try itCreate a new knowledge base article. Articles start as drafts by default.
Request Body
title string requiredArticle title
content string Article body (Markdown)
category string Category name
status string Publication status
Default: draft
isPublic boolean Whether visible publicly
Default: false
tags string[] Array of tag strings. Also accepts comma-separated string via curl.
metadata object Arbitrary key-value metadata (max 50 keys)
Code Examples
curl -X POST "https://www.cstar.help/api/v1/teams/{teamId}/articles" \
-H "Authorization: Bearer sk_live_your_key" \
-H "Content-Type: application/json" \
-d '{
"title": "Getting Started Guide",
"content": "# Welcome\n\nHere is how to get started...",
"category": "Onboarding",
"status": "draft"
}'Responses
{
"success": true,
"data": {
"id": "art_a1b2c3d4e5f67890abcdef1234567890",
"title": "Getting Started Guide",
"status": "draft",
"isPublic": false,
"createdAt": "2025-12-10T14:30:00Z"
},
"meta": {
"requestId": "req_abc123",
"timestamp": "2025-12-10T14:30:00Z"
}
}{
"success": false,
"error": {
"type": "authentication_error",
"code": "authentication_required",
"message": "Invalid or expired API key",
"doc_url": "https://www.cstar.help/developers/api-reference#authentication",
"request_id": "req_abc123"
},
"meta": {
"timestamp": "2025-12-10T14:30:00Z"
}
}{
"success": false,
"error": {
"type": "authorization_error",
"code": "insufficient_permissions",
"message": "Secret key required for this endpoint",
"doc_url": "https://www.cstar.help/developers/api-reference#authentication",
"request_id": "req_abc123"
},
"meta": {
"timestamp": "2025-12-10T14:30:00Z"
}
}{
"success": false,
"error": {
"type": "rate_limit_error",
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded. Try again in 60 seconds",
"doc_url": "https://www.cstar.help/developers/api-reference#rate-limiting",
"request_id": "req_abc123"
},
"meta": {
"timestamp": "2025-12-10T14:30:00Z"
}
}/api/v1/teams/{teamId}/articles/{articleId}Update Article
Try itUpdate one or more fields on an existing article.
Path Parameters
articleId string requiredThe article ID (art_ prefix)
Request Body
title string Article title
content string Article body (Markdown)
category string Category name
status string Publication status
isPublic boolean Whether visible publicly
tags string[] Array of tag strings. Also accepts comma-separated string via curl.
metadata object Key-value metadata to merge. Existing keys preserved, new keys added. Set a key to null to remove it.
Code Examples
curl -X PATCH "https://www.cstar.help/api/v1/teams/{teamId}/articles/{articleId}" \
-H "Authorization: Bearer sk_live_your_key" \
-H "Content-Type: application/json" \
-d '{ "status": "published", "isPublic": true }'Responses
{
"success": true,
"data": {
"id": "art_a1b2c3d4e5f67890abcdef1234567890",
"title": "Getting Started Guide",
"status": "published",
"updatedAt": "2025-12-10T16:00:00Z"
},
"meta": {
"requestId": "req_abc123",
"timestamp": "2025-12-10T16:00:00Z"
}
}{
"success": false,
"error": {
"type": "not_found_error",
"code": "RESOURCE_MISSING",
"message": "Article not found",
"request_id": "req_abc123"
},
"meta": {
"timestamp": "2025-12-10T14:30:00Z"
}
}{
"success": false,
"error": {
"type": "authentication_error",
"code": "authentication_required",
"message": "Invalid or expired API key",
"doc_url": "https://www.cstar.help/developers/api-reference#authentication",
"request_id": "req_abc123"
},
"meta": {
"timestamp": "2025-12-10T14:30:00Z"
}
}{
"success": false,
"error": {
"type": "authorization_error",
"code": "insufficient_permissions",
"message": "Secret key required for this endpoint",
"doc_url": "https://www.cstar.help/developers/api-reference#authentication",
"request_id": "req_abc123"
},
"meta": {
"timestamp": "2025-12-10T14:30:00Z"
}
}{
"success": false,
"error": {
"type": "rate_limit_error",
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded. Try again in 60 seconds",
"doc_url": "https://www.cstar.help/developers/api-reference#rate-limiting",
"request_id": "req_abc123"
},
"meta": {
"timestamp": "2025-12-10T14:30:00Z"
}
}/api/v1/teams/{teamId}/articles/{articleId}Delete Article
Try itPermanently delete an article from the knowledge base.
Path Parameters
articleId string requiredThe article ID (art_ prefix)
Code Examples
curl -X DELETE "https://www.cstar.help/api/v1/teams/{teamId}/articles/{articleId}" \
-H "Authorization: Bearer sk_live_your_key"Responses
{
"success": true,
"data": {
"deleted": true
},
"meta": {
"requestId": "req_abc123",
"timestamp": "2025-12-10T14:30:00Z"
}
}{
"success": false,
"error": {
"type": "not_found_error",
"code": "RESOURCE_MISSING",
"message": "Article not found",
"request_id": "req_abc123"
},
"meta": {
"timestamp": "2025-12-10T14:30:00Z"
}
}{
"success": false,
"error": {
"type": "authentication_error",
"code": "authentication_required",
"message": "Invalid or expired API key",
"doc_url": "https://www.cstar.help/developers/api-reference#authentication",
"request_id": "req_abc123"
},
"meta": {
"timestamp": "2025-12-10T14:30:00Z"
}
}{
"success": false,
"error": {
"type": "authorization_error",
"code": "insufficient_permissions",
"message": "Secret key required for this endpoint",
"doc_url": "https://www.cstar.help/developers/api-reference#authentication",
"request_id": "req_abc123"
},
"meta": {
"timestamp": "2025-12-10T14:30:00Z"
}
}{
"success": false,
"error": {
"type": "rate_limit_error",
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded. Try again in 60 seconds",
"doc_url": "https://www.cstar.help/developers/api-reference#rate-limiting",
"request_id": "req_abc123"
},
"meta": {
"timestamp": "2025-12-10T14:30:00Z"
}
}