Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-3fd6d86d-05a4-4a74-8141-5fafdd735e92

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0IiwiZW1haWwiOiJlbWFpbC0zNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5MDM4Njk4fQ.wdCLdHBexgtxAGQoUKxDzFKhQvAOUeLYleNNMBAF11s
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-3fd6d86d-05a4-4a74-8141-5fafdd735e92" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0IiwiZW1haWwiOiJlbWFpbC0zNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5MDM4Njk4fQ.wdCLdHBexgtxAGQoUKxDzFKhQvAOUeLYleNNMBAF11s" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-3fd6d86d-05a4-4a74-8141-5fafdd735e92",
  "type": "bits",
  "hash": null,
  "url": null,
  "state": "AWAITING_UPLOAD",
  "error": null,
  "created_at": "2015-04-07T19:11:38Z",
  "_links": {
    "self": {
      "href": "/v3/packages/guid-3fd6d86d-05a4-4a74-8141-5fafdd735e92"
    },
    "upload": {
      "href": "/v3/packages/guid-3fd6d86d-05a4-4a74-8141-5fafdd735e92/upload",
      "method": "POST"
    },
    "app": {
      "href": "/v3/apps/guid-73dc46a2-6798-4bd2-867f-6553fed3dcac"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 89f73252-da0b-4355-97b2-ef25fda2af5d
Content-Length: 515
X-Content-Type-Options: nosniff