Notifications
In-app notifications for team members. Every call names the team member with userId.
The Notification object
Notification ID
Notification type
Notification title
Notification body
Related ticket, or null
Whether this team member has read it
When it was read, or null
When the notification was created
Endpoints
GET
/api/v1/teams/{teamId}/notificationsList Notifications
List notifications for one team member.
Query Parameters
userId string requiredTeam member whose notifications to list
isRead boolean false for unread only, true for read only
type string Filter by notification type
page integer Page number (1-indexed)
Default: 1
pageSize integer Results per page (max 100)
Default: 20
Code Examples
bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/notifications?userId=550e8400-e29b-41d4-a716-446655440001&isRead=false" \
-H "Authorization: Bearer sk_live_your_key" Responses
200 Notification list
json
{
"success": true,
"data": [
{
"id": "ntf_abc",
"object": "notification",
"type": "assigned",
"title": "Ticket assigned",
"isRead": false,
"readAt": null
}
]
} 401 Authentication failed: missing or invalid API key
json
{
"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"
}
} 403 Insufficient permissions: wrong key type or team access
json
{
"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"
}
} 429 Rate limit exceeded
json
{
"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"
}
} GET
/api/v1/teams/{teamId}/notifications/unread-countGet Unread Count
Get the number of unread notifications for one team member.
Query Parameters
userId string requiredTeam member
Code Examples
bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/notifications/unread-count?userId=550e8400-e29b-41d4-a716-446655440001" \
-H "Authorization: Bearer sk_live_your_key" Responses
200 Unread count
json
{
"success": true,
"data": {
"unreadCount": 5,
"truncated": false
}
} 401 Authentication failed: missing or invalid API key
json
{
"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"
}
} 403 Insufficient permissions: wrong key type or team access
json
{
"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"
}
} 429 Rate limit exceeded
json
{
"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"
}
} POST
/api/v1/teams/{teamId}/notifications/mark-all-readMark All Read
Mark all of one team member's notifications as read.
Request Body
userId string requiredTeam member
Code Examples
bash
curl -X POST "https://www.cstar.help/api/v1/teams/{teamId}/notifications/mark-all-read" \
-H "Authorization: Bearer sk_live_your_key" \
-H "Content-Type: application/json" \
-d '{"userId":"550e8400-e29b-41d4-a716-446655440001"}' Responses
200 All marked read
json
{
"success": true,
"data": {
"markedRead": 5
}
} 409 Idempotency-Key in use: its first request is still running (Retry-After says when to send it again) or it was used on another endpoint
json
{
"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"
}
} 422 Idempotency-Key already used within 24 hours for a request with a different body
json
{
"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"
}
} 401 Authentication failed: missing or invalid API key
json
{
"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"
}
} 403 Insufficient permissions: wrong key type or team access
json
{
"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"
}
} 429 Rate limit exceeded
json
{
"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"
}
}