Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-ff810b80-99fb-4c3c-bf91-31bf78e17420

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzIiwiZW1haWwiOiJlbWFpbC0zM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU4NTk5NDIzfQ.AFdwGEF5fyInOIsl4DX-FIn9NhVv_rtwR8dQvBUzVoQ
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-ff810b80-99fb-4c3c-bf91-31bf78e17420" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzIiwiZW1haWwiOiJlbWFpbC0zM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU4NTk5NDIzfQ.AFdwGEF5fyInOIsl4DX-FIn9NhVv_rtwR8dQvBUzVoQ" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-ff810b80-99fb-4c3c-bf91-31bf78e17420",
  "type": "bits",
  "data": {
    "error": null,
    "hash": {
      "type": "sha1",
      "value": null
    }
  },
  "state": "AWAITING_UPLOAD",
  "created_at": "2016-03-14T22:30:23Z",
  "updated_at": null,
  "links": {
    "self": {
      "href": "/v3/packages/guid-ff810b80-99fb-4c3c-bf91-31bf78e17420"
    },
    "upload": {
      "href": "/v3/packages/guid-ff810b80-99fb-4c3c-bf91-31bf78e17420/upload",
      "method": "POST"
    },
    "download": {
      "href": "/v3/packages/guid-ff810b80-99fb-4c3c-bf91-31bf78e17420/download",
      "method": "GET"
    },
    "stage": {
      "href": "/v3/packages/guid-ff810b80-99fb-4c3c-bf91-31bf78e17420/droplets",
      "method": "POST"
    },
    "app": {
      "href": "/v3/apps/guid-7277b517-888e-4ca3-9a2c-99a94e2f0455"
    }
  }
}

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.012617
Content-Length: 840