Test a mini app
Upload the app bundle (.ait) file, and you can perform final testing in the Toss app with the generated test app scheme.
1. Create an app bundle file
An app bundle is .ait a file with the .ait extension, and it is the result of packaging a built project. Run the command below to create an app bundle. When the build is complete, in the project root directory <service name>.ait the file will be created.
npm run buildpnpm buildyarn build2. Test in the Toss app
There are two ways to upload an app bundle and test it in the Toss app.
Upload directly from the console and test with a QR code
Automatic upload with CI/CD commands
Only app bundles up to 100 MB after extraction can be uploaded. If you include all resources such as images, sounds, and videos, you may exceed the size limit, so manage resource files separately from the build.
We recommend managing resources like this.
Include only the minimum resources required to run the app in the bundle.
Configure large resources to be downloaded from external storage or a CDN.
Applying lazy loading for additional resources improves the user experience.
2-1. Upload the app bundle from the console and test with QR
First, upload the app bundle (.ait) file to the console. You must complete testing at least once before you can request review.
Is the app bundle file not uploading?
Please check whether the app was built properly.
npm run buildIf it wasn't created with that command or the project structure is not correct, app bundle compilation will fail and it won't be uploaded.
After uploading the app bundle, click the 'Test' button to view the Toss app test QR code in the console. Scanning the QR code will launch the mini app in the Toss app.
QR code testing can run only when all of the following conditions are met.
You must be logged in to the Toss app.
You must be a workspace member.
Only users aged 19 or older can test.


2-2. Use CI/CD commands
You can upload the app bundle via CLI without accessing the console.
To upload automatically with CI/CD commands, SDK v1.4.0 or later is required. If you are using an earlier version, please upgrade the SDK first.
First, issue an API key in the console. You can set access permissions for the entire app or for a specific app.
Path: Select a workspace → 'Keys' in the left menu


Run the command below to upload the app bundle. If the upload succeeds, you can check the app scheme for testing.
If you register an API key in advance, you don't have to enter it repeatedly.
-m When uploading a bundle with the option, you can include a memo as well.
Try using the commands below as needed.
npx ait token --help
View help
npx ait token add [workspace name] [API key]
Register token
npx ait token remove [workspace name]
Delete registered token
npx ait deploy [workspace name] [API key]
Upload bundle
npx ait deploy [workspace name] [API key] --timeout [seconds]
Set the maximum wait time for checking deployment status (10 to 300 seconds)
3. Test features
intoss:// The scheme can be accessed only after the app is officially released. Feature testing before release must be done with the test scheme (QR code) created during upload.
Check deploymentId in the QR code
Every time you upload an app bundle, a new deploymentIdis issued. In the test scheme, _deploymentIdis a required parameter.
Test by applying path and query to the scheme
When applying a sub path:
When applying query parameters (queryParams must be URL-encoded):