Authenticate a player (client API)
nakama_authenticateAuthenticate a player using device, custom, or email credentials to obtain a session token for subsequent API calls.
Instructions
Establish a player session for the client API (:7350). Required before calling other client/player endpoints. Supports device, custom, or email auth. The session token is held in memory for subsequent calls.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"method": "<method>"
},
"name": "nakama_authenticate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | Authentication method. | |
| id | No | Device or custom ID (for method device/custom). | |
| No | Email (for method email). | ||
| password | No | Password (for method email). | |
| username | No | Optional username to set when creating the account. | |
| create | No | Create the account if it does not exist (default true on Nakama). |