Players
Retrieve all players for the authenticated app
Authorizations
Responses
200
Players retrieved successfully
application/json
401
Unauthorized - invalid or missing API key
application/json
500
Internal server error
application/json
get
GET /api/v1/players HTTP/1.1
Host:
x-app-api-key: YOUR_API_KEY
Accept: */*
{
"players": [
{
"id": "text",
"displayName": "text",
"userId": "text",
"createdAt": "2025-10-09T18:06:11.330Z",
"updatedAt": "2025-10-09T18:06:11.330Z"
}
]
}
Create a new player for the authenticated app. Players with duplicate names are not allowed for the same app.
Authorizations
Body
userIdstring | nullableOptional
Optional user ID
displayNamestringRequired
Player display name
Responses
201
Player created successfully
application/json
400
Invalid request data
application/json
401
Unauthorized - invalid or missing API key
application/json
500
Internal server error
application/json
post
POST /api/v1/players HTTP/1.1
Host:
x-app-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 38
{
"userId": "text",
"displayName": "text"
}
{
"id": "text",
"displayName": "text",
"userId": "text",
"createdAt": "2025-10-09T18:06:11.330Z",
"updatedAt": "2025-10-09T18:06:11.330Z"
}
Retrieve a specific player by their ID
Authorizations
Path parameters
idstringRequired
Player ID
Responses
200
Player retrieved successfully
application/json
401
Unauthorized - invalid or missing API key
application/json
404
Player not found
application/json
500
Internal server error
application/json
get
GET /api/v1/players/{id} HTTP/1.1
Host:
x-app-api-key: YOUR_API_KEY
Accept: */*
{
"id": "text",
"displayName": "text",
"userId": "text",
"createdAt": "2025-10-09T18:06:11.330Z",
"updatedAt": "2025-10-09T18:06:11.330Z"
}