Skip to main content

Upload API

Streamline your build process and upload APKs or IPAs directly to TestFairy.

Usage

Command line uploader

Jenkins

Gradle

fastlane

CircleCI

Bitrise

Visual Studio Team Services

NetBeans

Bamboo

TeamCity

GitLab

Lumberyard

Upload API

POSThttps://upload.testfairy.com/api/upload/

Parameters

api_key

| REQUIRED |

Your API application key. See https://app.testfairy.com/settings for details.

file

| REQUIRED |

Android Package Kit (APK), Android App Bundle (AAB), iOS package App Store (IPA), or ZIP (MacOS) file data.

symbols_file

| OPTIONAL |

Symbols mapping file. For iOS, this is a path to the zipped symbols file. For Android, this is the path to the mappings.txt file

groups

| OPTIONAL |

Comma-separated list of tester groups that get permission to download this app.

notify

| OPTIONAL |

Send email to all users in 'groups'. It can be on or off. Default is off.

release_notes

| OPTIONAL |

Release notes for this upload. This text adds to emails and landing pages.

auto_update

| OPTIONAL |

Allows to upgrade all users to the current version. It can be on or off. Default is off.

tags

| OPTIONAL |

Set of comma-separated tags to be displayed and searched upon.

folder_name

| OPTIONAL |

Name of the dashboard folder that contains this app

landing_page_mode

| OPTIONAL |

Landing page mode. It can be open or closed. Default is open.

upload_to_saucelabs

| OPTIONAL |

Upload file directly to Sauce Labs. It can be on or off. Default is off.

platform

| OPTIONAL |

In case the app is not iOS or Android, which are detected automatically, use this to mark an app for specific desktop or console platforms. Values can be "Xbox", "PlayStation", "switch", "windows", "macos". This feature is not enabled by default. Contact support for more information.

Sample Request with Required Params
curl https://upload.testfairy.com/api/upload -F api_key='your_api_key' -F file=@sample.apk

Responses

In the case of an error, TestFairy returns a JSON with status => fail and code with one of the values listed below. TestFairy supplies an additional human-readable error message to detail the cause of the specific error.
200Success.
1Parameter 'xxx' is missing.
5Invalid API key.
105Invalid file.
Sample Response
{
"status": "ok",
"app_name": "Jigsaw Puzzlers",
"app_version": "0.9.5",
"app_url": "https://app.testfairy.com/download/6CWKJCHD60PPVWYJHGM4AADJQYA4SDR0/filename.apk",
"landing_page_url": "https://tsfr.io/3tajti",
}

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.