Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-b638d607-0e63-49dd-a64b-32586a4ab355

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NyIsImVtYWlsIjoiZW1haWwtMTU5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5Njh9.sBKNG72kvvc1v8vVZH2Um2wGHZR3XT6nIz8zW7Wfi1w
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-b638d607-0e63-49dd-a64b-32586a4ab355" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NyIsImVtYWlsIjoiZW1haWwtMTU5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5Njh9.sBKNG72kvvc1v8vVZH2Um2wGHZR3XT6nIz8zW7Wfi1w" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-b638d607-0e63-49dd-a64b-32586a4ab355",
  "type": "bits",
  "hash": null,
  "url": null,
  "state": "AWAITING_UPLOAD",
  "error": null,
  "created_at": "2015-03-18T22:52:48Z",
  "_links": {
    "self": {
      "href": "/v3/packages/guid-b638d607-0e63-49dd-a64b-32586a4ab355"
    },
    "upload": {
      "href": "/v3/packages/guid-b638d607-0e63-49dd-a64b-32586a4ab355/upload"
    },
    "app": {
      "href": "/v3/apps/guid-fde46309-32b5-42f6-83a4-45f755b6b629"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6e76376e-c63c-4e73-9b4e-fc48a0815de4
Content-Length: 491
X-Content-Type-Options: nosniff