> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superun.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Douyin Mini Program

> Connect your Mini Program, test it with a registered Douyin account, and upload a development version for review in Douyin.

## Connect your Mini Program

First [publish your project website](https://docs.superun.ai/superun/features/publish.md). You need a Douyin Mini Program registered to an organization that supports embedded web pages, and an account with developer access.

1. Open the Mini Program in the [Douyin developer console](https://developer.open-douyin.com/console?type=1) and copy its **AppID** (starts with `tt`). Under **开发 → 开发配置** (Development settings), enable and copy its **code upload key**. [Douyin's guide to getting the key](https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/dev-tools/developer-instrument/development-assistance/cli-token)

   ![The AppID and code upload key in Douyin’s development settings](https://mintcdn.com/uxarts/_t6btFJs5JR9Ru6k/images/superun/mobile/douyin-credentials.png?fit=max\&auto=format\&n=_t6btFJs5JR9Ru6k\&q=85\&s=7414952f38078e9a2f5080f195415a06)

2. As the superun project owner, open **Operations → Use on mobile → Douyin Mini Program**. Select **Generate** on your first visit. Under **Configuration**, connect the Mini Program by entering the AppID and upload key, then save.

## Verify the website domain

1. In superun, open **Set up business domain**. In the Douyin console, open **开发 → 开发配置 → 域名管理 → web-view 域名** and download the original `.txt` verification file.

   ![The Add and Download verification file links under web-view domains in Douyin](https://mintcdn.com/uxarts/_t6btFJs5JR9Ru6k/images/superun/mobile/douyin-webview.png?fit=max\&auto=format\&n=_t6btFJs5JR9Ru6k\&q=85\&s=52adcef43e4e1aab6e67ed4573f5c994)

2. Return to superun and select **Upload file and update website**. This also publishes any pending website changes.

3. Once the website update finishes, copy the domain shown in superun. Add it to **web-view 域名** in Douyin and confirm. Enter just the hostname, such as `app.example.com`, omitting `https://` and any path.

## Register a test device and preview

1. In Douyin, open **开发 → 开发配置 → 测试设备管理** (Test devices). Select **扫码添加** and scan with the Douyin account you will use for testing.

   ![The Scan to add button on the right of Douyin’s test device list](https://mintcdn.com/uxarts/_t6btFJs5JR9Ru6k/images/superun/mobile/douyin-test-devices.png?fit=max\&auto=format\&n=_t6btFJs5JR9Ru6k\&q=85\&s=a013e0ab80ddd8a9d5cc6d4b8bbd50ca)

2. In superun, select **Generate preview QR code**. superun prepares a native home page for the project. Once ready, scan the preview code in the Douyin app with the registered account. Test the home page, navigation, and main actions.

## Upload and submit for review

Select **Upload development version**, check the version number and notes, and upload. After a successful upload, follow the link to the Douyin console. Under **版本管理** (Version management), select that version, complete the review details, and submit. Track the review and manage publication in Douyin. [Douyin version review FAQ](https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/operation/version-review/faq)

![An approved Douyin version with buttons to view details or publish](https://mintcdn.com/uxarts/_t6btFJs5JR9Ru6k/images/superun/mobile/douyin-version-review.png?fit=max\&auto=format\&n=_t6btFJs5JR9Ru6k\&q=85\&s=7a09e35fa6a20dfb548b6cb06da0388f)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.