Account Init
This endpoint is used to create or initialize a new player account in the system before they can perform any transactions or play games.
API Integration Examples
Section titled “API Integration Examples”fetch('https://API-PLATFORM/account-init', {method: 'POST',headers: { 'Content-Type': 'application/json', 'Api-Id': 'YOUR_SECRET_TOKEN', 'Api-Key': 'YOUR_SECRET_TOKEN'},body: JSON.stringify({ user_id: '', nickname: '', currency: 'KRW'})})import axios from 'axios';
const options = {method: 'POST',url: 'https://API-PLATFORM/account-init',headers: { 'Content-Type': 'application/json', 'Api-Id': 'YOUR_SECRET_TOKEN', 'Api-Key': 'YOUR_SECRET_TOKEN'},data: {user_id: '', nickname: '', currency: 'KRW'}};
try {const { data } = await axios.request(options);console.log(data);} catch (error) {console.error(error);}Sample Request
Section titled “Sample Request”headersPOST /account-initContent-Type: application/jsonApi-Id: your-agent-idApi-Key: your-secret-keybody{ "user_id": "testuser", "nickname": "testusernickname", "currency": "USD",}Sample Response
Section titled “Sample Response”{ "code": 0,}