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/21055e58-52dd-4fe0-b8be-87288b402173/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.eyJ1c2VyX2lkIjoidWFhLWlkLTM4IiwiZW1haWwiOiJlbWFpbC0zOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyNzc0OTgwfQ.J5k-JUpnms4Ks6hYLjrWua-JgX8tLsLU73DQijogxSg
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/21055e58-52dd-4fe0-b8be-87288b402173/download" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4IiwiZW1haWwiOiJlbWFpbC0zOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyNzc0OTgwfQ.J5k-JUpnms4Ks6hYLjrWua-JgX8tLsLU73DQijogxSg" \
	-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/21/05/21055e58-52dd-4fe0-b8be-87288b402173?X-Amz-Expires=3600&X-Amz-Date=20150521T010300Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=fake_aws_key_id/20150521/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=bd519af0fa4cb5f73e464c888545f2c470c33f07ca6b83e285db62e43d77ee05
X-VCAP-Request-ID: be13e4a6-c988-4fb9-a7fd-6b3eae560b9c
Content-Length: 0
X-Content-Type-Options: nosniff