Custom Fields
Define custom data fields for tickets, customers and articles. Supports text, number, date, select and checkbox types.
The Custom Field object
Field ID
Record type this field belongs to "ticket" | "customer" | "article"
Display name
Input type "text" | "number" | "date" | "select" | "checkbox"
Pre-filled value, or null
Choices for select fields as { value, label } (a record stores the value), or null
Lower bound for number fields, or null
Upper bound for number fields, or null
Whether the field is required
Display order within its type
When the field was created
Endpoints
/api/v1/teams/{teamId}/custom-fieldsList Custom Fields
List custom field definitions in display order.
Query Parameters
entity string Only fields for this record type
Code Examples
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/custom-fields?entity=ticket" \
-H "Authorization: Bearer sk_live_your_key" Responses
{
"success": true,
"data": [
{
"id": "cf_abc",
"object": "custom_field",
"contentType": "ticket",
"label": "Region",
"fieldType": "select",
"defaultValue": null,
"options": [
{
"value": "US",
"label": "US"
},
{
"value": "EU",
"label": "EU"
},
{
"value": "APAC",
"label": "APAC"
}
],
"minValue": null,
"maxValue": null,
"required": false,
"sortOrder": 0,
"createdAt": "2026-10-01T12:00: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}/custom-fieldsCreate Custom Field
Create a new custom field definition at the end of its type. A test key is refused with 400 (team settings are live, with no test copy).
Request Body
contentType string requiredRecord type
label string requiredDisplay name
fieldType string Input type
Default: text
options array Choices for select fields: strings (each its own label) or { value, label } objects. Stored and returned as { value, label }; values must be unique.
defaultValue string Pre-filled value
minValue number Lower bound for number fields
maxValue number Upper bound for number fields
required boolean Whether the field is required
Code Examples
curl -X POST "https://www.cstar.help/api/v1/teams/{teamId}/custom-fields" \
-H "Authorization: Bearer sk_live_your_key" \
-H "Content-Type: application/json" \
-d '{"contentType":"ticket","label":"Region","fieldType":"select","options":["US","EU","APAC"]}' Responses
{
"success": true,
"data": {
"id": "cf_abc",
"object": "custom_field",
"contentType": "ticket",
"label": "Region",
"fieldType": "select",
"options": [
{
"value": "US",
"label": "US"
},
{
"value": "EU",
"label": "EU"
},
{
"value": "APAC",
"label": "APAC"
}
],
"required": false,
"sortOrder": 0
}
} {
"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"
}
}