Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-4992981c-ac29-45a6-8c0d-1b265ea86735

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MCIsImVtYWlsIjoiZW1haWwtMTg4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2Mzh9.pD50IjttKiTIO7qOiVIcBI1IDWaSDGPelaASOfaLcj0
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-4992981c-ac29-45a6-8c0d-1b265ea86735" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MCIsImVtYWlsIjoiZW1haWwtMTg4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2Mzh9.pD50IjttKiTIO7qOiVIcBI1IDWaSDGPelaASOfaLcj0" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-4992981c-ac29-45a6-8c0d-1b265ea86735",
  "type": "bits",
  "hash": null,
  "url": null,
  "state": "AWAITING_UPLOAD",
  "error": null,
  "created_at": "2015-05-07T23:37:18Z",
  "updated_at": null,
  "_links": {
    "self": {
      "href": "/v3/packages/guid-4992981c-ac29-45a6-8c0d-1b265ea86735"
    },
    "upload": {
      "href": "/v3/packages/guid-4992981c-ac29-45a6-8c0d-1b265ea86735/upload",
      "method": "POST"
    },
    "app": {
      "href": "/v3/apps/guid-48576606-221b-4b6a-a58c-7252c735b7d3"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f25a9c84-fe01-4739-8be0-b4427b67784c
Content-Length: 537
X-Content-Type-Options: nosniff