Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-e30ca0c2-1f3a-483d-9be4-92dbe6c69251

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTciLCJlbWFpbCI6ImVtYWlsLTdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMjc3NDk3OH0.yZXnkOq6zM2NjrKo3uQg69YPaOh4FQ9AcWSGmhdQvkA
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-e30ca0c2-1f3a-483d-9be4-92dbe6c69251" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTciLCJlbWFpbCI6ImVtYWlsLTdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMjc3NDk3OH0.yZXnkOq6zM2NjrKo3uQg69YPaOh4FQ9AcWSGmhdQvkA" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-e30ca0c2-1f3a-483d-9be4-92dbe6c69251",
  "type": "bits",
  "hash": null,
  "url": null,
  "state": "AWAITING_UPLOAD",
  "error": null,
  "created_at": "2015-05-21T01:02:58Z",
  "updated_at": null,
  "_links": {
    "self": {
      "href": "/v3/packages/guid-e30ca0c2-1f3a-483d-9be4-92dbe6c69251"
    },
    "upload": {
      "href": "/v3/packages/guid-e30ca0c2-1f3a-483d-9be4-92dbe6c69251/upload",
      "method": "POST"
    },
    "app": {
      "href": "/v3/apps/guid-5150bf43-2751-4a3d-b0e8-366b7426b26c"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 57c58123-6fb5-4872-855f-46c3696a8256
Content-Length: 537
X-Content-Type-Options: nosniff