Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

TikTok Direct Message Share Link

API-Dokumentation
https://api.sandbase.ai/v1/api/tiktok/app-v3/open-app-to-send-private-message

Returns a TikTok share short URL to launch the TikTok application and open a direct message conversation with a designated user ID.

Preis
$0.001USD / Aufruf
Methode
POST
Antwort
JSON
Parameter
1 erforderlich · 0 optional

Playground

Eingabe
User id, obtained from the user profile interface.
AusgabeBereit

Ihre Ausgabe wird hier angezeigt

Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.

API-README

TikTok Direct Message Share Link API

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.

Use cases

  • Add a "Message me on TikTok" button to a website or email that opens a chat with a specific account.
  • Build outreach links for creator collaboration campaigns, one link per creator uid.
  • Send a support or community link in a bio page or QR code that starts a TikTok chat.
  • Generate message links in bulk for a list of known user IDs.

Request

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.

Parameters

NameTypeRequiredDescription
uidstringYesUser id, obtained from the user profile interface.

Example response

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"
}

Response fields

FieldMeaning
short_urlShort TikTok link. Opening it on a phone launches the TikTok app and starts a direct message with the user.
uidThe user ID the link was built for. It matches the uid sent in the request.
statusStatus code of the call. The value 0 appears in a successful response.

Notes

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Mehr entdecken

Verwandte APIs

Alle APIs
APIPreisAntwort
TikTok$0.001 pro AufrufJSON
TikTok$0.001 pro AufrufJSON
TikTok$0.01 pro AufrufJSON
TikTok$0.001 pro AufrufJSON
TikTok$0.001 pro AufrufJSON
TikTok$0.001 pro AufrufJSON

Anleitungen:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Fragen

FAQ

Wie verwende ich die TikTok Direct Message Share Link API?

Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/tiktok/app-v3/open-app-to-send-private-message mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.

Was kostet die TikTok Direct Message Share Link API?

$0.001 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.

Welche Parameter akzeptiert die TikTok Direct Message Share Link API?

Erforderlich: uid (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.

Was gibt die TikTok Direct Message Share Link API zurück?

Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.

Benötige ich ein TikTok-Entwicklerkonto oder einen API-Schlüssel?

Nein. TikTok Direct Message Share Link läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für TikTok API beantragen.