Community

Community posts let customers ask questions, share feedback, and vote on feature requests. Agents can manage posts, set statuses, and moderate content.

The Community Post object

id uuid

Unique post identifier

object string

Always "community_post"

topicId uuid

Topic the post is in

topicName string

The topic's name

title string

Post title

slug string

URL-friendly slug

body string

Post body text

status string

Post status "open" | "answered" | "officially_answered" | "planned" | "not_planned" | "completed" | "under_review"

visibility string

Post visibility "public" | "members_only"

voteCount integer

Number of upvotes

commentCount integer

Number of visible comments

isPinned boolean

Whether the post is pinned to the top

isFeatured boolean

Whether the post is featured

isLocked boolean

Whether new comments are refused

commentsEnabled boolean

Whether comments are on for this post

customFields object

Custom field values as key-value pairs (field definition ID → value). Only fields assigned to the post's topic are accepted. Always returned ({} when there are none).

attachments array

Image attachments (max 10 per post, 5 per comment). Each object: {filename, content_type, size_bytes, storage_path}. Images only (JPEG, PNG, GIF, WebP), 4 MB max per file (the upload limit). storage_path must be an existing image in your team's folder ({teamId}/...) of the community-attachments bucket, uploaded from the dashboard or the help widget. API keys can't upload there, so through the API you can only reuse the storage_path of an existing post or comment attachment.

lastActivityAt datetime

Last post, comment or status change

createdAt datetime

When the post was created

updatedAt datetime

When the post last changed

Endpoints

GET /api/v1/teams/{teamId}/community/posts

List posts

List the team's posts in the key's mode, pinned first. Filters combine; an invalid value is a 400 naming the param.

Query Parameters

topicId uuid

Only posts in this topic

topic string

Only posts in the topic with this slug

status string

Only posts with this status: open, answered, officially_answered, planned, not_planned, completed or under_review

pinned boolean

true for pinned posts only, false for the rest

locked boolean

true for posts locked to new comments, false for the rest

search string

Text in the title or body (any case)

sort string

Order after pinned posts: recent (last activity), votes or comments

Default: recent

page integer

Page number (1-indexed)

Default: 1

pageSize integer

Results per page (max 100)

Default: 20

Code Examples

bash
curl "https://www.cstar.help/api/v1/teams/{teamId}/community/posts?sort=votes" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 List of posts
json
{
  "success": true,
  "data": [
    {
      "id": "...",
      "object": "community_post",
      "topicId": "...",
      "topicName": "Feature Requests",
      "title": "Add dark mode",
      "status": "planned",
      "voteCount": 42,
      "commentCount": 7,
      "isPinned": false,
      "isLocked": false,
      "customFields": {}
    }
  ],
  "pagination": {
    "total": 142,
    "page": 1,
    "pageSize": 20,
    "hasMore": true
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

401 Authentication failed: missing or invalid API key
json
{
  "success": false,
  "error": {
    "type": "authentication_error",
    "code": "invalid_api_key",
    "message": "The API key provided is invalid or has been revoked",
    "doc_url": "https://www.cstar.help/developers/errors#invalid_api_key",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

403 Insufficient permissions: wrong key type or team access
json
{
  "success": false,
  "error": {
    "type": "authentication_error",
    "code": "insufficient_permissions",
    "message": "Your API key does not have permission for this operation",
    "doc_url": "https://www.cstar.help/developers/errors#insufficient_permissions",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

429 Rate limit exceeded
json
{
  "success": false,
  "error": {
    "type": "rate_limit_error",
    "code": "rate_limit_exceeded",
    "message": "Rate limit exceeded. Try again in 60 seconds.",
    "retryAfter": 60,
    "doc_url": "https://www.cstar.help/developers/errors#rate_limit_exceeded",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

POST /api/v1/teams/{teamId}/community/posts

Create post

Create a new community post as the member who made the key. A key acts for the member who made it; a key whose creator is no longer an owner or admin on the team (or that has none) gets 403.

Request Body

title string required

Post title

body string

Post body text

topicId uuid required

Topic category ID

visibility string

public or members_only

Default: public

customFields object

Custom field values as {fieldDefinitionId: value}. Only fields assigned to the topic are accepted. Required fields (per topic config) must be included.

attachments array

Image attachments (max 10). Each: {filename, content_type, size_bytes, storage_path}. Images only, 4 MB max each.

Code Examples

bash
curl -X POST "https://www.cstar.help/api/v1/teams/{teamId}/community/posts" \
  -H "Authorization: Bearer sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{"title":"Tutorial Video","topicId":"topic-uuid","customFields":{"field-def-id":"https://youtube.com/watch?v=abc"}}'

Responses

201 Created post
json
{
  "success": true,
  "data": {
    "id": "...",
    "title": "New feature idea",
    "status": "open"
  }
}

403 `feature_disabled`: Community is turned off for the team (`feature` and `enable_url` say where an owner or admin turns it back on). A key without the permission gets `insufficient_permissions`.
json
{
  "success": false,
  "error": {
    "feature": "community",
    "enable_url": "https://www.cstar.help/team/acme/settings?panel=team&section=community",
    "type": "invalid_request_error",
    "code": "feature_disabled",
    "message": "Community is turned off for this team. An owner or admin can turn it on in Settings > Team Settings > Community.",
    "doc_url": "https://www.cstar.help/developers/errors#feature_disabled",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2026-10-23T12:00:00Z"
  }
}

409 Idempotency-Key in use: its first request is still running (Retry-After says when to send it again) or it was used on another endpoint
json
{
  "success": false,
  "error": {
    "type": "invalid_request_error",
    "code": "idempotency_key_in_use",
    "message": "A request with this Idempotency-Key is still being processed. Retry after it finishes.",
    "doc_url": "https://www.cstar.help/developers/errors#idempotency_key_in_use",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

422 Idempotency-Key already used within 24 hours for a request with a different body
json
{
  "success": false,
  "error": {
    "type": "invalid_request_error",
    "code": "idempotency_key_reused",
    "message": "The Idempotency-Key was already used for a request with a different body. Generate a new key for this request.",
    "doc_url": "https://www.cstar.help/developers/errors#idempotency_key_reused",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

401 Authentication failed: missing or invalid API key
json
{
  "success": false,
  "error": {
    "type": "authentication_error",
    "code": "invalid_api_key",
    "message": "The API key provided is invalid or has been revoked",
    "doc_url": "https://www.cstar.help/developers/errors#invalid_api_key",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

429 Rate limit exceeded
json
{
  "success": false,
  "error": {
    "type": "rate_limit_error",
    "code": "rate_limit_exceeded",
    "message": "Rate limit exceeded. Try again in 60 seconds.",
    "retryAfter": 60,
    "doc_url": "https://www.cstar.help/developers/errors#rate_limit_exceeded",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

PATCH /api/v1/teams/{teamId}/community/posts/{postId}

Update post status

Update a community post status or properties.

Path Parameters

postId uuid required

Post ID

Request Body

title string

Post title

body string

Post body text

status string

New status (open, planned, completed, etc.)

topicId uuid

Move the post to another topic. Its custom fields then keep only the new topic's.

visibility string

public or members_only

isPinned boolean

Pin to top of topic

isLocked boolean

Lock comments

isHidden boolean

Hide the post

commentsEnabled boolean

Allow new comments

customFields object

Custom field values as {fieldDefinitionId: value}, merged with the stored values. Only the topic's fields with string values are kept, and a required field can't be emptied (400).

attachments array

Replace post attachments (images only, max 10, 4 MB max each)

Code Examples

bash
curl -X PATCH "https://www.cstar.help/api/v1/teams/{teamId}/community/posts/{postId}" \
  -H "Authorization: Bearer sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{"status":"planned","customFields":{"field-id":"new-value"}}'

Responses

200 Updated post
json
{
  "success": true,
  "data": {
    "id": "...",
    "status": "planned"
  }
}

404 Post not found
json
{
  "success": false,
  "error": {
    "type": "not_found_error",
    "code": "resource_not_found",
    "message": "Community post not found",
    "doc_url": "https://www.cstar.help/developers/errors#resource_not_found",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2026-10-23T12:00:00Z"
  }
}

403 `feature_disabled`: Community is turned off for the team (`feature` and `enable_url` say where an owner or admin turns it back on). A key without the permission gets `insufficient_permissions`.
json
{
  "success": false,
  "error": {
    "feature": "community",
    "enable_url": "https://www.cstar.help/team/acme/settings?panel=team&section=community",
    "type": "invalid_request_error",
    "code": "feature_disabled",
    "message": "Community is turned off for this team. An owner or admin can turn it on in Settings > Team Settings > Community.",
    "doc_url": "https://www.cstar.help/developers/errors#feature_disabled",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2026-10-23T12:00:00Z"
  }
}

409 Idempotency-Key in use: its first request is still running (Retry-After says when to send it again) or it was used on another endpoint
json
{
  "success": false,
  "error": {
    "type": "invalid_request_error",
    "code": "idempotency_key_in_use",
    "message": "A request with this Idempotency-Key is still being processed. Retry after it finishes.",
    "doc_url": "https://www.cstar.help/developers/errors#idempotency_key_in_use",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

422 Idempotency-Key already used within 24 hours for a request with a different body
json
{
  "success": false,
  "error": {
    "type": "invalid_request_error",
    "code": "idempotency_key_reused",
    "message": "The Idempotency-Key was already used for a request with a different body. Generate a new key for this request.",
    "doc_url": "https://www.cstar.help/developers/errors#idempotency_key_reused",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

401 Authentication failed: missing or invalid API key
json
{
  "success": false,
  "error": {
    "type": "authentication_error",
    "code": "invalid_api_key",
    "message": "The API key provided is invalid or has been revoked",
    "doc_url": "https://www.cstar.help/developers/errors#invalid_api_key",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

429 Rate limit exceeded
json
{
  "success": false,
  "error": {
    "type": "rate_limit_error",
    "code": "rate_limit_exceeded",
    "message": "Rate limit exceeded. Try again in 60 seconds.",
    "retryAfter": 60,
    "doc_url": "https://www.cstar.help/developers/errors#rate_limit_exceeded",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

GET /api/v1/teams/{teamId}/community/posts/{postId}

Get post

Get one community post with its visible comments, oldest first.

Path Parameters

postId uuid required

Post ID

Code Examples

bash
curl "https://www.cstar.help/api/v1/teams/{teamId}/community/posts/{postId}" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 The post, with a comments array
json
{
  "success": true,
  "data": {
    "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
    "object": "community_post",
    "topicId": "3f2b6c1e-8a4d-4f7b-9c2e-1d5a7b9e0f12",
    "topicName": "Feature requests",
    "title": "Dark mode for the widget",
    "slug": "dark-mode-for-the-widget",
    "body": "Our site is dark. The widget is not.",
    "status": "planned",
    "visibility": "public",
    "voteCount": 12,
    "commentCount": 1,
    "isPinned": false,
    "isFeatured": false,
    "isLocked": false,
    "commentsEnabled": true,
    "customFields": {},
    "attachments": [],
    "lastActivityAt": "2026-10-22T09:30:00Z",
    "createdAt": "2026-10-20T14:00:00Z",
    "updatedAt": "2026-10-22T09:30:00Z",
    "comments": [
      {
        "id": "b1d5c0de-2f4a-4c55-9a1e-6f0d2c3b4a59",
        "object": "community_comment",
        "postId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
        "body": "Planned for next month.",
        "isOfficial": true,
        "voteScore": 3,
        "parentCommentId": null,
        "attachments": [],
        "createdAt": "2026-10-22T09:30:00Z"
      }
    ]
  }
}

404 Post not found
json
{
  "success": false,
  "error": {
    "type": "not_found_error",
    "code": "resource_not_found",
    "message": "Community post not found",
    "doc_url": "https://www.cstar.help/developers/errors#resource_not_found",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2026-10-23T12:00:00Z"
  }
}

401 Authentication failed: missing or invalid API key
json
{
  "success": false,
  "error": {
    "type": "authentication_error",
    "code": "invalid_api_key",
    "message": "The API key provided is invalid or has been revoked",
    "doc_url": "https://www.cstar.help/developers/errors#invalid_api_key",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

403 Insufficient permissions: wrong key type or team access
json
{
  "success": false,
  "error": {
    "type": "authentication_error",
    "code": "insufficient_permissions",
    "message": "Your API key does not have permission for this operation",
    "doc_url": "https://www.cstar.help/developers/errors#insufficient_permissions",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

429 Rate limit exceeded
json
{
  "success": false,
  "error": {
    "type": "rate_limit_error",
    "code": "rate_limit_exceeded",
    "message": "Rate limit exceeded. Try again in 60 seconds.",
    "retryAfter": 60,
    "doc_url": "https://www.cstar.help/developers/errors#rate_limit_exceeded",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

DELETE /api/v1/teams/{teamId}/community/posts/{postId}

Delete post

Delete a community post and its comments. There is no undo.

Path Parameters

postId uuid required

Post ID

Code Examples

bash
curl -X DELETE "https://www.cstar.help/api/v1/teams/{teamId}/community/posts/{postId}" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Post deleted
json
{
  "success": true,
  "data": {
    "deleted": true,
    "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7"
  }
}

404 Post not found
json
{
  "success": false,
  "error": {
    "type": "not_found_error",
    "code": "resource_not_found",
    "message": "Community post not found",
    "doc_url": "https://www.cstar.help/developers/errors#resource_not_found",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2026-10-23T12:00:00Z"
  }
}

403 `feature_disabled`: Community is turned off for the team (`feature` and `enable_url` say where an owner or admin turns it back on). A key without the permission gets `insufficient_permissions`.
json
{
  "success": false,
  "error": {
    "feature": "community",
    "enable_url": "https://www.cstar.help/team/acme/settings?panel=team&section=community",
    "type": "invalid_request_error",
    "code": "feature_disabled",
    "message": "Community is turned off for this team. An owner or admin can turn it on in Settings > Team Settings > Community.",
    "doc_url": "https://www.cstar.help/developers/errors#feature_disabled",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2026-10-23T12:00:00Z"
  }
}

401 Authentication failed: missing or invalid API key
json
{
  "success": false,
  "error": {
    "type": "authentication_error",
    "code": "invalid_api_key",
    "message": "The API key provided is invalid or has been revoked",
    "doc_url": "https://www.cstar.help/developers/errors#invalid_api_key",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

429 Rate limit exceeded
json
{
  "success": false,
  "error": {
    "type": "rate_limit_error",
    "code": "rate_limit_exceeded",
    "message": "Rate limit exceeded. Try again in 60 seconds.",
    "retryAfter": 60,
    "doc_url": "https://www.cstar.help/developers/errors#rate_limit_exceeded",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

GET /api/v1/teams/{teamId}/community/posts/{postId}/comments

List comments

List a post's visible comments, oldest first.

Path Parameters

postId uuid required

Post ID

Code Examples

bash
curl "https://www.cstar.help/api/v1/teams/{teamId}/community/posts/{postId}/comments" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 List of comments
json
{
  "success": true,
  "data": [
    {
      "id": "b1d5c0de-2f4a-4c55-9a1e-6f0d2c3b4a59",
      "object": "community_comment",
      "postId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "body": "Planned for next month.",
      "isOfficial": true,
      "voteScore": 3,
      "parentCommentId": null,
      "attachments": [],
      "createdAt": "2026-10-22T09:30:00Z"
    }
  ]
}

404 Post not found
json
{
  "success": false,
  "error": {
    "type": "not_found_error",
    "code": "resource_not_found",
    "message": "Community post not found",
    "doc_url": "https://www.cstar.help/developers/errors#resource_not_found",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2026-10-23T12:00:00Z"
  }
}

401 Authentication failed: missing or invalid API key
json
{
  "success": false,
  "error": {
    "type": "authentication_error",
    "code": "invalid_api_key",
    "message": "The API key provided is invalid or has been revoked",
    "doc_url": "https://www.cstar.help/developers/errors#invalid_api_key",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

403 Insufficient permissions: wrong key type or team access
json
{
  "success": false,
  "error": {
    "type": "authentication_error",
    "code": "insufficient_permissions",
    "message": "Your API key does not have permission for this operation",
    "doc_url": "https://www.cstar.help/developers/errors#insufficient_permissions",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

429 Rate limit exceeded
json
{
  "success": false,
  "error": {
    "type": "rate_limit_error",
    "code": "rate_limit_exceeded",
    "message": "Rate limit exceeded. Try again in 60 seconds.",
    "retryAfter": 60,
    "doc_url": "https://www.cstar.help/developers/errors#rate_limit_exceeded",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

POST /api/v1/teams/{teamId}/community/posts/{postId}/comments

Add comment

Add a comment to a post as the member who made the key. A locked post, a post with comments off, or a team with comments turned off answers 403 comments_closed. A key acts for the member who made it; a key whose creator is no longer an owner or admin on the team (or that has none) gets 403.

Path Parameters

postId uuid required

Post ID

Request Body

body string required

Comment text

attachments array

Image attachments (max 5). Each: {filename, content_type, size_bytes, storage_path}. Images only, 4 MB max each.

Code Examples

bash
curl -X POST "https://www.cstar.help/api/v1/teams/{teamId}/community/posts/{postId}/comments" \
  -H "Authorization: Bearer sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{"body":"Planned for next month."}'

Responses

201 Comment added
json
{
  "success": true,
  "data": {
    "id": "b1d5c0de-2f4a-4c55-9a1e-6f0d2c3b4a59",
    "object": "community_comment",
    "postId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
    "body": "Planned for next month.",
    "isOfficial": true,
    "voteScore": 3,
    "parentCommentId": null,
    "attachments": [],
    "createdAt": "2026-10-22T09:30:00Z"
  }
}

403 `comments_closed`: the post is locked, its comments are off, or the team turned comments off. `feature_disabled` when Community is off (with `feature` and `enable_url`), `insufficient_permissions` for a key without the permission.
json
{
  "success": false,
  "error": {
    "type": "invalid_request_error",
    "code": "comments_closed",
    "message": "This post is locked and cannot accept new comments",
    "doc_url": "https://www.cstar.help/developers/errors#comments_closed",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2026-10-23T12:00:00Z"
  }
}

404 Post not found
json
{
  "success": false,
  "error": {
    "type": "not_found_error",
    "code": "resource_not_found",
    "message": "Community post not found",
    "doc_url": "https://www.cstar.help/developers/errors#resource_not_found",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2026-10-23T12:00:00Z"
  }
}

409 Idempotency-Key in use: its first request is still running (Retry-After says when to send it again) or it was used on another endpoint
json
{
  "success": false,
  "error": {
    "type": "invalid_request_error",
    "code": "idempotency_key_in_use",
    "message": "A request with this Idempotency-Key is still being processed. Retry after it finishes.",
    "doc_url": "https://www.cstar.help/developers/errors#idempotency_key_in_use",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

422 Idempotency-Key already used within 24 hours for a request with a different body
json
{
  "success": false,
  "error": {
    "type": "invalid_request_error",
    "code": "idempotency_key_reused",
    "message": "The Idempotency-Key was already used for a request with a different body. Generate a new key for this request.",
    "doc_url": "https://www.cstar.help/developers/errors#idempotency_key_reused",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

401 Authentication failed: missing or invalid API key
json
{
  "success": false,
  "error": {
    "type": "authentication_error",
    "code": "invalid_api_key",
    "message": "The API key provided is invalid or has been revoked",
    "doc_url": "https://www.cstar.help/developers/errors#invalid_api_key",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

429 Rate limit exceeded
json
{
  "success": false,
  "error": {
    "type": "rate_limit_error",
    "code": "rate_limit_exceeded",
    "message": "Rate limit exceeded. Try again in 60 seconds.",
    "retryAfter": 60,
    "doc_url": "https://www.cstar.help/developers/errors#rate_limit_exceeded",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

POST /api/v1/teams/{teamId}/community/posts/{postId}/vote

Toggle vote

Add the upvote of the member who created the key, or take it back if they already voted. No body. A key acts for the member who made it; a key whose creator is no longer an owner or admin on the team (or that has none) gets 403.

Path Parameters

postId uuid required

Post ID

Code Examples

bash
curl -X POST "https://www.cstar.help/api/v1/teams/{teamId}/community/posts/{postId}/vote" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 The vote after the toggle
json
{
  "success": true,
  "data": {
    "voted": true,
    "voteCount": 13
  }
}

404 Post not found
json
{
  "success": false,
  "error": {
    "type": "not_found_error",
    "code": "resource_not_found",
    "message": "Community post not found",
    "doc_url": "https://www.cstar.help/developers/errors#resource_not_found",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2026-10-23T12:00:00Z"
  }
}

403 `feature_disabled`: Community is turned off for the team (`feature` and `enable_url` say where an owner or admin turns it back on). A key without the permission gets `insufficient_permissions`.
json
{
  "success": false,
  "error": {
    "feature": "community",
    "enable_url": "https://www.cstar.help/team/acme/settings?panel=team&section=community",
    "type": "invalid_request_error",
    "code": "feature_disabled",
    "message": "Community is turned off for this team. An owner or admin can turn it on in Settings > Team Settings > Community.",
    "doc_url": "https://www.cstar.help/developers/errors#feature_disabled",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2026-10-23T12:00:00Z"
  }
}

409 Idempotency-Key in use: its first request is still running (Retry-After says when to send it again) or it was used on another endpoint
json
{
  "success": false,
  "error": {
    "type": "invalid_request_error",
    "code": "idempotency_key_in_use",
    "message": "A request with this Idempotency-Key is still being processed. Retry after it finishes.",
    "doc_url": "https://www.cstar.help/developers/errors#idempotency_key_in_use",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

422 Idempotency-Key already used within 24 hours for a request with a different body
json
{
  "success": false,
  "error": {
    "type": "invalid_request_error",
    "code": "idempotency_key_reused",
    "message": "The Idempotency-Key was already used for a request with a different body. Generate a new key for this request.",
    "doc_url": "https://www.cstar.help/developers/errors#idempotency_key_reused",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

401 Authentication failed: missing or invalid API key
json
{
  "success": false,
  "error": {
    "type": "authentication_error",
    "code": "invalid_api_key",
    "message": "The API key provided is invalid or has been revoked",
    "doc_url": "https://www.cstar.help/developers/errors#invalid_api_key",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

429 Rate limit exceeded
json
{
  "success": false,
  "error": {
    "type": "rate_limit_error",
    "code": "rate_limit_exceeded",
    "message": "Rate limit exceeded. Try again in 60 seconds.",
    "retryAfter": 60,
    "doc_url": "https://www.cstar.help/developers/errors#rate_limit_exceeded",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

POST /api/v1/teams/{teamId}/community/posts/{postId}/follow

Toggle follow

Follow the post for the member who created the key, or unfollow it if they already follow. No body. A key acts for the member who made it; a key whose creator is no longer an owner or admin on the team (or that has none) gets 403.

Path Parameters

postId uuid required

Post ID

Code Examples

bash
curl -X POST "https://www.cstar.help/api/v1/teams/{teamId}/community/posts/{postId}/follow" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 The follow state after the toggle
json
{
  "success": true,
  "data": {
    "following": true
  }
}

404 Post not found
json
{
  "success": false,
  "error": {
    "type": "not_found_error",
    "code": "resource_not_found",
    "message": "Community post not found",
    "doc_url": "https://www.cstar.help/developers/errors#resource_not_found",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2026-10-23T12:00:00Z"
  }
}

403 `feature_disabled`: Community is turned off for the team (`feature` and `enable_url` say where an owner or admin turns it back on). A key without the permission gets `insufficient_permissions`.
json
{
  "success": false,
  "error": {
    "feature": "community",
    "enable_url": "https://www.cstar.help/team/acme/settings?panel=team&section=community",
    "type": "invalid_request_error",
    "code": "feature_disabled",
    "message": "Community is turned off for this team. An owner or admin can turn it on in Settings > Team Settings > Community.",
    "doc_url": "https://www.cstar.help/developers/errors#feature_disabled",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2026-10-23T12:00:00Z"
  }
}

409 Idempotency-Key in use: its first request is still running (Retry-After says when to send it again) or it was used on another endpoint
json
{
  "success": false,
  "error": {
    "type": "invalid_request_error",
    "code": "idempotency_key_in_use",
    "message": "A request with this Idempotency-Key is still being processed. Retry after it finishes.",
    "doc_url": "https://www.cstar.help/developers/errors#idempotency_key_in_use",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

422 Idempotency-Key already used within 24 hours for a request with a different body
json
{
  "success": false,
  "error": {
    "type": "invalid_request_error",
    "code": "idempotency_key_reused",
    "message": "The Idempotency-Key was already used for a request with a different body. Generate a new key for this request.",
    "doc_url": "https://www.cstar.help/developers/errors#idempotency_key_reused",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

401 Authentication failed: missing or invalid API key
json
{
  "success": false,
  "error": {
    "type": "authentication_error",
    "code": "invalid_api_key",
    "message": "The API key provided is invalid or has been revoked",
    "doc_url": "https://www.cstar.help/developers/errors#invalid_api_key",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

429 Rate limit exceeded
json
{
  "success": false,
  "error": {
    "type": "rate_limit_error",
    "code": "rate_limit_exceeded",
    "message": "Rate limit exceeded. Try again in 60 seconds.",
    "retryAfter": 60,
    "doc_url": "https://www.cstar.help/developers/errors#rate_limit_exceeded",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

GET /api/v1/teams/{teamId}/community/topics

List topics

Get all community topics for the team. Each topic includes a customFields array: the custom fields that appear on posts in that topic.

Code Examples

bash
curl "https://www.cstar.help/api/v1/teams/{teamId}/community/topics" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 List of topics
json
{
  "success": true,
  "data": [
    {
      "id": "3f2b6c1e-8a4d-4f7b-9c2e-1d5a7b9e0f12",
      "object": "community_topic",
      "name": "Feature requests",
      "slug": "feature-requests",
      "description": "Ideas for what we build next",
      "icon": "rocket",
      "visibility": "public",
      "sortOrder": 0,
      "customFields": [
        {
          "id": "field-def-id",
          "label": "Video URL",
          "type": "url",
          "required": true
        }
      ],
      "postCount": 12,
      "createdAt": "2026-10-01T10:00:00Z"
    }
  ]
}

401 Authentication failed: missing or invalid API key
json
{
  "success": false,
  "error": {
    "type": "authentication_error",
    "code": "invalid_api_key",
    "message": "The API key provided is invalid or has been revoked",
    "doc_url": "https://www.cstar.help/developers/errors#invalid_api_key",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

403 Insufficient permissions: wrong key type or team access
json
{
  "success": false,
  "error": {
    "type": "authentication_error",
    "code": "insufficient_permissions",
    "message": "Your API key does not have permission for this operation",
    "doc_url": "https://www.cstar.help/developers/errors#insufficient_permissions",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

429 Rate limit exceeded
json
{
  "success": false,
  "error": {
    "type": "rate_limit_error",
    "code": "rate_limit_exceeded",
    "message": "Rate limit exceeded. Try again in 60 seconds.",
    "retryAfter": 60,
    "doc_url": "https://www.cstar.help/developers/errors#rate_limit_exceeded",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

POST /api/v1/teams/{teamId}/community/topics

Create topic

Create a community topic. A slug another topic uses answers 409. A test key is refused with 400 (team settings are live, with no test copy).

Request Body

name string required

Topic name

slug string

URL slug, unique in the team

description string

Shown under the topic name

icon string

A Lucide icon name

sortOrder integer

Position in the topic list

visibility string

public or members_only

requireApproval boolean

New posts wait for approval

postGuide string

Guidance shown when writing a post

Code Examples

bash
curl -X POST "https://www.cstar.help/api/v1/teams/{teamId}/community/topics" \
  -H "Authorization: Bearer sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{"name":"Feature requests","icon":"rocket"}'

Responses

201 Topic created
json
{
  "success": true,
  "data": {
    "id": "3f2b6c1e-8a4d-4f7b-9c2e-1d5a7b9e0f12",
    "object": "community_topic",
    "name": "Feature requests",
    "slug": "feature-requests",
    "description": "Ideas for what we build next",
    "icon": "rocket",
    "visibility": "public",
    "sortOrder": 0,
    "customFields": [],
    "postCount": 12,
    "createdAt": "2026-10-01T10:00:00Z"
  }
}

403 `feature_disabled`: Community is turned off for the team (`feature` and `enable_url` say where an owner or admin turns it back on). A key without the permission gets `insufficient_permissions`.
json
{
  "success": false,
  "error": {
    "feature": "community",
    "enable_url": "https://www.cstar.help/team/acme/settings?panel=team&section=community",
    "type": "invalid_request_error",
    "code": "feature_disabled",
    "message": "Community is turned off for this team. An owner or admin can turn it on in Settings > Team Settings > Community.",
    "doc_url": "https://www.cstar.help/developers/errors#feature_disabled",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2026-10-23T12:00:00Z"
  }
}

409 Idempotency-Key in use: its first request is still running (Retry-After says when to send it again) or it was used on another endpoint
json
{
  "success": false,
  "error": {
    "type": "invalid_request_error",
    "code": "idempotency_key_in_use",
    "message": "A request with this Idempotency-Key is still being processed. Retry after it finishes.",
    "doc_url": "https://www.cstar.help/developers/errors#idempotency_key_in_use",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

422 Idempotency-Key already used within 24 hours for a request with a different body
json
{
  "success": false,
  "error": {
    "type": "invalid_request_error",
    "code": "idempotency_key_reused",
    "message": "The Idempotency-Key was already used for a request with a different body. Generate a new key for this request.",
    "doc_url": "https://www.cstar.help/developers/errors#idempotency_key_reused",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

401 Authentication failed: missing or invalid API key
json
{
  "success": false,
  "error": {
    "type": "authentication_error",
    "code": "invalid_api_key",
    "message": "The API key provided is invalid or has been revoked",
    "doc_url": "https://www.cstar.help/developers/errors#invalid_api_key",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

429 Rate limit exceeded
json
{
  "success": false,
  "error": {
    "type": "rate_limit_error",
    "code": "rate_limit_exceeded",
    "message": "Rate limit exceeded. Try again in 60 seconds.",
    "retryAfter": 60,
    "doc_url": "https://www.cstar.help/developers/errors#rate_limit_exceeded",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

GET /api/v1/teams/{teamId}/community/topics/{topicId}

Get topic

Get one community topic with its custom fields.

Path Parameters

topicId uuid required

Topic ID

Code Examples

bash
curl "https://www.cstar.help/api/v1/teams/{teamId}/community/topics/{topicId}" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 The topic
json
{
  "success": true,
  "data": {
    "id": "3f2b6c1e-8a4d-4f7b-9c2e-1d5a7b9e0f12",
    "object": "community_topic",
    "name": "Feature requests",
    "slug": "feature-requests",
    "description": "Ideas for what we build next",
    "icon": "rocket",
    "visibility": "public",
    "sortOrder": 0,
    "customFields": [],
    "postCount": 12,
    "createdAt": "2026-10-01T10:00:00Z"
  }
}

404 Topic not found
json
{
  "success": false,
  "error": {
    "type": "not_found_error",
    "code": "resource_not_found",
    "message": "Community topic not found",
    "doc_url": "https://www.cstar.help/developers/errors#resource_not_found",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2026-10-23T12:00:00Z"
  }
}

401 Authentication failed: missing or invalid API key
json
{
  "success": false,
  "error": {
    "type": "authentication_error",
    "code": "invalid_api_key",
    "message": "The API key provided is invalid or has been revoked",
    "doc_url": "https://www.cstar.help/developers/errors#invalid_api_key",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

403 Insufficient permissions: wrong key type or team access
json
{
  "success": false,
  "error": {
    "type": "authentication_error",
    "code": "insufficient_permissions",
    "message": "Your API key does not have permission for this operation",
    "doc_url": "https://www.cstar.help/developers/errors#insufficient_permissions",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

429 Rate limit exceeded
json
{
  "success": false,
  "error": {
    "type": "rate_limit_error",
    "code": "rate_limit_exceeded",
    "message": "Rate limit exceeded. Try again in 60 seconds.",
    "retryAfter": 60,
    "doc_url": "https://www.cstar.help/developers/errors#rate_limit_exceeded",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

PATCH /api/v1/teams/{teamId}/community/topics/{topicId}

Update topic

Change a topic. Only the fields you send change. A test key is refused with 400 (team settings are live, with no test copy).

Path Parameters

topicId uuid required

Topic ID

Request Body

name string

Topic name

slug string

URL slug, unique in the team

description string

Shown under the topic name

icon string

A Lucide icon name

sortOrder integer

Position in the topic list

visibility string

public or members_only

requireApproval boolean

New posts wait for approval

postGuide string

Guidance shown when writing a post

Code Examples

bash
curl -X PATCH "https://www.cstar.help/api/v1/teams/{teamId}/community/topics/{topicId}" \
  -H "Authorization: Bearer sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{"name":"Ideas"}'

Responses

200 Updated topic
json
{
  "success": true,
  "data": {
    "id": "3f2b6c1e-8a4d-4f7b-9c2e-1d5a7b9e0f12",
    "object": "community_topic",
    "name": "Ideas",
    "slug": "feature-requests",
    "description": "Ideas for what we build next",
    "icon": "rocket",
    "visibility": "public",
    "sortOrder": 0,
    "customFields": [],
    "postCount": 12,
    "createdAt": "2026-10-01T10:00:00Z"
  }
}

404 Topic not found
json
{
  "success": false,
  "error": {
    "type": "not_found_error",
    "code": "resource_not_found",
    "message": "Community topic not found",
    "doc_url": "https://www.cstar.help/developers/errors#resource_not_found",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2026-10-23T12:00:00Z"
  }
}

403 `feature_disabled`: Community is turned off for the team (`feature` and `enable_url` say where an owner or admin turns it back on). A key without the permission gets `insufficient_permissions`.
json
{
  "success": false,
  "error": {
    "feature": "community",
    "enable_url": "https://www.cstar.help/team/acme/settings?panel=team&section=community",
    "type": "invalid_request_error",
    "code": "feature_disabled",
    "message": "Community is turned off for this team. An owner or admin can turn it on in Settings > Team Settings > Community.",
    "doc_url": "https://www.cstar.help/developers/errors#feature_disabled",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2026-10-23T12:00:00Z"
  }
}

409 Idempotency-Key in use: its first request is still running (Retry-After says when to send it again) or it was used on another endpoint
json
{
  "success": false,
  "error": {
    "type": "invalid_request_error",
    "code": "idempotency_key_in_use",
    "message": "A request with this Idempotency-Key is still being processed. Retry after it finishes.",
    "doc_url": "https://www.cstar.help/developers/errors#idempotency_key_in_use",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

422 Idempotency-Key already used within 24 hours for a request with a different body
json
{
  "success": false,
  "error": {
    "type": "invalid_request_error",
    "code": "idempotency_key_reused",
    "message": "The Idempotency-Key was already used for a request with a different body. Generate a new key for this request.",
    "doc_url": "https://www.cstar.help/developers/errors#idempotency_key_reused",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

401 Authentication failed: missing or invalid API key
json
{
  "success": false,
  "error": {
    "type": "authentication_error",
    "code": "invalid_api_key",
    "message": "The API key provided is invalid or has been revoked",
    "doc_url": "https://www.cstar.help/developers/errors#invalid_api_key",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

429 Rate limit exceeded
json
{
  "success": false,
  "error": {
    "type": "rate_limit_error",
    "code": "rate_limit_exceeded",
    "message": "Rate limit exceeded. Try again in 60 seconds.",
    "retryAfter": 60,
    "doc_url": "https://www.cstar.help/developers/errors#rate_limit_exceeded",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

DELETE /api/v1/teams/{teamId}/community/topics/{topicId}

Delete topic

Delete a topic. Its posts (hidden and pending ones too) move to movePostsTo in the same step, so no post is lost. A topic that still has posts is refused with 409 when movePostsTo is missing. Needs the manage_community permission. A test key is refused with 400 (team settings are live, with no test copy).

Path Parameters

topicId uuid required

Topic ID

Query Parameters

movePostsTo uuid

Another of the team's topics to move this topic's posts to. Needed when the topic has posts

Code Examples

bash
curl -X DELETE "https://www.cstar.help/api/v1/teams/{teamId}/community/topics/{topicId}?movePostsTo={otherTopicId}" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Topic deleted; movedPosts says how many posts moved
json
{
  "success": true,
  "data": {
    "deleted": true,
    "id": "3f2b6c1e-8a4d-4f7b-9c2e-1d5a7b9e0f12",
    "movedPosts": 12
  }
}

409 The topic still has posts and no `movePostsTo` was given
json
{
  "success": false,
  "error": {
    "type": "invalid_request_error",
    "code": "resource_conflict",
    "message": "This topic still has 12 posts. Pick another topic to move them to first.",
    "param": "movePostsTo",
    "doc_url": "https://www.cstar.help/developers/errors#resource_conflict",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

404 Topic not found
json
{
  "success": false,
  "error": {
    "type": "not_found_error",
    "code": "resource_not_found",
    "message": "Community topic not found",
    "doc_url": "https://www.cstar.help/developers/errors#resource_not_found",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2026-10-23T12:00:00Z"
  }
}

403 `feature_disabled`: Community is turned off for the team (`feature` and `enable_url` say where an owner or admin turns it back on). A key without the permission gets `insufficient_permissions`.
json
{
  "success": false,
  "error": {
    "feature": "community",
    "enable_url": "https://www.cstar.help/team/acme/settings?panel=team&section=community",
    "type": "invalid_request_error",
    "code": "feature_disabled",
    "message": "Community is turned off for this team. An owner or admin can turn it on in Settings > Team Settings > Community.",
    "doc_url": "https://www.cstar.help/developers/errors#feature_disabled",
    "request_id": "req_abc123"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2026-10-23T12:00:00Z"
  }
}

401 Authentication failed: missing or invalid API key
json
{
  "success": false,
  "error": {
    "type": "authentication_error",
    "code": "invalid_api_key",
    "message": "The API key provided is invalid or has been revoked",
    "doc_url": "https://www.cstar.help/developers/errors#invalid_api_key",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}

429 Rate limit exceeded
json
{
  "success": false,
  "error": {
    "type": "rate_limit_error",
    "code": "rate_limit_exceeded",
    "message": "Rate limit exceeded. Try again in 60 seconds.",
    "retryAfter": 60,
    "doc_url": "https://www.cstar.help/developers/errors#rate_limit_exceeded",
    "request_id": "req_abc123"
  },
  "meta": {
    "timestamp": "2025-12-10T14:30:00Z"
  }
}