uidstringrequerido
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.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
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.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
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 '{}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
uidstringrequeridoUser id, obtained from the user profile interface.
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
TikTok Direct Message Share LinkEsta API TikTok | $0.001 por llamada | JSON |
TikTok | $0.001 por llamada | JSON |
TikTok | $0.01 por llamada | JSON |
TikTok | $0.001 por llamada | JSON |
TikTok | $0.001 por llamada | JSON |
TikTok | $0.001 por llamada | JSON |
Guías:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/tiktok/app-v3/open-app-to-send-private-message con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.
$0.001 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
Requeridos: uid (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.
No. TikTok Direct Message Share Link funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de TikTok por separado.