Settings
Team settings control statuses, quick replies, the widget's online hours, and widget appearance. Secret key required.
The Settings object
Always "settings"
Ticket status options ({key, label, color, icon})
Customer status options
Article status options
Ticket priority options
Sentiment options
Ticket tag dictionary
Customer tag dictionary
Article tag dictionary
Quick replies ({id, title, text})
When the settings last changed
Endpoints
/api/v1/teams/{teamId}/settingsGet Settings
Get all team settings.
Code Examples
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/settings" \
-H "Authorization: Bearer sk_live_your_key" Responses
{
"success": true,
"data": {
"object": "settings",
"ticketStatuses": [
{
"key": "open",
"label": "Open",
"color": "#3B82F6"
}
],
"priorities": [
{
"key": "normal",
"label": "Normal"
}
],
"quickReplies": [
{
"id": "...",
"title": "Thanks",
"text": "Thanks for reaching out!"
}
]
}
} {
"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}/settings/../preferencesGet Team Preferences
Get team-wide UX preferences. Currently exposes the boss-battles toggle that hides the team-wide gamification ladder. Requires manage_settings permission.
Code Examples
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/preferences" \
-H "Authorization: Bearer sk_live_your_key" Responses
{
"success": true,
"data": {
"bossBattlesEnabled": 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"
}
} /api/v1/teams/{teamId}/settings/../preferencesUpdate Team Preferences
Toggle team-wide UX preferences. Set bossBattlesEnabled: false to turn Gamification (XP, streaks, achievements and boss battles) off for every agent; every game endpoint but high-fives then answers 403 feature_disabled. Requires manage_settings permission. A test key is refused with 400 (team settings are live, with no test copy).
Request Body
bossBattlesEnabled boolean When false, Gamification is off and the game endpoints answer 403 feature_disabled.
Code Examples
curl -X PATCH "https://www.cstar.help/api/v1/teams/{teamId}/preferences" \
-H "Authorization: Bearer sk_live_your_key" \
-H "Content-Type: application/json" \
-d '{"bossBattlesEnabled":false}' Responses
{
"success": true,
"data": {
"bossBattlesEnabled": false
}
} {
"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}/settingsUpdate Settings
Replace whole option lists. Send only the lists you change; each one replaces the saved list, so include every option you keep. Built-in statuses can be renamed but not left out. Any other field is ignored, and a body with none of these lists is a 400. A test key is refused with 400 (team settings are live, with no test copy).
Request Body
ticketStatuses array Ticket status options
customerStatuses array Customer status options
articleStatuses array Article status options
priorities array Priority options
sentiments array Sentiment options
ticketTags array Ticket tag dictionary
customerTags array Customer tag dictionary
articleTags array Article tag dictionary
quickReplies array All quick replies. Prefer the quick-reply endpoints, which check each one.
Code Examples
curl -X PATCH "https://www.cstar.help/api/v1/teams/{teamId}/settings" \
-H "Authorization: Bearer sk_live_your_key" \
-H "Content-Type: application/json" \
-d '{"priorities":[{"key":"low","label":"Low"},{"key":"normal","label":"Normal"},{"key":"urgent","label":"Urgent"}]}' Responses
{
"success": true,
"data": {
"object": "settings",
"priorities": [
{
"key": "low",
"label": "Low"
},
{
"key": "normal",
"label": "Normal"
},
{
"key": "urgent",
"label": "Urgent"
}
]
}
} {
"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}/settings/quick-repliesCreate Quick Reply
Add a quick reply. Send the text as text (or its alias body). Any other field is a 400. A team holds up to 200 quick replies. A test key is refused with 400 (team settings are live, with no test copy).
Request Body
title string requiredUp to 50 characters
text string The reply, up to 2000 characters. Required unless you send body.
body string Alias of text
Code Examples
curl -X POST "https://www.cstar.help/api/v1/teams/{teamId}/settings/quick-replies" \
-H "Authorization: Bearer sk_live_your_key" \
-H "Content-Type: application/json" \
-d '{"title":"Thanks","text":"Thanks for reaching out!"}' Responses
{
"success": true,
"data": {
"id": "...",
"title": "Thanks",
"text": "Thanks for reaching out!",
"body": "Thanks for reaching out!"
}
} {
"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}/settings/statusesList Statuses
List all ticket status configurations.
Code Examples
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/settings/statuses" \
-H "Authorization: Bearer sk_live_your_key" Responses
{
"success": true,
"data": [
{
"key": "open",
"label": "Open",
"color": "#3B82F6",
"protected": 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"
}
} /api/v1/teams/{teamId}/settings/business-hoursGet Widget Business Hours
Get the chat widget's online hours: timezone and weekly schedule. When enabled, the widget shows its offline message outside them. These are not the SLA working hours in Settings > Business Hours, which SLA deadlines use; the API doesn't expose those yet. PATCH updates the same widget hours.
Code Examples
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/settings/business-hours" \
-H "Authorization: Bearer sk_live_your_key" Responses
{
"success": true,
"data": {
"object": "business_hours",
"enabled": true,
"timezone": "America/New_York",
"schedule": {
"monday": {
"enabled": true,
"start": "09:00",
"end": "17:00"
}
}
}
} {
"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}/settings/widgetGet Widget Settings
Get widget appearance and behavior settings.
Code Examples
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/settings/widget" \
-H "Authorization: Bearer sk_live_your_key" Responses
{
"success": true,
"data": {
"object": "widget_config",
"position": "bottom-right",
"primaryColor": "#F87171",
"entrance": {
"launcher": "none",
"open": "none",
"custom": null
}
}
} {
"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}/settings/widgetUpdate Widget Settings
Update widget settings. Only the fields you send change, and every field is optional. Send each field once, in camelCase or snake_case (launcherText or launcher_text). Text over its limit returns 413. A 400 names the field when a text, colour or URL field is not a string, primaryColor is not hex, a URL is not http or https, an on/off field is not a boolean, libraryBorderRadius is not a CSS length such as 12px, or theme, position, mode or entrance has a value outside its list. entrance sets the entrance effects: one for the chat button appearing (launcher), one for opening the chat (open). Presets are none, puff, confetti, sparkle, pop and slide; custom plays your own effect from entrance.custom (numbers only: keyframes of opacity, scale, translateX, translateY and rotate, plus an optional particle burst). Durations are multiples of 42 ms and nothing runs past 840 ms. Visitors who ask for reduced motion see no effect. entrance merges per key: launcher, open and custom change only when you send them, and null resets that key (none, or no custom effect). Send "entrance": null to turn them all off. A test key is refused with 400 (team settings are live, with no test copy).
Request Body
primaryColor string Brand colour for the chat button and header. Hex only: #rgb or #rrggbb
theme string light or dark
position string bottom-right or bottom-left
launcherText string Text on the chat button. Up to 30 characters
welcomeMessage string Greeting when the chat opens. Up to 500 characters
offlineMessage string Shown outside business hours. Up to 500 characters
companyName string Name in the widget header. Up to 200 characters
termsUrl string Terms link in the widget footer. An http or https URL, up to 2000 characters. An empty string clears it
privacyUrl string Privacy link in the widget footer. An http or https URL, up to 2000 characters. An empty string clears it
mode string How you install the widget: script (the embed snippet runs) or sdk (no embed; you build your own UI with the SDK)
isEnabled boolean Turns the widget on or off
showOnLibraryPages boolean Shows the chat button on your public help center pages
requireCustomerEmailConfirmation boolean Saved for older setups only. Widget sign-ups always confirm their email first
businessHoursEnabled boolean Shows the offline message outside the widget business hours (see Get Widget Business Hours)
libraryBgColor string Help center page background. Any CSS colour, up to 50 characters
libraryCardColor string Help center card background. Any CSS colour, up to 50 characters
libraryTextColor string Help center text. Any CSS colour, up to 50 characters
libraryTextSecondaryColor string Help center secondary text. Any CSS colour, up to 50 characters
libraryBorderColor string Help center borders. Any CSS colour, up to 50 characters
libraryAccentColor string Help center links and buttons. Any CSS colour, up to 50 characters
libraryFontHeading string Help center heading font name. Up to 100 characters
libraryFontBody string Help center body font name. Up to 100 characters
libraryBorderRadius string Help center corner radius, as a CSS length such as 12px
entrance object Entrance effects (below). null turns them all off
entrance.launcher string none, puff, confetti, sparkle, pop, slide or custom. Left out: unchanged. null: none
entrance.open string none, puff, confetti, sparkle, pop, slide or custom. Left out: unchanged. null: none
entrance.custom object Your own effect (below). Left out: unchanged. null: no custom effect
entrance.custom.keyframes array 2 to 5 frames: opacity (0 to 1), scale (0 to 3), translateX and translateY (-168 to 168 px), rotate (-360 to 360 degrees)
entrance.custom.durationMs integer A multiple of 42 up to 840
Default: 420
entrance.custom.easing string linear, ease, ease-in, ease-out, ease-in-out or bounce
Default: ease-out
entrance.custom.particles object count (1 to 34), shape (circle, square, star), colors (1 to 5 hex), spread, direction, distance, size, durationMs, delayMs
Code Examples
curl -X PATCH "https://www.cstar.help/api/v1/teams/{teamId}/settings/widget" \
-H "Authorization: Bearer sk_live_your_key" \
-H "Content-Type: application/json" \
-d '{"primaryColor":"#8b5cf6","launcherText":"Chat with us","entrance":{"launcher":"puff","open":"confetti"}}' Responses
{
"success": true,
"data": {
"object": "widget_config",
"mode": "script",
"primaryColor": "#8b5cf6",
"position": "bottom-right",
"launcherText": "Chat with us",
"entrance": {
"launcher": "puff",
"open": "confetti",
"custom": null
}
}
} {
"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"
}
}