Live · 99.9% uptime · on-chain settled

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.

Already have an account? Sign in
POST · /orders/star
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.

2% + gasper order·deducted from your TON balance at order time
Stars
50 – 1,000,000
per order
  • Live Fragment TON quote
  • + 2% API fee
  • Volume discount on >50k Stars/mo
Premium
3 / 6 / 12 mo
per gift
  • Live Fragment TON quote
  • + 2% API fee
  • Anonymous gifts · same webhook contract
Infrastructure
$0
forever
  • No platform fee
  • No monthly subscription
  • Unlimited API keys + webhooks
Example: a 100-Star order quoted at 5.50 TON on Fragment → you pay 5.625 TON total (5.50 to Fragment + 0.11 2% fee + 0.015 TON network gas).
All systems operational
API
99.97%
Fragment session
healthy
TON wallet
online
Webhooks
< 1s p95

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?

+
The Qonix Fragments API is a REST endpoint that lets developers buy Telegram Stars and Telegram Premium gifts programmatically. It automates the same flow you would do on Fragment.com — no UI required.

How do I buy Telegram Stars programmatically?

+
Sign up at qonixcore.com, mint an API key, top up TON, then POST to https://api.qonixcore.com/v1/orders/star with the recipient username and quantity (50–1,000,000 Stars). Delivery is anonymous and settles on-chain in ~10–20 seconds.

How do I buy Telegram Premium programmatically?

+
POST to https://api.qonixcore.com/v1/orders/premium with the recipient username and a months value of 3, 6, or 12. The order is delivered anonymously to the recipient and settles on the TON blockchain.

How much does the API cost?

+
There's no monthly fee. You pay Fragment's live TON quote plus a flat 2% API fee plus TON network gas (~0.015 TON per order). Failed orders are auto-refunded in full.

How fast are orders delivered?

+
POST /orders/star returns in under 2 seconds with status:processing. The on-chain settlement and Fragment delivery complete in ~10–20 seconds, after which our webhook fires order.completed with the transaction hash.

Is the recipient anonymous?

+
Yes. Every Stars and Premium gift sent through the API is delivered anonymously — the recipient does not see who sent it. Our wallet appears as the sender on Fragment.

Do you support webhooks?

+
Yes. Configure up to 5 endpoints per account. We POST signed JSON (HMAC-SHA256) for order.completed and order.failed events. Signature verification examples in Python, JavaScript, PHP, and Go are in the docs.

What languages can I use?

+
Any language with an HTTP client. Our docs show ready-to-paste examples in cURL, Python (httpx), JavaScript (fetch), PHP (curl), and Go (net/http).

Ship your first Star in under 5 minutes

Sign up on qonixcore.com, mint an API key, top up TON, and call the API.