Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-a31c4237-f7e9-4d32-bf39-0e3cb77a4019

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyIiwiZW1haWwiOiJlbWFpbC0yMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU2NDUyMjIxfQ.E-W4qt9CachSZL9na7YYlWMV2wUwhP6txjv-naPxmk4
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-a31c4237-f7e9-4d32-bf39-0e3cb77a4019" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyIiwiZW1haWwiOiJlbWFpbC0yMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU2NDUyMjIxfQ.E-W4qt9CachSZL9na7YYlWMV2wUwhP6txjv-naPxmk4" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-a31c4237-f7e9-4d32-bf39-0e3cb77a4019",
  "type": "bits",
  "data": {
    "error": null,
    "hash": {
      "type": "sha1",
      "value": null
    }
  },
  "state": "AWAITING_UPLOAD",
  "created_at": "2016-02-19T02:03:41Z",
  "updated_at": null,
  "links": {
    "self": {
      "href": "/v3/packages/guid-a31c4237-f7e9-4d32-bf39-0e3cb77a4019"
    },
    "upload": {
      "href": "/v3/packages/guid-a31c4237-f7e9-4d32-bf39-0e3cb77a4019/upload",
      "method": "POST"
    },
    "download": {
      "href": "/v3/packages/guid-a31c4237-f7e9-4d32-bf39-0e3cb77a4019/download",
      "method": "GET"
    },
    "stage": {
      "href": "/v3/packages/guid-a31c4237-f7e9-4d32-bf39-0e3cb77a4019/droplets",
      "method": "POST"
    },
    "app": {
      "href": "/v3/apps/guid-03d1bfe4-e541-458f-bde4-a0df6658c796"
    }
  }
}

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
X-Runtime: 0.012837
Content-Length: 840