max_mock_init_data
Generate a correctly signed MAX mini-app initData string for backend tests, including the signing token, so you can validate your auth flow end to end.
Instructions
Produce a correctly signed MAX mini-app initData string (two-step HMAC with 'WebAppData') for backend tests, with the token used, so you can check your validator end to end.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "max_mock_init_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Answer language: 'en' English, 'ru' Russian. Pick the user's language; default ru (or XONTA_MAX_LANG) | |
| user_id | No | ||
| chat_type | No | Where the mini-app was opened | DIALOG |
| first_name | No | ||
| age_seconds | No | Make auth_date this many seconds old, to test expiry | |
| start_param | No | Value from ?startapp= | |
| test_bot_token | No | A TEST token to sign with. Omit to generate a random one. Never pass a production token to a hosted server |