Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-7741446f-3fdd-4337-997a-c838d349c63d

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyMCIsImVtYWlsIjoiZW1haWwtMTQxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNDF9.eUnVq5z8JE8x67AE5paocqnilxxviyrlSbB2lAxalyU
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-7741446f-3fdd-4337-997a-c838d349c63d" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyMCIsImVtYWlsIjoiZW1haWwtMTQxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNDF9.eUnVq5z8JE8x67AE5paocqnilxxviyrlSbB2lAxalyU" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-7741446f-3fdd-4337-997a-c838d349c63d",
  "type": "bits",
  "hash": null,
  "url": null,
  "state": "AWAITING_UPLOAD",
  "error": null,
  "created_at": "2015-04-15T00:55:41Z",
  "updated_at": null,
  "_links": {
    "self": {
      "href": "/v3/packages/guid-7741446f-3fdd-4337-997a-c838d349c63d"
    },
    "upload": {
      "href": "/v3/packages/guid-7741446f-3fdd-4337-997a-c838d349c63d/upload",
      "method": "POST"
    },
    "app": {
      "href": "/v3/apps/guid-c79922f4-d38e-4c33-bf3f-73918327a29f"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: cd246c83-270c-4f1b-94e9-0b795bde6640
Content-Length: 537
X-Content-Type-Options: nosniff