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/d196d63a-837d-4b41-82f6-4f1a5a6c90a2/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.eyJ1c2VyX2lkIjoidWFhLWlkLTIwNiIsImVtYWlsIjoiZW1haWwtMTM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjc0ODA4NTN9.JuRSPgTu1HYJsBdhoENn0LfJJxd9THbEonKENas01X8
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/d196d63a-837d-4b41-82f6-4f1a5a6c90a2/download" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwNiIsImVtYWlsIjoiZW1haWwtMTM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjc0ODA4NTN9.JuRSPgTu1HYJsBdhoENn0LfJJxd9THbEonKENas01X8" \
	-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/d1/96/d196d63a-837d-4b41-82f6-4f1a5a6c90a2?X-Amz-Expires=3600&X-Amz-Date=20150320T182733Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=fake_aws_key_id/20150320/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=e5ff20b2f4fc89c783bc5fea349bdffacec92a235c9d9d094ec6f9c16c48521f
X-VCAP-Request-ID: 6f578bbe-2207-44ce-bdea-21c5d1fe31ba
Content-Length: 0
X-Content-Type-Options: nosniff