Sign in with an in-game code
Send yourself a code in the game, sign in and keep the token safe.
1 Find your numbers
In the game, open your profile. Your Role ID is the long number under your name, and the Zone ID is the number in brackets beside it.
2 Sign in on the website
Open any docs page and select Sign In.
- Role ID. Your player number.
- Zone ID. Your server number.
- Send VC. Sends a verification code to your in-game mail. It lasts 5 minutes.
- Code. Type the code from the mail, then select Sign In.
3 Or sign in from code
Ask for a code, then exchange it for a token (data.jwt).
curl -X POST "https://arena.fastapicloud.dev/api/user/auth/send-vc" \
-H "Content-Type: application/json" \
-d '{"role_id": 123456789, "zone_id": 1234}'
curl -X POST "https://arena.fastapicloud.dev/api/user/auth/login" \
-H "Content-Type: application/json" \
-d '{"role_id": 123456789, "zone_id": 1234, "vc": 1234}'
4 Use the token
Send it in the Authorization header.
curl "https://arena.fastapicloud.dev/api/user/info" -H "Authorization: Bearer YOUR_TOKEN"
Treat the token like a password. Do not put it in a web page, a repository or a screenshot. Call logout when you are done.