Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-9fc05487-f734-44a1-bf58-1eb73034a9bf

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYiLCJlbWFpbCI6ImVtYWlsLTZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNzQ4MDg0MH0._YYwi6uGAClWWkBC5j4_h32OmrLSM-5qiMU7dU494Xs
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-9fc05487-f734-44a1-bf58-1eb73034a9bf" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYiLCJlbWFpbCI6ImVtYWlsLTZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNzQ4MDg0MH0._YYwi6uGAClWWkBC5j4_h32OmrLSM-5qiMU7dU494Xs" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-9fc05487-f734-44a1-bf58-1eb73034a9bf",
  "type": "bits",
  "hash": null,
  "url": null,
  "state": "AWAITING_UPLOAD",
  "error": null,
  "created_at": "2015-03-20T18:27:20Z",
  "_links": {
    "self": {
      "href": "/v3/packages/guid-9fc05487-f734-44a1-bf58-1eb73034a9bf"
    },
    "upload": {
      "href": "/v3/packages/guid-9fc05487-f734-44a1-bf58-1eb73034a9bf/upload"
    },
    "app": {
      "href": "/v3/apps/guid-1238d9c6-e84e-4a06-9c91-3df0e49e1b16"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 43d0fedf-eb93-4fbd-b9cd-164f9ee07d84
Content-Length: 491
X-Content-Type-Options: nosniff