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.eyJ1c2VyX2lkIjoidWFhLWlkLTMwNCIsImVtYWlsIjoiZW1haWwtMjA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzR9.aCwQoUtNZDaDEmcQ7xP61pCivPyydm3V5lXytnxzcRI
Host: example.org
Cookie: 

Route

GET /v3/packages/guid-bc3d9022-4854-4e0f-96e9-a48bbc26d164

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-bc3d9022-4854-4e0f-96e9-a48bbc26d164" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwNCIsImVtYWlsIjoiZW1haWwtMjA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzR9.aCwQoUtNZDaDEmcQ7xP61pCivPyydm3V5lXytnxzcRI" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 1a086076-64bc-4530-8431-cbf0633d41c9
Content-Length: 577
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "guid": "guid-bc3d9022-4854-4e0f-96e9-a48bbc26d164",
  "type": "bits",
  "hash": null,
  "url": null,
  "state": "AWAITING_UPLOAD",
  "error": null,
  "created_at": "2015-02-10T01:42:54Z",
  "_links": {
    "self": {
      "href": "/v3/packages/guid-bc3d9022-4854-4e0f-96e9-a48bbc26d164"
    },
    "upload": {
      "href": "/v3/packages/guid-bc3d9022-4854-4e0f-96e9-a48bbc26d164/upload"
    },
    "app": {
      "href": "/v3/apps/guid-7e4341c7-8199-4aad-9e82-bec5859fce44"
    },
    "space": {
      "href": "/v2/spaces/3eb28bc8-0bcb-42e2-b602-c69e1ee6276c"
    }
  }
}