> ## Documentation Index
> Fetch the complete documentation index at: https://docs-ts.playservices.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Register Player

> Register a player for a tournament

Register a player for a tournament. Returns a JWT token for game access and the game URL to launch the tournament. The player must have sufficient balance for the entry fee.


## OpenAPI

````yaml POST /api/tournaments/{tournamentId}/players
openapi: 3.1.0
info:
  title: Tournament Platform API
  description: >-
    Comprehensive API for managing real-time multiplayer tournaments with Game
    Platform integration. Includes both external Casino Integration APIs and
    internal Game Platform APIs.
  version: 1.0.0
  license:
    name: MIT
  contact:
    name: Tournament Platform Support
    url: https://ts.playservices.tech/
    email: support@playservices.tech
servers:
  - url: https://ts.playservices.tech/api
    description: Production server
security:
  - OperatorAPIKey: []
  - InternalAPIKey: []
paths:
  /api/tournaments/{tournamentId}/players:
    post:
      tags:
        - Casino Integration - Players
      summary: Register player
      description: Register a player for a tournament
      parameters:
        - $ref: '#/components/parameters/TournamentId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PlayerRegistrationRequest'
      responses:
        '201':
          description: Player registered successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlayerRegistrationResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
      security:
        - OperatorAPIKey: []
components:
  parameters:
    TournamentId:
      name: tournamentId
      in: path
      required: true
      description: Unique tournament identifier
      schema:
        type: string
        example: '12345'
  schemas:
    PlayerRegistrationRequest:
      type: object
      required:
        - user_id
        - display_name
      properties:
        user_id:
          type: string
          example: USER_12345
        display_name:
          type: string
          example: TestPlayer
        entry_payment_details:
          type: object
          properties:
            payment_id:
              type: string
              example: PAY_67890
    PlayerRegistrationResponse:
      type: object
      properties:
        player_id:
          type: string
        internal_player_id:
          type: string
          example: TP_123_456_789
        tournament_id:
          type: string
        status:
          type: string
          example: registered
        crash-classic:
          type: object
          description: Game access keyed by game slug
          properties:
            jwt:
              type: string
            game_url:
              type: string
              example: https://games.casino.com/crash?jwt=eyJ0eXAi...
        message:
          type: string
    Error:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
        message:
          type: string
        details:
          type: object
  responses:
    BadRequest:
      description: Invalid request parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Conflict:
      description: Request conflicts with current state
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    OperatorAPIKey:
      type: http
      scheme: bearer
      description: >-
        Operator API key with role-based permissions (tournaments.read,
        players.write, etc.)
    InternalAPIKey:
      type: apiKey
      in: header
      name: X-Internal-Api-Key
      description: Internal API key for Game Platform integration

````