uidstringobbligatorio
User id, obtained from the user profile interface.
https://api.sandbase.ai/v1/api/tiktok/app-v3/open-app-to-send-private-messageReturns a TikTok share short URL to launch the TikTok application and open a direct message conversation with a designated user ID.
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
Returns a TikTok short URL that opens the TikTok app on a direct message conversation with a given user. It needs one input, the numeric uid of the target user.
uid.curl -X POST "https://api.sandbase.ai/v1/api/tiktok/app-v3/open-app-to-send-private-message" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"uid": "6860674014860641286"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
uid | string | Yes | User id, obtained from the user profile interface. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"short_url": "https://www.tiktok.com/t/ZP9ytcR1Nvfyn-vWa0B/",
"status": 0,
"uid": "6860674014860641286"
}
| Field | Meaning |
|---|---|
short_url | Short TikTok link. Opening it on a phone launches the TikTok app and starts a direct message with the user. |
uid | The user ID the link was built for. It matches the uid sent in the request. |
status | Status code of the call. The value 0 appears in a successful response. |
uid from the user profile API, for example TikTok User Profile Details.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/app-v3/open-app-to-send-private-message" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
uidstringobbligatorioUser id, obtained from the user profile interface.
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
TikTok Direct Message Share LinkQuesta API TikTok | $0.001 per chiamata | JSON |
TikTok | $0.001 per chiamata | JSON |
TikTok | $0.01 per chiamata | JSON |
TikTok | $0.001 per chiamata | JSON |
TikTok | $0.001 per chiamata | JSON |
TikTok | $0.001 per chiamata | JSON |
Guide:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/tiktok/app-v3/open-app-to-send-private-message con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
$0.001 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: uid (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. TikTok Direct Message Share Link funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API TikTok.