Douyin Direct Message Deep Link
https://api.sandbase.ai/v1/api/douyin/app-v3/open-app-to-send-private-messageGenerates a Douyin deep link to open the mobile application directly to a user conversation. Requires the target user's uid and sec_uid to return a shortened URL.
- Price
- $0.0015USD / callFirst 100 calls per day free (shared per organization)
- Method
- POST
- Response
- JSON
- Parameters
- 2 required · 0 optional
Try the model
Playground
Your output will appear here
Complete the inputs, then click Run.
Model card
Specifications
Pricing
- Base price
- $0.0015 / run
- Daily free calls
- First 100 calls per day free (shared per organization)
Request & response
- Method
- POST
- Request body
- application/json
- Response
- application/json
- Execution
- sync
Parameters
- sec_uid
- string · required
- uid
- string · required
Access
- Provider
- Douyin
- API
- Platform API
- Base URL
- https://api.sandbase.ai
- Endpoint
- /v1/api/douyin/app-v3/open-app-to-send-private-message
- Authentication
- Bearer API key
API README
Douyin Direct Message Deep Link API
Generates a short deep link that launches the Douyin application to message a targeted account using uid and sec_uid.
Use cases
- Direct users to chat with official brand accounts in the Douyin app.
- Guide audience members from external websites into native app conversations.
- Facilitate one-click messaging workflows for customer support.
Request
curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/open-app-to-send-private-message" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sec_uid": "MS4wLjABAAAAr52fXcfmzqOZJM_smap9Uuxtm16h8BupkCVaCt89BENq3E91mHCvtz5Z5TkXPHq_", "uid": "92769419069"}'
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
uid | string | Yes | User id |
sec_uid | string | Yes | User sec_uid |
Example response
Real response for the request above, trimmed to the main fields. User names and long IDs are masked.
{
"short_url": "https://v.douyin.com/Zy_7aAP2O2w/",
"status": "success"
}
Notes
- Both
uidandsec_uidare required to target the account.
Related APIs
- Douyin Brand Hot Search List: Returns the current Douyin brand hot search list and category data.
- Douyin Brand Hot Search List Detail: Returns detailed brand hot search list data from Douyin for a specific category.
- Douyin Short Link Generator: Converts a standard Douyin web link into a shortened Douyin URL.
Start building
Send your first request
Platform API endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/open-app-to-send-private-message" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{}
SANDBASE_JSON
)
printf '%s\n' "$result"Explore more
Related APIs
| API | Price | Response | Released |
|---|---|---|---|
Douyin Direct Message Deep LinkThis API Douyin | $0.0015 per call | JSON | Jul 31, 2026 |
Douyin | $0.0015 per call | JSON | Jul 31, 2026 |
Douyin | $0.0015 per call | JSON | Jul 31, 2026 |
Douyin | $0.0015 per call | JSON | Jul 31, 2026 |
Douyin | $0.0015 per call | JSON | Jul 31, 2026 |
Douyin | $0.0015 per call | JSON | Jul 31, 2026 |
Questions
FAQ
How do I use the Douyin Direct Message Deep Link API?
Send a POST request to https://api.sandbase.ai/v1/api/douyin/app-v3/open-app-to-send-private-message with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.
How much does the Douyin Direct Message Deep Link API cost?
$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.
What parameters does the Douyin Direct Message Deep Link API accept?
Required: sec_uid (string) and uid (string). The Parameters table and the Playground on this page list every field.
What does the Douyin Direct Message Deep Link API return?
A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.
Do I need a Douyin developer account or API key?
No. Douyin Direct Message Deep Link runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Douyin API access separately.
