Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-a850bc45-e4a5-4f5e-b4d0-1e92382215c1

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU1IiwiZW1haWwiOiJlbWFpbC01M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2NjMzODk4fQ.0WWj_D5_0EjCkwGFfOAFRVFw5kUkj0ooTV5tHNbtaRQ
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-a850bc45-e4a5-4f5e-b4d0-1e92382215c1" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU1IiwiZW1haWwiOiJlbWFpbC01M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2NjMzODk4fQ.0WWj_D5_0EjCkwGFfOAFRVFw5kUkj0ooTV5tHNbtaRQ" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-a850bc45-e4a5-4f5e-b4d0-1e92382215c1",
  "type": "bits",
  "hash": null,
  "url": null,
  "state": "AWAITING_UPLOAD",
  "error": null,
  "created_at": "2015-03-10T23:11:38Z",
  "_links": {
    "self": {
      "href": "/v3/packages/guid-a850bc45-e4a5-4f5e-b4d0-1e92382215c1"
    },
    "upload": {
      "href": "/v3/packages/guid-a850bc45-e4a5-4f5e-b4d0-1e92382215c1/upload"
    },
    "app": {
      "href": "/v3/apps/guid-2a6c9203-0dc1-4a08-b630-1fdc68ff9c70"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 92e38f8a-200c-473f-be68-3cfd97808f4b
Content-Length: 491
X-Content-Type-Options: nosniff