Skip to main content
POST
/
players
/
register
Register a new player
curl --request POST \
  --url https://togacha.com/players/register \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '
{
  "email": "[email protected]",
  "password": "password123",
  "password_confirmation": "password123"
}
'
{
  "data": {
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
  }
}

Authorizations

apikey
string
header
required

API key authentication for accessing platform resources.

To authenticate, include your app's API key in the 'apikey' header.

Each API key is associated with a specific app and organization. The API key determines which organization and app context your requests operate within.

Example: apikey: tgc_public_1234567890abcdef

Body

application/json
email
string<email>
required

Player's email address

password
string<password>
required

Player's password (minimum 8 characters)

Minimum string length: 8
Example:

"password123"

password_confirmation
string<password>
required

Password confirmation (must match password)

Example:

"password123"

Response

Player successfully registered

data
object