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/39d031f6-58c2-4b2a-b678-c19d01bb7ad4/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.eyJ1c2VyX2lkIjoidWFhLWlkLTIyMCIsImVtYWlsIjoiZW1haWwtMTUxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MDV9.SRdA5nq9LDbmeKd2Uds0ha7WJwnOr5Fsl8vZQZPUV5w
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/39d031f6-58c2-4b2a-b678-c19d01bb7ad4/download" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyMCIsImVtYWlsIjoiZW1haWwtMTUxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MDV9.SRdA5nq9LDbmeKd2Uds0ha7WJwnOr5Fsl8vZQZPUV5w" \
	-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/39/d0/39d031f6-58c2-4b2a-b678-c19d01bb7ad4?X-Amz-Expires=3600&X-Amz-Date=20150310T231146Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=fake_aws_key_id/20150310/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=7ffee4953a11d5fefdbea33903eb2dda8dca134acd03cde25dcb8fa15a6251f4
X-VCAP-Request-ID: fa7601f1-13ce-45b0-914b-c4486ffea39d
Content-Length: 0
X-Content-Type-Options: nosniff