Passport for Mini Apps
Passport for Mini Apps is a free sign in and bot check for any Telegram Mini App. Your app sends the launch data Telegram gives it, sicto.si checks Telegram's own signature, and the answer is the SI Passport linked to that Telegram account: its number, handle, Passport Score, holding tier and stamps, exactly as its public profile shows them. A player with no Passport gets a link into SI Hub, where a Guest Passport takes two taps. No app ever sends us its bot token.
Add it in minutes
Get a free app key
A verified team registers its Mini App: a name, the bot's username and the bot's id. Never the token.
Add the script
Load Telegram's script, then si-tma.js, and call SIPassportTMA.check with your key when the app opens.
Check again from your server
Before you hand out points or a place on a board, send the same launch data from your own server and read the answer.
Copy, paste, check
The script
<script src="https://telegram.org/js/telegram-web-app.js"></script>
<script src="https://sicto.si/assets/js/si-tma.js"></script>
<script>
SIPassportTMA.check({ key: 'sitma_your_app_key' }).then(function (r) {
if (r.found && r.passport) {
// r.passport.number, r.passport.handle, r.passport.score, r.passport.tier, r.passport.stamps
} else if (r.ok && !r.found) {
SIPassportTMA.make(r); // opens SI Hub, where a Guest Passport takes two taps
}
});
</script>The request
POST https://sicto.si/api/tma.php?a=check
Content-Type: application/json
{ "key": "sitma_your_app_key", "init_data": "<Telegram.WebApp.initData, as it is>" }The answer (example values)
{ "ok": true, "found": true, "shared": true,
"passport": { "number": 1234, "handle": "example", "name": "Example",
"url": "https://sicto.si/p/example/", "guest": false,
"score": { "value": 62, "band": "high" }, "tier": "100K+",
"stamps": 7, "founding": 1,
"checks": { "official": false, "team": false, "gold": false } } }No Passport yet
{ "ok": true, "found": false, "passport": null,
"make": "https://t.me/<SI MIND's bot>?startapp=passport" }Every answer that is not a Passport
| Code | What it means |
|---|---|
| bad_data | Not Telegram launch data. Send Telegram.WebApp.initData exactly as it is. |
| bad_signature | Telegram's signature does not match the bot of this app key. |
| expired | The launch data is more than an hour old. Ask the person to open the Mini App again. |
| replayed | This launch data was already answered 10 times. |
| key | The app key is not registered. |
| paused | The app key is paused. |
| rate_limited | Too many checks. Wait a few minutes. |
Telegram's own method for third parties
Telegram signs the launch data of every Mini App with its own key and publishes how anyone else can check it. We follow that method as written in Telegram's Mini Apps documentation (read Nov 23, 2026).
- Every field except hash and signature, sorted by name, as key=value lines.
- "Your bot id:WebAppData" and a new line go first.
- Telegram's Ed25519 signature is checked with Telegram's published production key.
- The launch data must be less than an hour old, and one launch data is answered at most 10 times.
Choose whether Mini Apps see you
Your SI Passport answers a Mini App only when you opened it and your Telegram is linked to your Passport. You can switch that off here.
Sign in to choose whether Mini Apps can read your public Passport.
Your free app keys
App keys go to verified teams: a site approved for Sign in with SI Passport, or an Org Passport. One key per bot.
This Passport is not a verified team yet. Register your site for Sign in with SI Passport first.
A Guest Passport in two taps, inside Telegram
When a player has no SI Passport, the answer carries a link into SI Hub, SI MIND's own Mini App. Tap the link, tap Make, and the player has a Guest Passport tied to their Telegram account. Your app finds it on the next check.
The limits, published
| Limit | Value |
|---|---|
| Age of the launch data | Up to 1 hour |
| Answers per launch data | 10 |
| Checks per app key | 600 every 10 minutes |
| Checks per network | 120 every 10 minutes |
| Checks per Telegram user | 30 every 10 minutes |
| Apps per team | 5 |
Passport for Mini Apps lets any Telegram Mini App check, before it hands out points, that a player is a real SI Passport holder: the app sends Telegram's signed launch data, sicto.si checks the signature with Telegram's published key, and the answer is what that Passport shows in public. It is free, it never asks for a bot token, and holders can switch it off.
Questions about Passport for Mini Apps
Do I have to send my bot token?
No. Telegram signs the launch data for third parties with its own key, and we check that signature. Your token stays with you.
What does a player have to do?
Nothing in your app. Their Telegram account must be linked to their SI Passport, which holders do once with SI MIND from their Passport page, or they make a Guest Passport in SI Hub.
Can I trust the check made in the browser?
Use it to show the Passport. Before you give points or a place on a board, send the same launch data from your own server and read our answer there.
What stops someone from replaying launch data?
It must be less than an hour old, it is answered at most 10 times, and it only verifies for the bot that your app key names.
Does it cost anything?
No. App keys are free for verified teams, and there is no charge per check.
Can a holder hide from Mini Apps?
Yes. One switch on this page makes every app get "not shared" for that Passport. A hidden Passport is never found.
Know your players are people
Get your app key and add one script.
