Skip to main content

Authentication

User authentication endpoints.

Base URL: https://proxy.bettoredge.com

Login

POST players/v1/authenticate/login

Login with email/phone/username and password Uses HTTP Basic Authentication (base64 encoded email:password)

Authentication: Required - HTTP Basic Authentication

Include base64-encoded credentials in the Authorization header:

Authorization: Basic base64(username:password)

Example: Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=

Request Body

Type: AuthLoginRequest

Example Request
{
"attribute": "username",
"verification_session_id": "example"
}
Request Properties
  • attribute ("email" | "phone" | "username")
  • verification_session_id (optional) (string | undefined)

Response

Status: 200 OK

Body: AuthLoginResponse

Example Response
{
"result": "success",
"new_player": true,
"message": "example",
"player_id": "example",
"access_token": "example",
"refresh_token": "example",
"expire_datetime": null
}
Response Properties
  • result ("success" | "fail")
  • new_player (optional) (boolean | undefined)
  • message (string)
  • player_id (optional) (string | undefined)
  • access_token (optional) (string | undefined)
  • refresh_token (optional) (string | undefined)
  • expire_datetime (optional) (any)