Webhooks
Webhooks notify your application in real-time when events happen in cStar. Subscribe to ticket, customer, article, and gamification events.
The Webhook object
Unique webhook identifier (whk_ prefix)
Friendly name for the webhook
Delivery URL (HTTPS)
Array of subscribed event types
HMAC signing secret (whsec_ prefix, shown once at creation)
Whether the webhook is currently active
When the webhook was created
Last modification timestamp
Endpoints
/api/v1/teams/{teamId}/webhooksList Webhooks
Try itRetrieve all configured webhooks for your team.
Code Examples
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/webhooks" \
-H "Authorization: Bearer sk_live_your_key"Responses
{
"success": true,
"data": [
{
"id": "whk_a1b2c3d4e5f6",
"name": "Slack Notifications",
"url": "https://hooks.slack.com/services/...",
"events": [
"ticket.created",
"ticket.closed"
],
"isActive": true,
"createdAt": "2025-11-01T10:00:00Z"
}
],
"meta": {
"requestId": "req_abc123",
"timestamp": "2025-12-10T14:30:00Z"
}
}{
"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"
}
}{
"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"
}
}{
"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"
}
}/api/v1/teams/{teamId}/webhooks/{webhookId}Get Webhook
Try itRetrieve a single webhook by ID.
Path Parameters
webhookId string requiredThe webhook ID (whk_ prefix)
Code Examples
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/webhooks/{webhookId}" \
-H "Authorization: Bearer sk_live_your_key"Responses
{
"success": true,
"data": {
"id": "whk_a1b2c3d4e5f6",
"name": "Slack Notifications",
"url": "https://hooks.slack.com/services/...",
"events": [
"ticket.created",
"ticket.closed"
],
"isActive": true,
"createdAt": "2025-11-01T10:00:00Z",
"updatedAt": "2025-11-15T12:00:00Z"
},
"meta": {
"requestId": "req_abc123",
"timestamp": "2025-12-10T14:30:00Z"
}
}{
"success": false,
"error": {
"type": "not_found_error",
"code": "RESOURCE_MISSING",
"message": "Webhook not found",
"request_id": "req_abc123"
},
"meta": {
"timestamp": "2025-12-10T14:30:00Z"
}
}{
"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"
}
}{
"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"
}
}{
"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"
}
}/api/v1/teams/{teamId}/webhooksCreate Webhook
Try itCreate a new webhook subscription. The signing secret is returned once — save it immediately.
Request Body
name string requiredFriendly name
url string requiredDelivery URL (must be HTTPS)
events string requiredComma-separated event types to subscribe to
Code Examples
curl -X POST "https://www.cstar.help/api/v1/teams/{teamId}/webhooks" \
-H "Authorization: Bearer sk_live_your_key" \
-H "Content-Type: application/json" \
-d '{
"name": "My Webhook",
"url": "https://example.com/webhook",
"events": "ticket.created,ticket.closed"
}'Responses
{
"success": true,
"data": {
"id": "whk_b2c3d4e5f6a7",
"name": "My Webhook",
"url": "https://example.com/webhook",
"events": [
"ticket.created",
"ticket.closed"
],
"secret": "whsec_AbCdEf1234567890...",
"isActive": true,
"createdAt": "2025-12-10T14:30:00Z"
},
"meta": {
"requestId": "req_abc123",
"timestamp": "2025-12-10T14:30:00Z"
}
}{
"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"
}
}{
"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"
}
}{
"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"
}
}/api/v1/teams/{teamId}/webhooks/{webhookId}Update Webhook
Try itUpdate an existing webhook. Use this to change the URL, events, or toggle active status.
Path Parameters
webhookId string requiredThe webhook ID (whk_ prefix)
Request Body
name string Friendly name
url string Delivery URL (must be HTTPS)
events string Comma-separated event types
isActive boolean Enable or disable the webhook
Code Examples
curl -X PATCH "https://www.cstar.help/api/v1/teams/{teamId}/webhooks/{webhookId}" \
-H "Authorization: Bearer sk_live_your_key" \
-H "Content-Type: application/json" \
-d '{ "events": "ticket.created,ticket.updated,ticket.closed" }'Responses
{
"success": true,
"data": {
"id": "whk_b2c3d4e5f6a7",
"name": "My Webhook",
"url": "https://example.com/webhook",
"events": [
"ticket.created",
"ticket.updated",
"ticket.closed"
],
"isActive": true,
"updatedAt": "2025-12-10T16:00:00Z"
},
"meta": {
"requestId": "req_abc123",
"timestamp": "2025-12-10T16:00:00Z"
}
}{
"success": false,
"error": {
"type": "not_found_error",
"code": "RESOURCE_MISSING",
"message": "Webhook not found",
"request_id": "req_abc123"
},
"meta": {
"timestamp": "2025-12-10T14:30:00Z"
}
}{
"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"
}
}{
"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"
}
}{
"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"
}
}/api/v1/teams/{teamId}/webhooks/{webhookId}Delete Webhook
Try itPermanently delete a webhook subscription.
Path Parameters
webhookId string requiredThe webhook ID (whk_ prefix)
Code Examples
curl -X DELETE "https://www.cstar.help/api/v1/teams/{teamId}/webhooks/{webhookId}" \
-H "Authorization: Bearer sk_live_your_key"Responses
{
"success": true,
"data": {
"deleted": true
},
"meta": {
"requestId": "req_abc123",
"timestamp": "2025-12-10T14:30:00Z"
}
}{
"success": false,
"error": {
"type": "not_found_error",
"code": "RESOURCE_MISSING",
"message": "Webhook not found",
"request_id": "req_abc123"
},
"meta": {
"timestamp": "2025-12-10T14:30:00Z"
}
}{
"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"
}
}{
"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"
}
}{
"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"
}
}/api/v1/teams/{teamId}/webhooks/trigger-testTrigger Test Event
Fire a test webhook event to all active webhooks and CLI listeners. Useful for testing your integration.
Request Body
event string requiredEvent type to fire
Code Examples
curl -X POST "https://www.cstar.help/api/v1/teams/{teamId}/webhooks/trigger-test" \
-H "Authorization: Bearer sk_live_your_key" \
-H "Content-Type: application/json" \
-d '{ "event": "ticket.created" }'Responses
{
"success": true,
"data": {
"event": "ticket.created",
"eventId": "evt_abc123",
"test": true,
"deliveries": []
},
"meta": {
"requestId": "req_abc123",
"timestamp": "2025-12-10T14:30:00Z"
}
}{
"success": false,
"error": {
"type": "validation_error",
"code": "PARAMETER_INVALID",
"message": "Unknown event type: invalid.event",
"param": "event",
"request_id": "req_abc123"
},
"meta": {
"timestamp": "2025-12-10T14:30:00Z"
}
}{
"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"
}
}{
"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"
}
}{
"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"
}
}