Upload API
Streamline your build process and upload APKs or IPAs directly to TestFairy.
Usage
Upload API
Where Can I Find My API Key?
To get your API KEY, open your account preferences at https://app.testfairy.com/settings/ and click on Upload API Key.
How Can I Create a New API Key?
To create a new API KEY, click on Regenerate API Key on your account preferences page.
Why Is My API Key Empty?
In cases TestFairy identifies that by mistake, you initialize the SDK by using your API KEY instead of using your APP TOKEN, TestFairy automatically reset the API KEY to protect your privacy. In this case, change the SDK initialization to use the APP TOKEN and create a new API KEY.
Can I Add Custom Metadata?
Yes. Any POST parameter prefixed with "metadata." in the name is considered custom data and stored along with the upload. For example, consider this command:
curl https://upload.testfairy.com/api/upload \
-F api_key='your_api_key' \
-F file=@sample.apk \
-F metadata.branch=master \
-F metadata.locale=us-en
Metadata is displayed and can be searched on in App Versions page by clicking on an app from the Dashboard. You can also view them on a single version's settings page.
Can I attach the symbols file to my app to download it later?
Yes! You can attach your dSYM zipped for iOS / Text file .txt for Android app while uploading the app. Check out the Upload/Download Symbols file documentation for more details.