Game

The cStar gamification system includes player stats, boss battles, leaderboards, achievements, quests, puzzles, social features, cosmetics, seasons, and skill trees. Use a secret key on your server. Player and game operations require the game_participation permission. With Gamification turned off for the team, every game endpoint but high-fives (social, they pay nothing) answers 403 feature_disabled with feature bossBattles and an enable_url.

The Game object

level integer

Player level (resets each season)

xp integer

Current XP within the season

gold integer

Gold balance (earned from tickets and bosses)

skills object

Skill tree allocations (4 skills, max 5 each)

Endpoints

GET /api/v1/teams/{teamId}/game/player

Get Player Stats

Try it

Get a player's game stats including level, XP, gold, skills, streaks, and season info.

Query Parameters

userId string

A member of this team (UUID). Defaults to the API key's user.

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/player?userId=550e8400-e29b-41d4-a716-446655440001" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Player stats
json
{
  "success": true,
  "data": {
    "object": "player_stats",
    "memberId": "550e8400-e29b-41d4-a716-446655440001",
    "name": "Jane",
    "avatarUrl": null,
    "season": {
      "id": "2026-Q2",
      "name": "Season 3. 2026",
      "endsAt": "2026-06-30T23:59:59Z"
    },
    "level": 12,
    "xp": 4850,
    "xpToNextLevel": 1000,
    "xpInCurrentLevel": 850,
    "xpProgress": 0.85,
    "gold": 340,
    "prestigeLevel": 1,
    "prestigeBonus": 0.01,
    "streaks": {
      "current": 7,
      "max": 14
    },
    "stats": {
      "ticketsClosed": 156,
      "bossesDefeated": 8,
      "finalBlows": 2,
      "achievementsUnlocked": 24,
      "questsCompleted": 89
    },
    "skills": {
      "quick_learner": {
        "level": 3,
        "maxLevel": 5,
        "effect": "+15% XP"
      }
    },
    "availableSkillPoints": 2,
    "totalSkillPoints": 8,
    "cosmetics": {
      "avatarFrame": "gold_ring",
      "victoryMessage": "GG!"
    }
  }
}

400 userId is not a UUID (parameter_invalid)
json
{
  "success": false,
  "error": {
    "type": "invalid_request_error",
    "code": "parameter_invalid",
    "message": "'userId' must be a UUID",
    "param": "userId",
    "doc_url": "https://www.cstar.help/developers/errors#parameter_invalid",
    "request_id": "req_abc123"
  }
}

404 No member of this team has this userId (resource_not_found)
json
{
  "success": false,
  "error": {
    "type": "not_found_error",
    "code": "resource_not_found",
    "message": "No member of this team has that id",
    "param": "userId",
    "doc_url": "https://www.cstar.help/developers/errors#resource_not_found",
    "request_id": "req_abc123"
  }
}

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}/game/player/{memberId}

Get Player by Member ID

Get game stats for a specific team member. memberId is the player's user id: the memberId every game response returns, and userId on GET /members (not the member's own id).

Path Parameters

memberId string required

The player's user id (memberId in game responses, userId on GET /members)

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/player/550e8400-e29b-41d4-a716-446655440001" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Player stats (same shape as GET /player)
json
{
  "success": true,
  "data": {
    "object": "player_stats"
  }
}

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}/game/boss

Get Boss State

Try it

Get the current boss battle state including health, phase, abilities, participants, and battle duration.

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/boss" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Boss state
json
{
  "success": true,
  "data": {
    "object": "boss_state",
    "active": true,
    "boss": {
      "id": "boss_abc",
      "name": "The Backlog Beast",
      "level": 47,
      "difficulty": "hard",
      "maxHealth": 3500,
      "currentHealth": 2180,
      "healthPercent": 0.623,
      "phase": 2,
      "abilities": {
        "shield": null,
        "enrage": {
          "active": true
        },
        "heal": {
          "totalHealed": 175
        }
      },
      "rewards": {
        "xpMultiplier": 2.5,
        "goldMultiplier": 2.5
      },
      "participants": [
        {
          "memberId": "550e8400-e29b-41d4-a716-446655440001",
          "name": "Jane",
          "damage": 780,
          "hits": 12,
          "lastHitAt": "2026-04-06T12:00:00Z"
        }
      ],
      "totalDamage": 1320,
      "spawnedAt": "2026-04-06T10:00:00Z",
      "battleDuration": 7200
    }
  }
}

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}/game/boss/active

Is Boss Active

Try it

Lightweight check if a boss battle is currently active.

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/boss/active" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Active status
json
{
  "success": true,
  "data": {
    "object": "boss_active",
    "active": true
  }
}

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}/game/boss/damage

Deal Boss Damage

Try it

Hit the current boss with a closed customer ticket (widget, email or API) that a teammate replied to publicly; one nobody answered is refused with 400. Each ticket hits once; a ticket whose close already paid in the app hit the boss then and is refused with 409. Damage follows the ticket priority, server-side. Clients cannot specify damage values. Boss battles run on live tickets, so a test key is refused with 400.

Request Body

ticketId string required

A closed customer ticket: its tkt_ id (as the API returns it) or its uuid. Tickets a team member created and test data never hit a boss.

userId string

The member credited with the hit. Defaults to the API key's user. If sent, it must be that user (403 otherwise). The battle log shows the member's own name.

Code Examples

bash
curl -X POST "https://www.cstar.help/api/v1/teams/{teamId}/game/boss/damage" \
  -H "Authorization: Bearer sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{"ticketId":"tkt_Gds1y40Pmhab"}'

Responses

200 Damage result
json
{
  "success": true,
  "data": {
    "object": "boss_damage",
    "damage": 127,
    "currentHealth": 2053,
    "healthPercent": 0.587,
    "previousHealthPercent": 0.623,
    "isDefeated": false,
    "isKillingBlow": false,
    "shieldBlocked": false,
    "shieldBroken": false,
    "enrageTriggered": false,
    "activeAbilities": [
      "enrage"
    ]
  }
}

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"
  }
}

POST /api/v1/teams/{teamId}/game/boss/spawn

Spawn Boss

Try it

Summon a boss when enough customer tickets (widget, email or API) arrived in the last 5 minutes: 5 or more for easy, 10 for medium, 20 for hard. Fails if a boss is already up or there are too few customer tickets. Difficulty follows the count. Boss battles run on live tickets, so a test key is refused with 400.

Code Examples

bash
curl -X POST "https://www.cstar.help/api/v1/teams/{teamId}/game/boss/spawn" \
  -H "Authorization: Bearer sk_live_your_key" \
  -H "Content-Type: application/json"

Responses

201 Boss spawned
json
{
  "success": true,
  "data": {
    "object": "boss_state",
    "active": true,
    "boss": {
      "name": "Queue Crusher",
      "difficulty": "medium",
      "maxHealth": 1500,
      "currentHealth": 1500,
      "healthPercent": 1
    }
  }
}

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"
  }
}

GET /api/v1/teams/{teamId}/game/boss/defeats

Boss Defeat History

Get the history of defeated bosses with participants and rewards.

Query Parameters

page integer

Page number

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}/game/boss/defeats?pageSize=5" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Defeat history
json
{
  "success": true,
  "data": {
    "object": "list",
    "data": [
      {
        "id": "def_abc",
        "bossName": "The Backlog Beast",
        "bossLevel": 47,
        "difficulty": "hard",
        "totalDamage": 3500,
        "finalBlow": {
          "memberId": "550e8400-e29b-41d4-a716-446655440001",
          "name": "Jane",
          "damage": 89
        },
        "defeatedAt": "2026-04-05T18:00: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"
  }
}

GET /api/v1/teams/{teamId}/game/boss/defeats/{defeatId}

Get Single Defeat

Get full details for a specific boss defeat.

Path Parameters

defeatId string required

Boss defeat record ID

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/boss/defeats/def_abc" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Defeat details
json
{
  "success": true,
  "data": {
    "object": "boss_defeat",
    "bossName": "The Backlog Beast",
    "participants": []
  }
}

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}/game/leaderboard

Get Leaderboard

Try it

Get team leaderboard rankings for a given period. Agents who switched the game off (Boring Mode) are not listed, and totalParticipants counts only listed agents.

Query Parameters

period string

Leaderboard period

Default: weekly

limit integer

Max results (max 50)

Default: 20

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/leaderboard?period=weekly" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Leaderboard
json
{
  "success": true,
  "data": {
    "object": "leaderboard",
    "period": "weekly",
    "entries": [
      {
        "rank": 1,
        "memberId": "550e8400-e29b-41d4-a716-446655440001",
        "name": "Jane",
        "score": 2450,
        "ticketsClosed": 34,
        "bossDamage": 890,
        "currentStreak": 12
      }
    ],
    "totalParticipants": 8,
    "periodStartedAt": "2026-04-01T00:00:00Z",
    "periodEndsAt": "2026-04-08T00:00: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"
  }
}

GET /api/v1/teams/{teamId}/game/leaderboard/me

Get My Rank

Try it

Get a user's rank on the leaderboard. Agents who switched the game off (Boring Mode) are not ranked: their rank is null, and they don't count toward anyone else's rank or totalParticipants.

Query Parameters

userId string required

User ID

period string

Period

Default: weekly

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/leaderboard/me?userId=550e8400-e29b-41d4-a716-446655440001" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 User rank
json
{
  "success": true,
  "data": {
    "object": "leaderboard_entry",
    "rank": 3,
    "totalParticipants": 8,
    "score": 1890
  }
}

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}/game/achievements

List Achievements

List all achievements with rarity, progress, and summary stats.

Query Parameters

userId string required

User ID

category string

Filter by category (volume, boss, streak, etc.)

unlockedOnly boolean

Only show unlocked achievements

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/achievements?userId=550e8400-e29b-41d4-a716-446655440001&category=boss" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Achievements with progress and summary
json
{
  "success": true,
  "data": {
    "object": "achievement_list",
    "data": [
      {
        "id": "first_blood",
        "name": "First Blood",
        "description": "Close your first ticket",
        "category": "volume",
        "rarity": "common",
        "xpReward": 25,
        "hidden": false,
        "unlocked": true,
        "progress": {
          "current": 156,
          "target": 1
        }
      }
    ],
    "summary": {
      "total": 29,
      "unlocked": 12,
      "totalXpEarned": 1400,
      "totalGoldEarned": 700,
      "byCategory": {
        "volume": {
          "total": 7,
          "unlocked": 5
        }
      },
      "byRarity": {
        "common": {
          "total": 5,
          "unlocked": 5
        }
      }
    }
  }
}

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}/game/achievements/{achievementId}

Get Single Achievement

Get details and progress for a specific achievement.

Path Parameters

achievementId string required

Achievement identifier

Query Parameters

userId string required

User ID

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/achievements/centurion?userId=550e8400-e29b-41d4-a716-446655440001" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Achievement detail
json
{
  "success": true,
  "data": {
    "id": "centurion",
    "object": "achievement",
    "name": "Centurion",
    "unlocked": true,
    "progress": {
      "current": 156,
      "target": 100
    }
  }
}

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}/game/achievements/recent

Recent Achievements

Try it

Get recently unlocked achievements across the team.

Query Parameters

limit integer

Max results (max 50)

Default: 10

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/achievements/recent" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Recent unlocks
json
{
  "success": true,
  "data": {
    "object": "list",
    "data": [
      {
        "id": "centurion",
        "name": "Centurion",
        "rarity": "rare",
        "unlockedBy": {
          "memberId": "550e8400-e29b-41d4-a716-446655440001",
          "name": "Jane"
        },
        "unlockedAt": "2026-04-06T12:00: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"
  }
}

GET /api/v1/teams/{teamId}/game/quests/today

Today's Quests

Get today's daily quests with progress. Quests reset at midnight UTC.

Query Parameters

userId string

Whose quests to load. Defaults to the API key's creator.

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/quests/today?userId=550e8400-e29b-41d4-a716-446655440001" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Daily quests
json
{
  "success": true,
  "data": {
    "object": "quest_list",
    "quests": [
      {
        "questId": "close_5_tickets",
        "name": "Ticket Tackler",
        "description": "Close 5 tickets today",
        "difficulty": "easy",
        "progress": 3,
        "target": 5,
        "completed": false,
        "xpReward": 50,
        "goldReward": 0
      }
    ],
    "completedToday": 1,
    "totalQuests": 4,
    "allComplete": false,
    "resetsAt": "2026-04-07T00:00: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"
  }
}

GET /api/v1/teams/{teamId}/game/quests/history

Quest History

Get completed quests grouped by game day (UTC), newest first. Rewards are what each quest paid.

Query Parameters

userId string

Whose quests to load. Defaults to the API key's creator.

limit integer

Most completed quests to return (max 90)

Default: 30

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/quests/history?userId=550e8400-e29b-41d4-a716-446655440001" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Quest history
json
{
  "success": true,
  "data": {
    "object": "quest_history",
    "history": [
      {
        "date": "2026-04-05",
        "quests": [
          {
            "questId": "close_5_tickets",
            "name": "Ticket Tackler",
            "difficulty": "easy",
            "xpReward": 50,
            "goldReward": 0
          }
        ],
        "completedCount": 1
      }
    ],
    "totalCompleted": 1
  }
}

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}/game/skills

Get Skill Tree

Get the skill tree with current allocations and available points. 4 skills: Quick Learner (+XP), Treasure Hunter (+Gold), Boss Slayer (+Damage), Social Butterfly (+1-Ups).

Query Parameters

userId string required

User ID

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/skills?userId=550e8400-e29b-41d4-a716-446655440001" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Skill tree
json
{
  "success": true,
  "data": {
    "object": "skill_tree",
    "seasonId": "2026-Q2",
    "skills": [
      {
        "id": "quick_learner",
        "name": "Quick Learner",
        "description": "+5% ticket XP per level",
        "maxLevel": 5,
        "bonusPerLevel": 0.05,
        "currentLevel": 3,
        "isMaxed": false
      }
    ],
    "totalAllocated": 6,
    "availablePoints": 2,
    "playerLevel": 12
  }
}

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}/game/skills/allocate

Allocate Skill Point

Try it

Spend an available skill point. Earn 1 point every 5 levels. A test key is refused with 400 (game actions run on live data).

Request Body

userId string required

User ID

skillId string required

Skill ID

Code Examples

bash
curl -X POST "https://www.cstar.help/api/v1/teams/{teamId}/game/skills/allocate" \
  -H "Authorization: Bearer sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{"userId":"550e8400-e29b-41d4-a716-446655440001","skillId":"quick_learner"}'

Responses

200 Allocation result
json
{
  "success": true,
  "data": {
    "object": "skill_allocation",
    "skillId": "quick_learner",
    "newLevel": 4,
    "availablePoints": 1
  }
}

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"
  }
}

POST /api/v1/teams/{teamId}/game/skills/reset

Reset Skills

Try it

Reset all skill allocations, returning points to the available pool. A test key is refused with 400 (game actions run on live data).

Request Body

userId string required

User ID

Code Examples

bash
curl -X POST "https://www.cstar.help/api/v1/teams/{teamId}/game/skills/reset" \
  -H "Authorization: Bearer sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{"userId":"550e8400-e29b-41d4-a716-446655440001"}'

Responses

200 Skills reset
json
{
  "success": true,
  "data": {
    "object": "skill_reset",
    "skills": {
      "quick_learner": 0,
      "treasure_hunter": 0,
      "boss_slayer": 0,
      "social_butterfly": 0
    },
    "availablePoints": 8
  }
}

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"
  }
}

GET /api/v1/teams/{teamId}/game/seasons/current

Get Current Season

Get the current active season with badge thresholds and days remaining.

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/seasons/current" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Current season
json
{
  "success": true,
  "data": {
    "object": "season",
    "id": "2026-Q2",
    "name": "Season 3. 2026",
    "isActive": true,
    "startsAt": "2026-04-01T00:00:00Z",
    "endsAt": "2026-06-30T23:59:59Z",
    "daysRemaining": 85,
    "badges": [
      {
        "level": 10,
        "name": "Participant",
        "color": "#8B4513"
      },
      {
        "level": 25,
        "name": "Bronze",
        "color": "#CD7F32"
      },
      {
        "level": 50,
        "name": "Silver",
        "color": "#C0C0C0"
      },
      {
        "level": 75,
        "name": "Gold",
        "color": "#FFD700"
      },
      {
        "level": 100,
        "name": "Diamond",
        "color": "#B9F2FF"
      }
    ],
    "teamParticipants": 8
  }
}

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}/game/seasons

List Seasons

Try it

Get all seasons (current and past).

Query Parameters

limit integer

Max results (max 20)

Default: 10

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/seasons" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Season list
json
{
  "success": true,
  "data": [
    {
      "object": "season",
      "id": "2026-Q1",
      "isActive": false,
      "daysRemaining": 0
    }
  ]
}

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}/game/seasons/{seasonId}/stats

Season Stats

Get a user's stats for a specific season (current or past).

Path Parameters

seasonId string required

Season identifier (e.g. 2026-Q1)

Query Parameters

userId string required

User ID

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/seasons/2026-Q1/stats?userId=550e8400-e29b-41d4-a716-446655440001" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Season stats
json
{
  "success": true,
  "data": {
    "object": "season_stats",
    "seasonId": "2026-Q1",
    "level": 18,
    "xp": 18000,
    "ticketsClosed": 342
  }
}

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}/game/one-ups

List One-Ups

Try it

Get recent one-ups on the team.

Query Parameters

limit integer

Max results (max 50)

Default: 20

userId string

Filter by sender or recipient

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/one-ups" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 One-ups list
json
{
  "success": true,
  "data": {
    "object": "list",
    "data": [
      {
        "id": "1up_abc",
        "object": "one_up",
        "sender": {
          "id": "550e8400-e29b-41d4-a716-446655440001",
          "name": "Jane"
        },
        "recipient": {
          "id": "550e8400-e29b-41d4-a716-446655440002",
          "name": "Bob"
        },
        "message": "Great work!",
        "goldAmount": 0,
        "wasFree": true,
        "createdAt": "2026-04-06T12:00: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"
  }
}

POST /api/v1/teams/{teamId}/game/one-ups

Send One-Up

Try it

Send a one-up to a teammate. 3 free per day (+ social_butterfly skill bonus). Gold one-ups deduct from sender balance. Max 140 char message, max 100 gold. A test key is refused with 400 (game actions run on live data).

Request Body

senderId string

Always the API key's owner. Leave it out; any other value is a 400.

recipientId uuid required

Recipient user ID (a teammate)

message string

Kudos message (max 140 chars)

goldAmount integer

Gold to gift (0-100)

Default: 0

Code Examples

bash
curl -X POST "https://www.cstar.help/api/v1/teams/{teamId}/game/one-ups" \
  -H "Authorization: Bearer sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{"recipientId":"8c1f2a4e-5b6d-4e7f-9a0b-1c2d3e4f5a6b","message":"Great work!"}'

Responses

201 One-up sent
json
{
  "success": true,
  "data": {
    "object": "one_up",
    "id": "1up_abc",
    "wasFree": true,
    "freeRemaining": 2,
    "sender": {
      "id": "550e8400-e29b-41d4-a716-446655440001",
      "name": "Jane"
    },
    "recipient": {
      "id": "550e8400-e29b-41d4-a716-446655440002",
      "name": "Bob"
    },
    "message": "Great work!",
    "goldAmount": 0,
    "recipientXpAwarded": 10,
    "recipientGoldAwarded": 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"
  }
}

GET /api/v1/teams/{teamId}/game/one-ups/remaining

One-Ups Remaining

Check how many free one-ups remain today.

Query Parameters

userId string required

User ID

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/one-ups/remaining?userId=550e8400-e29b-41d4-a716-446655440001" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Remaining count
json
{
  "success": true,
  "data": {
    "object": "one_up_remaining",
    "freeOneUpsRemaining": 2,
    "maxFreeOneUps": 4,
    "sentToday": 1
  }
}

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}/game/high-fives

List High Fives

Try it

Get recent high fives sent to or from this team.

Query Parameters

limit integer

Max results (max 50)

Default: 20

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/high-fives" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 High fives list
json
{
  "success": true,
  "data": {
    "object": "list",
    "data": [
      {
        "id": "hf_abc",
        "object": "high_five",
        "senderTeam": {
          "id": "550e8400-e29b-41d4-a716-446655440000",
          "name": "Support Heroes"
        },
        "recipientTeam": {
          "id": "550e8400-e29b-41d4-a716-446655440003",
          "name": "Bug Busters"
        },
        "message": "Crushing it!",
        "createdAt": "2026-04-06T12:00: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"
  }
}

POST /api/v1/teams/{teamId}/game/high-fives

Send High Five

Try it

Send a high five to another team. Limited to 1 per team per day. Max 80 char message. Sender and team names come from cStar, not the request. A test key is refused with 400 (game actions run on live data).

Request Body

recipientTeamId string required

Target team ID

senderUserId string

Defaults to the API key's user. If sent, it must be that user (403 otherwise).

message string

Message (max 80 chars)

Code Examples

bash
curl -X POST "https://www.cstar.help/api/v1/teams/{teamId}/game/high-fives" \
  -H "Authorization: Bearer sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{"recipientTeamId":"550e8400-e29b-41d4-a716-446655440003","message":"Amazing work!"}'

Responses

201 High five sent
json
{
  "success": true,
  "data": {
    "id": "hf_abc",
    "object": "high_five",
    "senderTeam": {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "name": "Support Heroes"
    },
    "recipientTeam": {
      "id": "550e8400-e29b-41d4-a716-446655440003",
      "name": "Bug Busters"
    }
  }
}

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"
  }
}

GET /api/v1/teams/{teamId}/game/high-fives/can-send/{recipientTeamId}

Can Send High Five

Check if you can send a high five to a specific team today.

Path Parameters

recipientTeamId string required

Team ID of the recipient

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/high-fives/can-send/550e8400-e29b-41d4-a716-446655440003" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Eligibility
json
{
  "success": true,
  "data": {
    "canSend": true,
    "highFivesRemaining": 1
  }
}

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}/game/cosmetics

List Cosmetics

Try it

Get all cosmetic items with unlock status.

Query Parameters

userId string required

User ID

type string

Filter by type

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/cosmetics?userId=550e8400-e29b-41d4-a716-446655440001" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Cosmetics list
json
{
  "success": true,
  "data": [
    {
      "id": "gold_ring",
      "type": "frame",
      "name": "Gold Ring",
      "unlocked": true,
      "equipped": true
    }
  ]
}

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}/game/cosmetics/preferences

Get Cosmetic Preferences

Get the user's currently equipped cosmetics.

Query Parameters

userId string required

User ID

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/cosmetics/preferences?userId=550e8400-e29b-41d4-a716-446655440001" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Preferences
json
{
  "success": true,
  "data": {
    "object": "cosmetic_preferences",
    "avatarFrame": "gold_ring",
    "victoryMessage": "GG!"
  }
}

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"
  }
}

PATCH /api/v1/teams/{teamId}/game/cosmetics/preferences

Update Cosmetic Preferences

Equip a cosmetic. Can only equip unlocked items. Victory message max 200 chars. A test key is refused with 400 (game actions run on live data).

Request Body

userId string required

User ID

avatarFrame string

Frame ID to equip

victoryMessage string

Victory message (max 200 chars)

Code Examples

bash
curl -X PATCH "https://www.cstar.help/api/v1/teams/{teamId}/game/cosmetics/preferences" \
  -H "Authorization: Bearer sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{"userId":"550e8400-e29b-41d4-a716-446655440001","avatarFrame":"fire_frame"}'

Responses

200 Updated preferences
json
{
  "success": true,
  "data": {
    "object": "cosmetic_preferences",
    "avatarFrame": "fire_frame",
    "victoryMessage": "GG!"
  }
}

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"
  }
}

GET /api/v1/teams/{teamId}/game/puzzles/today

Today's Puzzle

Try it

Get today's daily warm-up puzzle (today is the UTC game day).

Query Parameters

userId string

A member of this team (UUID): includes that member's completion

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/puzzles/today" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Daily puzzle
json
{
  "success": true,
  "data": {
    "object": "daily_puzzle",
    "available": true,
    "puzzle": {
      "id": "3f6c2a1e-8b4d-4c7a-9e2f-5a1b7c3d9e04",
      "date": "2026-04-06",
      "type": "categories",
      "data": {}
    },
    "completion": null
  }
}

400 userId is not a UUID (parameter_invalid)
json
{
  "success": false,
  "error": {
    "type": "invalid_request_error",
    "code": "parameter_invalid",
    "message": "'userId' must be a UUID",
    "param": "userId",
    "doc_url": "https://www.cstar.help/developers/errors#parameter_invalid",
    "request_id": "req_abc123"
  }
}

404 No member of this team has this userId (resource_not_found)
json
{
  "success": false,
  "error": {
    "type": "not_found_error",
    "code": "resource_not_found",
    "message": "No member of this team has that id",
    "param": "userId",
    "doc_url": "https://www.cstar.help/developers/errors#resource_not_found",
    "request_id": "req_abc123"
  }
}

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}/game/puzzles/guess

Check a Guess

Check one guess on today's puzzle. The server counts any mistake, keeps the game's progress and records the completion when the game ends. Test keys are refused (400): game actions run on live data.

Request Body

userId string

Defaults to the API key's user. If sent, it must be that user (403 otherwise).

puzzleId string required

The puzzle UUID from GET /puzzles/today

guess object required

By puzzle type. categories: { items: [4 strings] }. wordladder: { word }. sequence: { value: integer }. anagram: { word } or { skip: true }. digits: { expression }.

Code Examples

bash
curl -X POST "https://www.cstar.help/api/v1/teams/{teamId}/game/puzzles/guess" \
  -H "Authorization: Bearer sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{"puzzleId":"3f6c2a1e-8b4d-4c7a-9e2f-5a1b7c3d9e04","guess":{"word":"CORD"}}'

Responses

200 The guess was checked
json
{
  "success": true,
  "data": {
    "object": "puzzle_guess",
    "correct": true,
    "reply": {
      "message": "Good!"
    },
    "mistakes": 0,
    "maxMistakes": 3,
    "state": {
      "guesses": [
        "CORD"
      ]
    },
    "finished": false,
    "isWon": false,
    "completion": null,
    "solution": null
  }
}

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"
  }
}

POST /api/v1/teams/{teamId}/game/puzzles/complete

Complete Puzzle

Record a loss on today's puzzle (giving up, a timer running out). A win comes from POST /puzzles/guess, which checks each guess, and sending isWon: true here answers 400 unless the server already saw the win. Yesterday's puzzle is still taken for two hours after 00:00 UTC. Test keys are refused (400): game actions run on live data.

Request Body

userId string

Defaults to the API key's user. If sent, it must be that user (403 otherwise).

puzzleId string required

The puzzle UUID from GET /puzzles/today

timeSeconds integer required

Whole seconds the puzzle took, 0 or more

mistakes integer

Number of mistakes, 0 or more (stored at most at the game's limit)

Default: 0

isWon boolean required

false for a loss (no XP, not ranked). true answers 400 unless POST /puzzles/guess already saw the win. Required.

Code Examples

bash
curl -X POST "https://www.cstar.help/api/v1/teams/{teamId}/game/puzzles/complete" \
  -H "Authorization: Bearer sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{"puzzleId":"3f6c2a1e-8b4d-4c7a-9e2f-5a1b7c3d9e04","timeSeconds":42,"mistakes":1,"isWon":true}'

Responses

201 Completion recorded
json
{
  "success": true,
  "data": {
    "object": "puzzle_completion",
    "id": "9b2f0c4e-1d3a-4e8b-a6f7-2c5d8e1f3a90",
    "puzzleId": "3f6c2a1e-8b4d-4c7a-9e2f-5a1b7c3d9e04",
    "timeSeconds": 42,
    "mistakes": 1,
    "score": 72,
    "xpEarned": 185,
    "isWon": true,
    "streak": {
      "current": 6,
      "longest": 12,
      "totalCompleted": 45
    }
  }
}

400 puzzleId or isWon is missing (parameter_missing), puzzleId is not a UUID or not today's puzzle, timeSeconds or mistakes is not a whole number 0 or more, isWon is not a boolean (parameter_invalid, param names it), or the user already completed this puzzle
json
{
  "success": false,
  "error": {
    "type": "invalid_request_error",
    "code": "parameter_invalid",
    "message": "'timeSeconds' must be a whole number of seconds, 0 or more",
    "param": "timeSeconds",
    "doc_url": "https://www.cstar.help/developers/errors#parameter_invalid",
    "request_id": "req_abc123"
  }
}

404 No puzzle has this id (param puzzleId)
json
{
  "success": false,
  "error": {
    "type": "not_found_error",
    "code": "resource_not_found",
    "message": "Puzzle not found",
    "param": "puzzleId",
    "doc_url": "https://www.cstar.help/developers/errors#resource_not_found",
    "request_id": "req_abc123"
  }
}

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"
  }
}

GET /api/v1/teams/{teamId}/game/puzzles/leaderboard

Puzzle Leaderboard

Try it

Get puzzle scores for a specific puzzle or compare player streaks.

Query Parameters

type string

Leaderboard type

Default: streaks

puzzleId string

Required when type=scores

limit integer

Max results (max 50)

Default: 20

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/puzzles/leaderboard?type=streaks" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Puzzle leaderboard
json
{
  "success": true,
  "data": {
    "object": "puzzle_leaderboard",
    "type": "streaks",
    "entries": [
      {
        "rank": 1,
        "userId": "550e8400-e29b-41d4-a716-446655440001",
        "currentStreak": 12,
        "longestStreak": 20
      }
    ]
  }
}

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}/game/puzzles/streak

Puzzle Streak

Try it

Get a user's puzzle streak stats.

Query Parameters

userId string required

User ID

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/puzzles/streak?userId=550e8400-e29b-41d4-a716-446655440001" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Streak stats
json
{
  "success": true,
  "data": {
    "object": "puzzle_streak",
    "currentStreak": 5,
    "longestStreak": 12,
    "totalCompleted": 45
  }
}

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}/game/activity

Team Activity Feed

Try it

Get the team-wide game activity feed. Supports cursor-based pagination.

Query Parameters

limit integer

Max results (max 100)

Default: 50

before string

Activity ID to use as a pagination cursor

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/activity?limit=20" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Activity feed
json
{
  "success": true,
  "data": {
    "object": "list",
    "data": [
      {
        "id": "act_abc",
        "action": "boss_defeated",
        "actor": {
          "id": "550e8400-e29b-41d4-a716-446655440001",
          "name": "Jane"
        },
        "icon": "skull",
        "metadata": {
          "bossName": "The Backlog Beast"
        },
        "createdAt": "2026-04-06T12:00:00Z"
      }
    ],
    "cursor": "act_abc"
  }
}

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}/game/activity/member/{memberId}

Member Activity

Get activity feed for a specific team member. memberId is the player's user id: the memberId every game response returns, and userId on GET /members.

Path Parameters

memberId string required

The player's user id (memberId in game responses, userId on GET /members)

Query Parameters

limit integer

Max results (max 100)

Default: 20

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/activity/member/550e8400-e29b-41d4-a716-446655440001" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Member activity
json
{
  "success": true,
  "data": {
    "object": "list",
    "data": []
  }
}

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}/game/config

Game Config

Try it

Get game balance constants (XP per level, boss difficulties, reward tables, etc). Read-only, no database calls. Requires a secret key; publishable keys get publishable_key_forbidden.

Code Examples

bash
curl -X GET "https://www.cstar.help/api/v1/teams/{teamId}/game/config" \
  -H "Authorization: Bearer sk_live_your_key"

Responses

200 Game config
json
{
  "success": true,
  "data": {
    "object": "game_config",
    "rewards": {
      "ticketRewards": {
        "low": {
          "xp": 10,
          "gold": 5
        },
        "normal": {
          "xp": 25,
          "gold": 10
        },
        "high": {
          "xp": 50,
          "gold": 20
        },
        "critical": {
          "xp": 75,
          "gold": 30
        }
      }
    },
    "leveling": {
      "xpPerLevel": 1000,
      "prestigeThreshold": 25,
      "prestigeBonus": 0.01
    },
    "social": {
      "freeOneUpsPerDay": 3,
      "maxGoldGift": 100,
      "highFivesPerTeamPerDay": 1
    },
    "scoring": {
      "phi": 1.618,
      "priorityMultipliers": {
        "critical": 4.236,
        "high": 2.618,
        "normal": 1.618,
        "low": 1
      }
    }
  }
}

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"
  }
}