Members
Team members are the agents and admins who use cStar. Manage roles, view stats, and send invites.
The Member object
Membership ID
User account ID
Display name
Email address
Avatar image URL
Team role "owner" | "admin" | "manager" | "librarian" | "agent" | "spectator"
Game title for role (e.g., The Hero)
Array of permission keys
Player level
Current XP
When the member joined
Endpoints
/api/v1/teams/{teamId}/membersList Members
Try itList all team members with their roles, levels, and permissions.
Query Parameters
role string Filter by role
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}/members" \
-H "Authorization: Bearer sk_live_your_key"Responses
{
"success": true,
"data": [
{
"id": "mem_abc123",
"name": "Jane Smith",
"email": "jane@team.com",
"role": "agent",
"roleDisplayName": "The Hero",
"level": 12,
"xp": 4850,
"joinedAt": "2025-06-15T10:00:00Z"
}
],
"meta": {
"requestId": "req_abc123",
"timestamp": "2025-12-10T14:30:00Z",
"pagination": {
"page": 1,
"pageSize": 20,
"total": 142,
"totalPages": 8
}
}
}{
"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}/members/{memberId}Get Member
Try itGet a single team member by membership ID.
Path Parameters
memberId string requiredMembership ID
Code Examples
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/members/{memberId}" \
-H "Authorization: Bearer sk_live_your_key"Responses
{
"success": true,
"data": {
"id": "mem_abc123",
"name": "Jane Smith",
"role": "agent",
"level": 12
}
}{
"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}/members/{memberId}Update Member Role
Update a member's role. Cannot change the owner role.
Path Parameters
memberId string requiredMembership ID
Request Body
role string New role
Code Examples
curl -X PATCH "https://www.cstar.help/api/v1/teams/{teamId}/members/{memberId}" \
-H "Authorization: Bearer sk_live_your_key" \
-H "Content-Type: application/json" \
-d '{"role":"manager"}'Responses
{
"success": true,
"data": {
"id": "mem_abc123",
"role": "manager"
}
}{
"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}/members/{memberId}Remove Member
Remove a member from the team. Cannot remove the team owner.
Path Parameters
memberId string requiredMembership ID
Code Examples
curl -X DELETE "https://www.cstar.help/api/v1/teams/{teamId}/members/{memberId}" \
-H "Authorization: Bearer sk_live_your_key"Responses
{
"success": true,
"data": {
"deleted": true,
"id": "mem_abc123"
}
}{
"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}/members/../invitesList Invites
List pending team invites.
Code Examples
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/invites" \
-H "Authorization: Bearer sk_live_your_key"Responses
{
"success": true,
"data": [
{
"id": "inv_abc123",
"email": "new@team.com",
"role": "agent",
"status": "pending",
"createdAt": "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}/members/../invitesSend Invite
Send a team invitation email.
Request Body
email string requiredEmail to invite
role string Role to assign
Default: agent
Code Examples
curl -X POST "https://www.cstar.help/api/v1/teams/{teamId}/invites" \
-H "Authorization: Bearer sk_live_your_key" \
-H "Content-Type: application/json" \
-d '{"email":"new@team.com","role":"agent"}'Responses
{
"success": true,
"data": {
"id": "inv_abc123",
"email": "new@team.com",
"role": "agent",
"status": "pending"
}
}{
"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"
}
}