Fragment API for Telegram Stars & Premium
Buy Telegram Stars and Premium gifts programmatically from one REST endpoint. Anonymous delivery, on-chain settlement in 10–20 seconds. Drop-in for cURL, Python, JavaScript, PHP, and Go.
curl -X POST https://api.qonixcore.com/v1/orders/star \
-H "API-Key: qonix_live_..." \
-H "Content-Type: application/json" \
-d '{
"username": "alice",
"recipient_hash": "ABCDEF123456",
"quantity": 100
}'
# 200 OK (returns in ~1.3s)
{
"order_id": "550e8400-e29b-41d4-a716-446655440000",
"status": "processing",
"type": "star",
"quantity": 100,
"amount": 5.5,
"created_at": "2026-07-20T09:13:30Z"
}Webhook delivers order.completed once the TON tx is confirmed.
~2s API response
POST returns instantly. On-chain settlement happens in the background; you get the result over a signed webhook.
Anonymous delivery
Every gift is sent anonymously. Recipient never sees who paid.
Prepaid TON balance
Top up once with TON, then spend per call. No card auth, no chargebacks.
HMAC-signed webhooks
order.completed / order.failed events. SHA-256 with replay protection.
Price-drift guard
Refuses to settle if Fragment's TON quote moves >2% between accept and broadcast. Your treasury stays predictable.
Just HTTP + JSON
Same call shape from any language. No SDK required.
Pay-as-you-go in TON
Fragment quote + a flat 2% API fee + TON network gas. No subscription, no monthly minimum.
- Live Fragment TON quote
- + 2% API fee
- Volume discount on >50k Stars/mo
- Live Fragment TON quote
- + 2% API fee
- Anonymous gifts · same webhook contract
- No platform fee
- No monthly subscription
- Unlimited API keys + webhooks
Explore the API
Jump straight to what you need.
Frequently asked questions
About the Fragment API, Stars API, and Premium API.
What is the Fragment API?
+
How do I buy Telegram Stars programmatically?
+
How do I buy Telegram Premium programmatically?
+
How much does the API cost?
+
How fast are orders delivered?
+
Is the recipient anonymous?
+
Do you support webhooks?
+
What languages can I use?
+
Ship your first Star in under 5 minutes
Sign up on qonixcore.com, mint an API key, top up TON, and call the API.