REST API for working with gift collections
To use the API, you need to create an application and include the app_token in your requests.
Applications that do not use the app_token and make excessive requests may have their IP address blocked.
Get app_tokenAPI access may be restricted or blocked without warning for abuse.
Create ApplicationSome endpoints require authorization via Telegram Web App. The tgauth parameter is a JSON string with Telegram authorization data.
Server health check
Telegram authorization validation
Returns a list of gifts with filtering, sorting and pagination support
| Parameter | Type | Description |
|---|---|---|
| app_token* | string | Application token (required) |
| id | string | Record ID |
| gift_id | string | Gift ID |
| title | string | Title |
| slug | string | Slug |
| num | integer | Number |
| model_name | string | Model name |
| pattern_name | string | Pattern name |
| backdrop_name | string | Backdrop name |
| current_owner_id | string | Owner ID ⚠️ Requires auth |
| url | string | Telegram URL |
| market_only | bool | Only gifts for sale |
| limit | integer | Number of records (1-50, default: 50) |
| offset | integer | Offset from start |
| sort_by | string | num, title, updated_at |
| order | string | asc, desc |
💡 All filters support multiple comma-separated values! Example: num=1,2,3
Returns gift transfer history between owners
| Parameter | Type | Description |
|---|---|---|
| app_token* | string | Application token (required) |
| tgauth* | string | Telegram authorization (required) |
| gift_id | string | Filter by gift ID |
| owner_id | string | Filter by new owner ID |
| prev_owner_id | string | Filter by previous owner ID |
| limit | integer | Number of records (1-5, default: 5) |
| offset | integer | Offset from start |
| sort_by | string | seen_at |
| order | string | asc, desc |
💡 If owner_id and prev_owner_id are the same — searches where user was either sender or receiver (OR)
Owner search with full-text search support
| Parameter | Type | Description |
|---|---|---|
| app_token* | string | Application token (required) |
| tgauth* | string | Telegram authorization (required) |
| id | string | Filter by ID |
| owner_type | string | object, hidden, blockchain |
| telegram_type | string | user, channel |
| telegram_id | string | Telegram ID |
| username | string | Username |
| name | string | Name |
| owner_address | string | TON address |
| search_query | string | Universal search by name, username, telegram_id, address |
| limit | integer | Number of records (1-10, default: 10) |
| offset | integer | Offset from start |
| sort_by | string | gifts_count, name, username |
| order | string | asc, desc |
Get a single owner by filters. No authorization required
| Parameter | Type | Description |
|---|---|---|
| app_token* | string | Application token (required) |
| id | string | Filter by ID |
| telegram_id | string | Telegram ID |
| username | string | Username |
| owner_address | string | TON address |
Returns platform statistics
| Parameter | Type | Description |
|---|---|---|
| app_token* | string | Application token (required) |
Error format:
Success
Validation error
Unauthorized
Server error