Saved Views
Saved filter presets for tickets, customers, articles, or community posts. Create reusable views and execute them to get filtered results.
The Saved View object
View ID
View name
Entity type "tickets" | "customers" | "articles" | "community_posts"
Saved filter configuration
Sort field
Sort direction "asc" | "desc"
Who the view is for: the whole team, or only its author in the app. API keys see all of the team's views. "private" | "team"
Endpoints
/api/v1/teams/{teamId}/viewsList Views
List saved views, optionally filtered by entity type.
Query Parameters
entityType string Filter by entity type
Code Examples
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/views?entityType=tickets" \
-H "Authorization: Bearer sk_live_your_key" Responses
{
"success": true,
"data": [
{
"id": "view_abc",
"name": "Critical Unresolved",
"entityType": "tickets",
"filters": {
"priority": "critical",
"status": "open"
},
"visibility": "team"
}
]
} {
"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"
}
} {
"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"
}
} {
"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"
}
} /api/v1/teams/{teamId}/viewsCreate View
Create a saved view. A test key is refused with 400 (team settings are live, with no test copy).
Request Body
name string requiredView name
entityType string requiredEntity type
filters object Filter configuration. Tickets: status, priority, channel (a value or a list), assignedTo (a user id, 'unassigned' or null), tags (all must match), createdAfter, createdBefore (ISO 8601, like 2026-11-01 or 2026-11-01T09:30:00Z), customFields ({ fieldId: value }). Customers: status, sentiment, tags, dates, customFields. Articles: status, tags, isPublic, dates, customFields. Community posts: status, dates, customFields. Any other key or a malformed value is a 400.
sortField string Sort field. For tickets, priority follows the team's priorities in their order (desc puts the top priority first).
Default: created_at
sortDirection string Sort direction
Default: desc
visibility string Visibility
Default: team
Code Examples
curl -X POST "https://www.cstar.help/api/v1/teams/{teamId}/views" \
-H "Authorization: Bearer sk_live_your_key" \
-H "Content-Type: application/json" \
-d '{"name":"Critical Unresolved","entityType":"tickets","filters":{"priority":"critical","status":"open"}}' Responses
{
"success": true,
"data": {
"id": "view_abc",
"name": "Critical Unresolved",
"entityType": "tickets",
"filters": {
"priority": "critical"
}
}
} {
"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"
}
} {
"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"
}
} {
"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"
}
} {
"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"
}
} {
"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"
}
} /api/v1/teams/{teamId}/views/{viewId}/executeExecute View
Execute a saved view. Returns the filtered and sorted results in the same shape as the entity's list endpoint. Needs that entity's view permission; test keys see only test data.
Path Parameters
viewId string requiredView ID
Query Parameters
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}/views/{viewId}/execute" \
-H "Authorization: Bearer sk_live_your_key" Responses
{
"success": true,
"data": [
{
"id": "tkt_abc",
"object": "ticket",
"title": "Urgent billing issue",
"priority": "critical",
"status": "open"
}
],
"pagination": {
"total": 142,
"page": 1,
"pageSize": 20,
"hasMore": true
}
} {
"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"
}
} {
"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"
}
} {
"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"
}
}