OpenMLBB SDK Docs

OpenMLBB Endpoint

SDK call mapping, request requirements, and Python example.

Every card documents the SDK call from OpenMLBB and mirrors API path/query/body requirements.

POST Send Verification Code

/openmlbb/user/auth/send-vc

Open Only This

API Path: /api/user/auth/send-vc

Send an in-game verification code to the player's account, valid for 5 mins. This endpoint is part of the authentication flow and is used to validate ownership of a game account.

Request body:

  • role_id: Player role identifier (Game ID).
  • zone_id: Server zone identifier (Server ID).

The response confirms whether the verification code was successfully dispatched:

  • code: Status code (0 indicates success).
  • data: Empty string (no payload returned).
  • msg: Message string (e.g., 'ok').

Useful for account authentication flows, linking user identity, and validating account ownership.

Python Example

from OpenMLBB import OpenMLBB

client = OpenMLBB()
response = client.user.send_vc(role_id=1234567890, zone_id=1234)
print(response)

Request Body Example

{
  "role_id": 1234567890,
  "zone_id": 1234
}