Home
Version 3
Apps API

Apps API

Downloads the bits for an App

GET /v2/apps/:guid/download

When using a remote blobstore, such as AWS, the response is a redirect to the actual location of the bits.

Request

Route

GET /v2/apps/427636a2-9648-4457-bf7d-ef8850544697/download

Parameters

Name Description Valid Values Example Values
guid The guid of the App

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2OCIsImVtYWlsIjoiZW1haWwtMjAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5NzF9.QkoMRPg34c6o6UR_oVbQ0YnjfCt8hEby13KrSR1stoM
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/427636a2-9648-4457-bf7d-ef8850544697/download" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2OCIsImVtYWlsIjoiZW1haWwtMjAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5NzF9.QkoMRPg34c6o6UR_oVbQ0YnjfCt8hEby13KrSR1stoM" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

302 Found

Headers

Content-Type: application/json;charset=utf-8
Location: https://cc-packages.s3.amazonaws.com/42/76/427636a2-9648-4457-bf7d-ef8850544697?X-Amz-Expires=3600&X-Amz-Date=20150318T225251Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=fake_aws_key_id/20150318/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=106f9ce9df877d191c62de79a44021e85141555937480c3b95f2f95cf15d7561
X-VCAP-Request-ID: 794b8044-6157-4d89-ad07-4541badc30e3
Content-Length: 0
X-Content-Type-Options: nosniff