Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-2a3c0f9a-9046-4da6-ab4f-a68bc97b36ec

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMSIsImVtYWlsIjoiZW1haWwtMTYzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDh9.cjWRSDfXJI1XsanhHiwHCZajCyczS7vFETmD9gLQJv0
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-2a3c0f9a-9046-4da6-ab4f-a68bc97b36ec" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMSIsImVtYWlsIjoiZW1haWwtMTYzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDh9.cjWRSDfXJI1XsanhHiwHCZajCyczS7vFETmD9gLQJv0" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-2a3c0f9a-9046-4da6-ab4f-a68bc97b36ec",
  "type": "bits",
  "hash": null,
  "url": null,
  "state": "AWAITING_UPLOAD",
  "error": null,
  "created_at": "2015-03-05T19:15:48Z",
  "_links": {
    "self": {
      "href": "/v3/packages/guid-2a3c0f9a-9046-4da6-ab4f-a68bc97b36ec"
    },
    "upload": {
      "href": "/v3/packages/guid-2a3c0f9a-9046-4da6-ab4f-a68bc97b36ec/upload"
    },
    "app": {
      "href": "/v3/apps/guid-1951315c-ad7b-4d06-8a27-3febc3643d42"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b97b20cb-c4fd-44ef-b3a7-2ee0f5ba3787
Content-Length: 491
X-Content-Type-Options: nosniff