LogIn API
Allow players to join cash tables and participate in tournaments !
Overveiw
This LogIn API allows operators to authenticate users in Pokerscirpt after they have successfully logged into their system. The API facilitates seamless user login integration.
Endpoint
POST http://admin.pokerurl.com/api/signin
Headers
Key
Value
Description
AuthKey
489j4erwginerwgirn
Client Key provided by TronPoker
Accept
application/json
Expected response format
Content-Type
application/json
Request body format
Request Body
{
"password": "123456",
"email": "[email protected]" // You can pass either email ID or username.
}
Success Response
Status Code:
200
Response Body:
{
"status": true,
"message": "Login Successfully",
"data": {
"Token": "wet8934ht8374htwufgnewiufn293jr239ir",
"playerId": "607c7db76a40702ba15cfb4a",
"email": "[email protected]",
"username": "username",
"firstname": "first",
"lastname": "last",
"avatar": "doraemon.png",
"chips": 100.00,
"hour_balance": "10:00",
"is_able": true,
"mobile": +19177649944,
"isCash": true,
"language": "en",
"country": "US",
"vipLevel": 2
}
}
Success Parameters
Parameter
Type
Description
status
boolean
Indicates if the request was successful (true).
message
string
Response message (e.g., "Login Successfully").
data
object
Contains user-specific details.
Token
string
Authentication token for session management.
playerId
string
Unique identifier for the player.
string
Registered email address of the player.
username
string
Player’s username.
firstname
string
Player’s first name.
lastname
string
Player’s last name.
avatar
string
Filename of the player’s avatar image.
chips
float
Current chip balance of the player.
hour_balance
string
Available playtime balance (formatted as HH:MM).
is_able
boolean
Indicates if the player is active (true or false).
mobile
integer
Player’s registered mobile number.
isCash
boolean
Specifies if the player is using cash mode (true or false).
language
string
Preferred language of the player (e.g., "en").
country
string
Country code of the player (e.g., "US").
vipLevel
integer
Player’s VIP level.
Error Responses
If the request fails, an error response is returned with the corresponding status code:
401 Unauthorized
401 Unauthorized
{
"status": false,
"message": "Invalid Authorization Token"
}
404 Not Found
404 Not Found
{
"status": false,
"message": "User Not Found"
}
500 Internal Server Error
500 Internal Server Error
{
"status": false,
"message": "Something Went Wrong"
}
Additional Notes
This API should be called only after a user successfully logs into your system.
Ensure that the
AuthKey
provided by Pokerscript is included in the request headers.Handle errors properly to provide a smooth user experience.
Last updated
Was this helpful?