Skip to main content
POST
/
players
/
login
Logs in a player
curl --request POST \
  --url https://togacha.com/players/login \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '
{
  "email": "player@example.com",
  "password": "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

Example:

"player@example.com"

password
string<password>
required

Player's password (minimum 8 characters)

Minimum string length: 8
Example:

"password123"

Response

Player successfully logged in

data
object