Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Fields

Name Description Default Valid Values Example Values

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0OSIsImVtYWlsIjoiZW1haWwtMTgxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE2OTl9.T8R7P8PRQ-jx0Nq-_BfOKY5aDDHzeuVt1ihlIw8TtJE
Host: example.org
Cookie: 

Route

GET /v3/packages/guid-fcfeee91-3296-47ce-83d4-d81a6956348a

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-fcfeee91-3296-47ce-83d4-d81a6956348a" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0OSIsImVtYWlsIjoiZW1haWwtMTgxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE2OTl9.T8R7P8PRQ-jx0Nq-_BfOKY5aDDHzeuVt1ihlIw8TtJE" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b6642a3c-bdcf-4c43-9705-e676b4913502
Content-Length: 577
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "guid": "guid-fcfeee91-3296-47ce-83d4-d81a6956348a",
  "type": "bits",
  "hash": null,
  "url": null,
  "state": "AWAITING_UPLOAD",
  "error": null,
  "created_at": "2015-02-13T22:34:59Z",
  "_links": {
    "self": {
      "href": "/v3/packages/guid-fcfeee91-3296-47ce-83d4-d81a6956348a"
    },
    "upload": {
      "href": "/v3/packages/guid-fcfeee91-3296-47ce-83d4-d81a6956348a/upload"
    },
    "app": {
      "href": "/v3/apps/guid-3d95a011-d6f2-407c-a63c-d4774cb7352c"
    },
    "space": {
      "href": "/v2/spaces/5c59ece6-ef17-4e1a-a389-324ef91f2d71"
    }
  }
}