API Reference
You bring the UI; we run the backend. REST + JSON, Bearer tokens, standard HTTP codes. Every response carries a request ID so support handoffs are one paste.
Authentication
Pass your API key as a Bearer token in the Authorization header. Manage keys from
the CLI or team settings.
curl -H "Authorization: Bearer sk_live_your_key" \
https://www.cstar.help/api/v1/teams/{teamId}/tickets Acts for the member who made it, so it can do what their role can today (an admin's key can't open billing). Server-side only. If it lands in your bundle, rotate it.
For the public library and community SDKs and /auth/whoami. Safe in browsers.
Team endpoints answer 403: publishable_key_forbidden on reads, publishable_key_write on writes.
Base URL
https://www.cstar.help/api/v1/teams/{teamId} All endpoints are scoped to your team. Replace {teamId} with your team's UUID
(found in team settings or via cstar status).
Errors
Conventional HTTP status codes. 2xx means it worked, 4xx means you
need to fix something, 5xx means we do. The full Error Reference has the per-code playbook.
200 OK: Request succeeded201 Created: Resource created successfully400 Bad Request: Missing or invalid parameters401 Unauthorized: Invalid or missing API key403 Forbidden: Key lacks required permissions404 Not Found: Resource doesn't exist429 Rate Limited: Too many requests500 Server Error: Something went wrong on our end{
"success": false,
"error": {
"type": "invalid_request_error",
"code": "parameter_missing",
"message": "The 'title' field is required.",
"param": "title",
"doc_url": "https://www.cstar.help/developers/errors#parameter_missing",
"request_id": "req_abc123"
},
"meta": {
"timestamp": "2025-12-10T14:30:00Z"
}
} Rate Limits
The API is rate-limited per key. Limits are returned in response headers. When exceeded,
requests return 429 with a retryAfter value in the error body.
Input limits
Every limit is far above real use. A request over one returns 400 with the field in param, before anything is written. The help center search reads the first
200 characters of a longer query instead.
Stored tags are trimmed, lowercased and cut to 50 characters. A tag new to a full team list is refused: use tags already on it, or delete some in Settings first.
Idempotency
For safe retries on POST and PATCH requests, include an Idempotency-Key header. Within 24 hours, the same request (same method, endpoint
and body) with the same key gets the first successful response back, marked Idempotent-Replayed: true, instead of creating a duplicate. A failed request
doesn't use up its key, so you can fix it and retry.
The same key with a different body returns 422 idempotency_key_reused. While the
first request is still running, the key returns 409 idempotency_key_in_use with a Retry-After header: wait that many seconds and send the same request again. A key
already used on another endpoint also returns 409 idempotency_key_in_use. Multipart
uploads are compared by their fields and each file's name, type and bytes, so a new form
boundary still counts as the same request.
Keys are 1 to 250 characters; a longer key is a 400 with param: Idempotency-Key. A request that never finishes holds its key for up to 15
minutes, answering 409 meanwhile. A 503 service_unavailable with Retry-After means the key could not be recorded and nothing ran: retry with the same
key.
A few endpoints don't cache responses and ignore the key: creating API keys, webhooks and
webhook listeners, event stream tokens, data exports and billing portal sessions. Retrying those
can still make a second webhook or listener (a repeated export only reads your data again).
Adding a ticket message uses the key as that message's receipt: a retry returns the saved
message, and the same key with a different message returns 409 idempotency_key_in_use.
curl -X POST .../tickets \
-H "Authorization: Bearer sk_live_..." \
-H "Idempotency-Key: unique-request-id-123" \
-d '{"title": "My ticket"}'
# Retry with the same key and body → returns the same ticket, no duplicate Resources
Explore each resource for full endpoint documentation, parameters, and code examples.
//{ticketId}///{customerId}////{groupId}//{articleId}/////{webhookId}////{categoryId}/posts/posts/posts/{postId}//{memberId}/{memberId}//../preferences/../preferences//unread-count/mark-all-read//////agents//////////player/player/{memberId}/boss////{ruleId}/test///{viewId}/execute/subscription/portal