Sand AISand AI MAGI-2MAGI-2 теперь на SandBase: видео 1080p с нативным звукомПопробовать сейчас

TikTok Direct Message Share Link

Документация API
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.

Цена
$0.001USD / вызов
Метод
POST
Ответ
JSON
Параметры
1 обязательных · 0 необязательных

Песочница

Ввод
User id, obtained from the user profile interface.
ВыходГотово

Ваш результат появится здесь

Заполните входные данные, затем нажмите «Запустить».

README по API

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.

Посмотреть больше

Связанные APIs

Все APIs
APIЦенаОтвет
TikTok$0.001 за запросJSON
TikTok$0.001 за запросJSON
TikTok$0.01 за запросJSON
TikTok$0.001 за запросJSON
TikTok$0.001 за запросJSON
TikTok$0.001 за запросJSON

Руководства:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Вопросы

FAQ

Как использовать API TikTok Direct Message Share Link?

Отправьте POST-запрос на https://api.sandbase.ai/v1/api/tiktok/app-v3/open-app-to-send-private-message, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.

Сколько стоит API TikTok Direct Message Share Link?

$0.001 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.

Какие параметры принимает API TikTok Direct Message Share Link?

Обязательные: uid (string). В таблице Parameters и в Playground на этой странице перечислены все поля.

Что возвращает API TikTok Direct Message Share Link?

JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.

Нужен ли мне аккаунт разработчика TikTok или API key?

Нет. TikTok Direct Message Share Link работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API TikTok.