Dashboard
Recent Transactions
| ID | Type | Recipient | Qty | Price (TON) | Status |
|---|---|---|---|---|---|
| Loading... | |||||
All Orders
| Order ID | Service Type | Target User | Amount | Cost | Status | Date |
|---|---|---|---|---|---|---|
| Loading... | ||||||
Hyperpin API Reference
Welcome to the Hyperpin API. This API enables you to programmatically buy Telegram Stars, Premium subscriptions, and Gifts. It is designed for seamless integration into your bots and apps. The system automatically calculates and deducts the equivalent cost in TON from your Developer Balance. All responses are returned in JSON format.
Base URL: https://hyperpin.top/api/v1
Content-Type: application/json
Authentication
Security is handled via the X-API-Key header. You must pass this header in every request to authenticate your account. Keep your API key secret and do not share it publicly.
β‘ Rate Limiting
Each API key is limited to 60 requests per minute. If exceeded, the API returns 429 Too Many Requests. The limit resets automatically after 60 seconds.
π Idempotency Key
To prevent duplicate purchases (e.g. from network retries), include a unique X-Idempotency-Key header on buy requests. If you repeat the same key within 24 hours, the original response is returned β no duplicate charge.
Webhooks (Real-Time Updates)
Provide a response_url in buy requests. When the transaction completes, we POST the result to your URL. Optionally pass webhook_secret to receive an HMAC-SHA256 signature in the X-Hyperpin-Signature header for verification.
Verify a user before purchasing. Returns name, photo, and premium status.
Real-time TON price for Stars from Fragment.
Purchase Telegram Stars. Minimum 50. TON deducted instantly; refunded if Fragment fails.
Send a Telegram Gift by gift_id and stars_cost.
Get a single order. Status: pending | completed | failed.
Paginated order history with optional filters.
Your current TON developer balance.
Get the TON wallet address to top up your API balance. Send TON to this address.
Generate a new API key. The old key is immediately revoked.
Public endpoint. Real-time TON rates for Stars and Premium from Fragment (no auth required).
π Audit Logs
Access your request history for debugging and security auditing.
π Webhook Events
List of all possible events sent to your response_url.
Common Errors
All errors: {"detail": {"error": "...", "code": "..."}}
401 β Invalid X-API-Key
429 β rate_limit_exceeded β 60 req/min exceeded
400 β insufficient_balance β Not enough TON
400 β invalid_quantity β Stars < 50
404 β user_not_found β Username not found
503 β service_unavailable β Fragment/Telegram error