applivery.com

Get the download token and download URL of a build

Note

You are viewing the Organizations API, which is part of the full API spec

This request is intended to get the download token of a build and its download URL.

Step 1 - Generate download token #

Content-Type: application/json Authorization: Bearer <token>

Params #

Param Type Description
type String Type of build: auto, file, aab
  • auto: download .apk (android) or manifest (Apple).
  • file: download .ipa (not the manifest in Apple).
  • aab: download .aab instead of universal .apk

Example request #

				
					curl 'https://api.applivery.io/v1/organizations/_ORGANIZATION_SLUG_/apps/_APPLICATION_ID_/builds/_BUILD_ID_/downloadToken?type=file' 
  -H 'accept: application/json' 
  -H 'authorization: Bearer _BEARERTOKEN_'
				
			

Responses #

Content type: application/json
				
					{
  "status": true,
  "data": {
    "token": "string",
    "expiresAt": "string"
  }
}
				
			

Step 2 - Get download URL #

Example request #

				
					curl 'https://download-api.applivery.io/v1/download/_DOWNLOAD_TOKEN_' 

				
			

You will be redirected to the URL returned in the location parameter of the response header.

  • In Android, the redirection URL will be the .apk file if the build is a .aab and the download token was generated with the type=aab. In this case, the redirect will be the .aab file.
  • In Apple, the redirection URL will be the manifest.plist if the download token was generated with the type=file. In this case, the redirect will be the .ipa or .pkg file.

 

Responses #

Content type: application/json
				
					{
    "status": true
}
				
			
Updated on November 11, 2023
Was this article helpful?

On this page

— talk to an expert —

Schedule a demo