Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-61eb7e35-977c-4431-9296-2dd64df1a6fc

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MyIsImVtYWlsIjoiZW1haWwtODFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMzk4MTEwNH0.BgNDud8hCYyOHA-_dAs-0F5gm0n50hAzqZM1-a2enCk
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-61eb7e35-977c-4431-9296-2dd64df1a6fc" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MyIsImVtYWlsIjoiZW1haWwtODFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMzk4MTEwNH0.BgNDud8hCYyOHA-_dAs-0F5gm0n50hAzqZM1-a2enCk" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-61eb7e35-977c-4431-9296-2dd64df1a6fc",
  "type": "bits",
  "hash": null,
  "url": null,
  "state": "AWAITING_UPLOAD",
  "error": null,
  "created_at": "2015-06-04T00:05:04Z",
  "updated_at": null,
  "_links": {
    "self": {
      "href": "/v3/packages/guid-61eb7e35-977c-4431-9296-2dd64df1a6fc"
    },
    "upload": {
      "href": "/v3/packages/guid-61eb7e35-977c-4431-9296-2dd64df1a6fc/upload",
      "method": "POST"
    },
    "app": {
      "href": "/v3/apps/guid-a0e11e14-4c11-45ee-a400-b6302ebdf1e4"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 64c3f868-a34c-46f5-97c6-f884434dcb30
Content-Length: 537
X-Content-Type-Options: nosniff