At the end of this guide your server mints a Telegram Vault link for a creator's paid link, posts it in a Telegram chat (as a plain link or as a card with a button from your bot), and receives the sale on its webhook with the buyer's Telegram identity and your own labels. The test part is being verified (see "What the sandbox covers today"); delivery in Telegram can only be tried on a live creator.
The business version of this page is Sell content inside Telegram with DROPP. The full reference is Selling on Telegram.
What the sandbox covers today. Creating a test creator, content and a
payment link is the verified path of
the onboarding build guide,
steps 1 to 4. In this guide, step 2 (minting a Vault link with the test key)
and step 4 (paying a test Vault link and receiving order.paid) are being
verified: the code accepts them, nobody has shown them end to end.
Delivery of the content in Telegram (step 5) is not testable with a test
creator.
Before you start
- Base URL:
https://api.external.dropp.fans/v1. Every amount is in integer cents. - A creator and a paid link. This guide starts from a creator your
application can act for and a link of theirs (
link_abc123). If you do not have them, follow the onboarding build guide, steps 1 to 4: register the webhook feed, create the creator, upload content, create the link. - Keys. With an application key, send
X-Dropp-App-Keyand noAuthorizationheader, and name the creator withprofile_id. A creator's or agency's own API key works too, withAuthorization: Bearer drp_live_...(ordrp_test_...). - Scopes:
links:writeto mint Vault links and copies,orders:readto read orders back,webhooks:readandwebhooks:writefor the feed. - Live only, for delivery: the creator's Telegram account must be connected in DROPP Chatting (in the creator's or the agency's dashboard). The paid content is sent from that account. There is no API call to connect it or to check it.
BASE=https://api.external.dropp.fans/v1
APP_KEY=drp_app_test_... # the test key; the live key for step 5Step 1. Subscribe to order.paid and link_copy.opened
If your feed already carries order.paid, skip this step. Otherwise register
one with the events you need:
curl -X POST "$BASE/app/webhooks/endpoints" \
-H "X-Dropp-App-Key: $APP_KEY" \
-H "Content-Type: application/json" \
-d '{ "url": "https://yourapp.example/dropp/events",
"events": ["order.paid", "link_copy.opened"],
"description": "Telegram sales" }'Store data.secret from the answer: it is returned only once. Every delivery
is a POST with X-Dropp-Signature (sha256= + HMAC-SHA256 of
"{timestamp}.{raw body}" with the secret), X-Dropp-Timestamp,
X-Dropp-Event-Id and X-Dropp-Event-Type. Verify the signature on the raw
body, refuse timestamps older than 5 minutes, deduplicate on
X-Dropp-Event-Id. A feed created with the test key receives test events
only. The app feed carries creators your application created; for creators
added to an agency, register the endpoint as that agency (see the onboarding
build guide, "If your creators belong to an agency").
Step 2. Mint a Vault link (being verified with the test key)
One call per place you will post it: per post, channel, chatter or
conversation. Put your labels in metadata. Name the creator with
profile_id in the query string: this route's body accepts only
metadata and operator_profile_id, and any other field answers 400.
curl -X POST "$BASE/links/link_abc123/vault-link?profile_id=pfl_abc123" \
-H "X-Dropp-App-Key: $APP_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{ "metadata": { "channel": "vip-fr", "push": "2026-11-22", "chatter": "chatter_12" } }'201:
{ "data": {
"link_id": "link_abc123",
"copy": {
"id": "link_cpd_abc",
"slug": "aB3kPq9z",
"metadata": { "channel": "vip-fr", "push": "2026-11-22", "chatter": "chatter_12" }
},
"share_url": "https://app.dropp.fans/v/aB3kPq9z",
"price": { "amount_cents": 1990, "currency_code": "EUR", "display": "€19.90" },
"telegram": {
"photo_url": "https://app.dropp.fans/v/aB3kPq9z/opengraph-image",
"cover_url": "https://app.dropp.fans/v/aB3kPq9z/cover",
"caption": "🔒 Summer bundle",
"button": { "text": "🔒 Unlock for €19.90", "url": "https://t.me/dropp_vault_bot/vault?startapp=..." }
},
"expires_at": "2027-11-22T10:00:00.000Z"
} }What each field is for:
share_url: the link to paste in Telegram. In the chat it renders a card with the blurred cover and the price. Tapped, it opens the Vault mini app.telegram.photo_url: a ready-made sales card image (blurred cover, lock, price) for your bot'ssendPhoto.telegram.cover_urlis the blurred cover alone, if you compose your own card.telegram.caption:🔒plus the link name, or🔒 Exclusive contentwhen the link has no name.telegram.button: the text and URL of an inline button. The URL opens the mini app directly when DROPP's Telegram settings are present on the API; otherwise it is the same asshare_url.expires_at: one year after minting. It is the expiry of the signed token intelegram.button.urlwhen that URL opens the mini app directly; when the button URL isshare_url, it does not apply.share_urlbuilds a fresh token each time it is opened.copy.slug: the copy this Vault link sells through. Sales through it carrycopy.metadataback to you.
Rules worth knowing:
metadata: your own JSON object, at most 8 KB, 5 levels deep, 100 keys, keys up to 128 characters and string values up to 2,048 characters. DROPP stores it and returns it untouched.operator_profile_id(optional, agencies): the DROPP profile id of the team member credited in DROPP's own agency chatter statistics. It must be an ADMIN or MANAGER of an agency the creator belongs to, else400 operator_not_in_scope.- The price and currency are the link's. The fee fields of
POST /v1/links/{id}/copies(customer_fee_buyer_share_percent,partner_fee_buyer_share_percent) are refused here with400; who pays the DROPP fee follows the seller's own setting. - The Vault link exists only for paid links (
/v1/links), not for donation links, wishlists or subscriptions.
Errors met here:
| Status | error.code | Cause and fix |
|---|---|---|
| 400 | bad_request | A field other than metadata or operator_profile_id in the body (for example profile_id), or metadata too large. |
| 400 | ambiguous_scope | No profile_id with an application key. |
| 400 | operator_not_in_scope | operator_profile_id is not an ADMIN or MANAGER of the creator's agency. |
| 403 | forbidden | The key or the creator's grant lacks links:write. |
| 403 | profile_not_connected | A creator your application cannot act for. |
| 404 | not_found | The link does not exist, is archived, belongs to someone else, belongs to the other mode (test or live), or Vault links are turned off on the platform. |
| 409 | conflict | The same Idempotency-Key was reused with a different body, or the first request with it is still running. |
Step 3. Post it in Telegram
Paste the link. Send share_url as a message: in a private chat, a group
or a channel, from any account. Telegram shows the card. Nothing else is
needed.
Or send a card with a button from your bot. Only a bot can attach an inline button. This is a call to Telegram's Bot API with your own bot token, not to DROPP:
curl -X POST "https://api.telegram.org/bot$BOT_TOKEN/sendPhoto" \
-H "Content-Type: application/json" \
-d '{
"chat_id": 123456789,
"photo": "https://app.dropp.fans/v/aB3kPq9z/opengraph-image",
"caption": "🔒 Summer bundle",
"reply_markup": { "inline_keyboard": [[
{ "text": "🔒 Unlock for €19.90",
"url": "https://t.me/dropp_vault_bot/vault?startapp=..." }
]] }
}'Or use an ordinary payment link. data.copy.checkout_url from
POST /v1/links/{id}/copies also works in Telegram. The buyer pays in the
browser, order.paid carries your metadata, but buyer.telegram is null
and nothing is delivered in Telegram.
Step 4. The buyer pays; you receive order.paid (being verified with the test key)
What the buyer sees:
- They tap the link or button. The DROPP Vault mini app opens inside Telegram, checks the identity Telegram signed when it opened, and shows the locked preview and the link price.
- They tap Unlock, then Continue to secure payment. The DROPP payment page opens in their browser, in their Telegram language when DROPP has it, otherwise English. The payment page shows the total, which is higher than the link price when the buyer pays part of the DROPP fee.
- They pay and are sent back to Telegram (automatically where the phone allows it, and always with a Back to Telegram button). The mini app shows "Payment received" and where the content arrives, with a View your purchase button.
What your server receives:
link_copy.openedwhen the buyer reaches the payment page in the browser, with the copy'smetadata. Opening the mini app alone sends nothing, and Telegram's link previews are never counted as opens.order.paidwhen the payment is confirmed:
{
"event": "order.paid",
"occurred_at": "2026-11-22T10:05:00.000Z",
"object": "order",
"data": {
"id": "ord_abc123",
"status": "paid",
"type": "purchase",
"amount": { "subtotal_cents": 1990, "total_cents": 2290, "currency_code": "EUR" },
"seller": { "id": "pfl_abc123", "username": null, "display_name": "Ava Stone" },
"buyer": {
"email": "fan@example.com",
"name": null,
"country": null,
"telegram": { "id": "123456789", "username": "fan_handle" }
},
"payment": null,
"link": { "id": "link_abc123", "name": "Summer bundle" },
"metadata": { "channel": "vip-fr", "push": "2026-11-22", "chatter": "chatter_12" },
"client_metadata": null
},
"profile_id": "pfl_abc123",
"agency_id": null,
"livemode": false
}What to check:
data.buyer.telegram.idis the buyer's Telegram user id, as a string. DROPP takes it from the data Telegram signs when the mini app opens, then binds it to the payment page with a signed token, so it cannot be typed in by the buyer.usernameisnullwhen the buyer has no public username.data.buyer.telegramis set only on Vault sales. On a sale through an ordinary payment link it isnull.data.metadatais themetadataof the Vault link the buyer used (step 2). Route the sale on it.data.client_metadatais filled only by DROPP's embedded checkout; it isnullon Telegram sales.data.buyer.emailis the email the buyer gave on the payment page, ornull.countryandpaymentare filled when the payment provider is Nuvei and its notification was stored (see the onboarding build guide, step 5);namecomes from that notification too, else from a name typed at checkout. Otherwise they arenull, as here.subtotal_centsis the link price;total_centsis what the buyer paid.agency_idisnullon your app feed. A creator's agencies receive the same event on their own endpoints with theiragency_id.
Read the same sale back with GET /v1/orders?profile_id=pfl_abc123. Each row
has buyer: { "email": ..., "telegram": { "id": "123456789", "username": "fan_handle" } },
the copy's metadata, and checkout_url https://app.dropp.fans/s/<copy slug>.
Step 5. Delivery in Telegram (live only)
After order.paid, DROPP sends the content to the buyer's private chat with
the creator, from the creator's own Telegram account, as protected content
(Telegram blocks forwarding and saving). It uses the existing conversation
when there is one, otherwise the buyer's Telegram id, then their public
username. One file of the link is sent; the buyer opens the rest from
View your purchase.
DROPP makes up to 5 attempts by default (the first try and 4 retries) when a send fails for a passing reason (Telegram rate limits, network, server errors), then gives up. It gives up at once when the creator's Telegram account is not connected, the buyer cannot be reached, or the file was refused.
What happens when delivery fails:
- The order stays paid. The buyer sees "We couldn't send it to your Telegram chat. Open your purchase below." and opens it in the browser.
- If the cause is the creator's Telegram account (never connected, disconnected, or login not finished), the creator and every agency managing them get a notice in the DROPP dashboard that links to Chatting. It is one notice at a time, not one per sale.
- For any other cause, the creator is not told today.
- Your server is not told either way: there is no webhook for delivery.
Not testable with a test creator. Nobody can log in to a test creator, so its Telegram account can never be connected and every delivery fails. Try delivery on a live creator whose Telegram account is connected in Chatting, with a link at a low price.
Step 6. Go live
- Switch the key.
drp_app_test_becomesdrp_app_live_. Same endpoints, same shapes,livemode: true. Register a live webhook feed (step 1): a test feed never receives live events. - Mint Vault links again with the live key. Test links and copies do not
work with the live key, and the other way round (
404). - Have the creator connect Telegram in DROPP Chatting before the first post. Without it, buyers pay and get the content only in the browser.
- Run one real sale on a cheap link, end to end: post in a chat, pay,
check
order.paidwithbuyer.telegram, check that the content arrives in the buyer's chat with the creator.
Errors you will meet
All errors use one envelope: { "error": { "code": "...", "message": "...", "status": 404 } }.
Branch on error.code, not on the message.
| Status | error.code | When | What to do |
|---|---|---|---|
| 400 | ambiguous_scope | No profile_id with an application key | Put profile_id in the query string |
| 400 | bad_request | Unknown body field (including profile_id or fee fields on vault-link), invalid metadata | Send only metadata and operator_profile_id |
| 400 | operator_not_in_scope | operator_profile_id is not staff of the creator's agency | Use an ADMIN or MANAGER of that agency, or omit it |
| 401 | unauthorized | Missing or invalid key | Check the header name and the key |
| 403 | forbidden | Missing links:write | Ask DROPP for the scope before creating creators |
| 403 | profile_not_connected | Creator not provisioned by you, or disconnected | Stop calling for this creator |
| 404 | not_found | Link unknown, archived, of the other mode, or Vault links turned off | Check the link id and the key's mode; if it persists on a valid link, contact DROPP |
| 409 | conflict | Idempotency-Key reused with another body, or still in progress | Use a new key per new Vault link; retry the same body later |
| 429 | rate_limited / app_rate_limited | Request budget used up | Wait Retry-After seconds |
Limits and numbers
| What | Value |
|---|---|
expires_at of a Vault link's button URL | 1 year after minting |
metadata | 8 KB, 5 levels, 100 keys, keys up to 128 characters, strings up to 2,048 characters |
| Files sent in the Telegram message | 1 per sale; the rest on the purchase page |
| Delivery attempts | up to 5 by default (first try and 4 retries), then the order's delivery is marked failed |
Opens (link_copy.opened) | once per visitor per link per 30 minutes; link previews and bots excluded |
| Requests, per creator through your app | 100 per minute, 10 per second burst (defaults) |
| Requests, your app in total | 1,000 per minute, 50 per second burst (defaults; registered partners can have more) |
Not available yet
- A confirmed test Vault sale, and a confirmed test Vault link (steps 2 and 4, being verified).
- Delivery in test mode (step 5): a test creator cannot connect Telegram.
- A delivery webhook: no event says whether the content was sent.
- Reading or connecting a creator's Telegram account through the API.
- The buyer total in Telegram: the card, button and mini app show the link price, not the total with the buyer's share of the fee.
- Telling the creator about every failed delivery: only failures caused by their Telegram connection reach them, as a dashboard notice.
- Fee choices on a Vault link:
vault-linkdoes not take the fee fields thatPOST /v1/links/{id}/copiestakes.
Related pages
- Sell content inside Telegram with DROPP (business page)
- Onboard creators from your tool: build guide: creators, content, links, webhook feed
- Links, Selling on Telegram and Webhook event types
- Rate limits
- Developer portal:
https://roadmap.dropp.fans/developers