Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-270162df-d61c-4d11-83e9-a5df16c84f18

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyMCIsImVtYWlsIjoiZW1haWwtMTY5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTR9.AW7fuw-VRi2y-wY80TLK7rLTRQ1w0ZleAp9z8RMPhqw
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-270162df-d61c-4d11-83e9-a5df16c84f18" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyMCIsImVtYWlsIjoiZW1haWwtMTY5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTR9.AW7fuw-VRi2y-wY80TLK7rLTRQ1w0ZleAp9z8RMPhqw" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-270162df-d61c-4d11-83e9-a5df16c84f18",
  "type": "bits",
  "hash": null,
  "url": null,
  "state": "AWAITING_UPLOAD",
  "error": null,
  "created_at": "2015-06-16T23:40:54Z",
  "updated_at": null,
  "_links": {
    "self": {
      "href": "/v3/packages/guid-270162df-d61c-4d11-83e9-a5df16c84f18"
    },
    "upload": {
      "href": "/v3/packages/guid-270162df-d61c-4d11-83e9-a5df16c84f18/upload",
      "method": "POST"
    },
    "app": {
      "href": "/v3/apps/guid-a847be8b-cad4-4301-ba00-44e8dbe21f6c"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8c58a241-c2c3-4b5c-b8f5-96f3f4d004f3
Content-Length: 537
X-Content-Type-Options: nosniff