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/4d608169-9f90-4af4-8275-df67f4c82ab9/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.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NyIsImVtYWlsIjoiZW1haWwtMTkwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NTF9.zz4FpElMCL8z-_C0bBrZM89nvH7bVaoq3XZSGsWtwQg
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/4d608169-9f90-4af4-8275-df67f4c82ab9/download" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NyIsImVtYWlsIjoiZW1haWwtMTkwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NTF9.zz4FpElMCL8z-_C0bBrZM89nvH7bVaoq3XZSGsWtwQg" \
	-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/4d/60/4d608169-9f90-4af4-8275-df67f4c82ab9?X-Amz-Expires=3600&X-Amz-Date=20150305T191551Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=fake_aws_key_id/20150305/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=210eff2c905bc416d281b017336c0ffa603f145c9df370bc7c2378ce161b2fae
X-VCAP-Request-ID: 0cfa9ece-f85d-47bc-9e67-8215bc2b1685
Content-Length: 0
X-Content-Type-Options: nosniff