Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Douyin Direct Message Deep Link

Documentación de la API
https://api.sandbase.ai/v1/api/douyin/app-v3/open-app-to-send-private-message

Generates 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.

Precio
$0.001USD / llamada
Método
POST
Respuesta
JSON
Parámetros
2 obligatorios · 0 opcionales

Entorno de pruebas

Entrada
User sec_uid
User id
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la API

Douyin Direct Message Deep Link API

Returns a short Douyin link that opens the Douyin mobile app to a private message conversation with a given user. It needs the target user's uid and sec_uid.

Use cases

  • Add a "Message us on Douyin" button to a website that opens the brand's chat in the app.
  • Put a chat link in a customer support email or QR code so users reach your Douyin account in one tap.
  • Build outreach tools that give each creator a ready-to-use direct message link.
  • Generate message links in bulk for a list of accounts you already track.

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

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
sec_uidstringYesUser sec_uid
uidstringYesUser id

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "sec_uid": "MS4wLjABAAAAr52fXcfmzqOZJM_smap9Uuxtm16h8BupkCVaCt89BENq3E91mHCvtz5Z5TkXPHq_",
  "short_url": "https://v.douyin.com/mA8jwqgb6sA/",
  "status": "success",
  "uid": "92769419069"
}

Response fields

FieldMeaning
short_urlShortened v.douyin.com link. Opening it on a phone with Douyin installed launches the app to the conversation with the target user.
statusResult of the call. The value success means the link was created.
uidThe user id you sent, echoed back in the response.
sec_uidThe user sec_uid you sent, echoed back in the response.

Notes

Pricing

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

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
Douyin$0.001 por llamadaJSON
Douyin$0.001 por llamadaJSON
Douyin$0.001 por llamadaJSON
Douyin$0.001 por llamadaJSON
Douyin$0.001 por llamadaJSON
Douyin$0.001 por llamadaJSON

Guías:Best Douyin API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de Douyin Direct Message Deep Link?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/douyin/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.

¿Cuánto cuesta la API de Douyin Direct Message Deep Link?

$0.001 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Douyin Direct Message Deep Link?

Requeridos: sec_uid (string) y uid (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Douyin Direct Message Deep Link?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de Douyin?

No. Douyin Direct Message Deep 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 Douyin por separado.