API Reference
The cStar API is organized around REST. It accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.
Authentication
Authenticate API requests by including your API key in the Authorization header as
a Bearer token. You can manage API keys from the CLI or your team settings.
curl -H "Authorization: Bearer sk_live_your_key" \
https://app.cstar.help/api/v1/teams/{teamId}/tickets
Full read/write access. Keep server-side only — never expose in client code.
Read-only access. Safe for frontend apps, widgets, and public-facing code.
Base URL
https://app.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
cStar uses conventional HTTP status codes. Codes in the 2xx range indicate success, 4xx indicate a client error, and 5xx indicate a server error.
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{
"error": {
"code": "parameter_missing",
"message": "title is required",
"param": "title"
}
}
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.
Resources
Explore each resource for full endpoint documentation, parameters, and code examples.
//{ticketId}///{customerId}///{articleId}/////{webhookId}/