Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-17fa3782-48d8-40f1-9b3a-a437c9a1415c

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2IiwiZW1haWwiOiJlbWFpbC00NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyMzEzNjA2fQ.hUeQjQp9NqUud5aZ7NeqioXffu8fVXYL7UdJJqrOw6k
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-17fa3782-48d8-40f1-9b3a-a437c9a1415c" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2IiwiZW1haWwiOiJlbWFpbC00NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyMzEzNjA2fQ.hUeQjQp9NqUud5aZ7NeqioXffu8fVXYL7UdJJqrOw6k" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-17fa3782-48d8-40f1-9b3a-a437c9a1415c",
  "type": "bits",
  "hash": null,
  "url": null,
  "state": "AWAITING_UPLOAD",
  "error": null,
  "created_at": "2015-05-15T16:53:26Z",
  "updated_at": null,
  "_links": {
    "self": {
      "href": "/v3/packages/guid-17fa3782-48d8-40f1-9b3a-a437c9a1415c"
    },
    "upload": {
      "href": "/v3/packages/guid-17fa3782-48d8-40f1-9b3a-a437c9a1415c/upload",
      "method": "POST"
    },
    "app": {
      "href": "/v3/apps/guid-d38a91fe-3e69-45b7-a76d-6746292fc0ce"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: cc24a237-d01b-474e-beb4-2af40ed8c7bc
Content-Length: 537
X-Content-Type-Options: nosniff