Web Playground

User Endpoint

Interactive request form for this API endpoint.

Each card below maps directly to an API endpoint. Query, path, and request body fields are generated from OpenAPI.

POST Send Verification Code

/web/user/auth/send-vc

Open Only This

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.

POST /api/user/auth/send-vc