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/58891d6b-c8f1-416d-888f-7a726e7c2e75/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.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMiIsImVtYWlsIjoiZW1haWwtMTYwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2Mzd9.v-NdZSz7pC1JSO-1e6-kJ2KAIKf9glTgWRG73Sm1LcM
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/58891d6b-c8f1-416d-888f-7a726e7c2e75/download" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMiIsImVtYWlsIjoiZW1haWwtMTYwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2Mzd9.v-NdZSz7pC1JSO-1e6-kJ2KAIKf9glTgWRG73Sm1LcM" \
	-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/58/89/58891d6b-c8f1-416d-888f-7a726e7c2e75?X-Amz-Expires=3600&X-Amz-Date=20150507T233717Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=fake_aws_key_id/20150507/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=3cf0e12f61aeaf9d1b2c03e4dbb2cd48183a86c7354fb4499aa6d509e0a7aaf5
X-VCAP-Request-ID: bf2c0f81-6475-4886-bbcf-6821747cc14e
Content-Length: 0
X-Content-Type-Options: nosniff