Search
Search across tickets, customers, and articles in a single query. Works with publishable keys (read-only).
The Searc object
Resource type (ticket, customer, article)
Resource ID
Title or name
Matching text excerpt
Endpoints
GET
/api/v1/teams/{teamId}/searchSearch
Try itPerform a cross-resource search.
Query Parameters
q string requiredSearch query
types string Comma-separated types to search (tickets,customers,articles)
limit integer Max results
Default: 10
Code Examples
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/search?q=billing+issue" \
-H "Authorization: Bearer sk_live_your_key"Responses
200 Search results
{
"success": true,
"data": [
{
"object": "search_result",
"type": "ticket",
"id": "tkt_abc",
"title": "Billing issue",
"snippet": "...cannot process payment..."
}
]
}401 Authentication failed — missing or invalid API key
{
"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"
}
}403 Insufficient permissions — wrong key type or team access
{
"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"
}
}429 Rate limit exceeded
{
"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"
}
}