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/44c4e103-6637-4fc0-a11d-386a91b1a705/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.eyJ1c2VyX2lkIjoidWFhLWlkLTQwIiwiZW1haWwiOiJlbWFpbC00MEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI1OTQ4NjU5fQ.9rYN1_WPM42K5NL5J4gclx8_VuoL72refl1ZkX2vMP0
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/44c4e103-6637-4fc0-a11d-386a91b1a705/download" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwIiwiZW1haWwiOiJlbWFpbC00MEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI1OTQ4NjU5fQ.9rYN1_WPM42K5NL5J4gclx8_VuoL72refl1ZkX2vMP0" \
	-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/44/c4/44c4e103-6637-4fc0-a11d-386a91b1a705?X-Amz-Expires=3600&X-Amz-Date=20150303T005059Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=fake_aws_key_id/20150303/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=bf70ab2b0981c1797b1ed82b40872f8df7de07449778e6271352294ef6be3b5d
X-VCAP-Request-ID: be66df22-ec40-4a2b-a3d2-019dafc21102
Content-Length: 0
X-Content-Type-Options: nosniff