Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-6118575c-5fee-4e3f-858f-988303e206ba

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2OCIsImVtYWlsIjoiZW1haWwtMTE5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2NjZ9.XbyuBgWMIbjaGF8HavLsvQz76ptIEQUcD6CMNfQY13s
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-6118575c-5fee-4e3f-858f-988303e206ba" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2OCIsImVtYWlsIjoiZW1haWwtMTE5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2NjZ9.XbyuBgWMIbjaGF8HavLsvQz76ptIEQUcD6CMNfQY13s" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-6118575c-5fee-4e3f-858f-988303e206ba",
  "type": "bits",
  "hash": null,
  "url": null,
  "state": "AWAITING_UPLOAD",
  "error": null,
  "created_at": "2015-03-03T00:51:06Z",
  "_links": {
    "self": {
      "href": "/v3/packages/guid-6118575c-5fee-4e3f-858f-988303e206ba"
    },
    "upload": {
      "href": "/v3/packages/guid-6118575c-5fee-4e3f-858f-988303e206ba/upload"
    },
    "app": {
      "href": "/v3/apps/guid-628b82c3-7653-4fd9-8d3e-a6e224be33dd"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 35d8fb17-037a-48cd-9d2f-f3c431804953
Content-Length: 491
X-Content-Type-Options: nosniff