Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-53892f9d-34ee-4058-8557-d0a79fc3c7a2

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MSIsImVtYWlsIjoiZW1haWwtNzlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1MTQxMzY4Mn0.ZQ742ns9KbPBPxWDTR4CDMaD3LLPbgt-2faI6ffFs4k
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-53892f9d-34ee-4058-8557-d0a79fc3c7a2" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MSIsImVtYWlsIjoiZW1haWwtNzlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1MTQxMzY4Mn0.ZQ742ns9KbPBPxWDTR4CDMaD3LLPbgt-2faI6ffFs4k" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-53892f9d-34ee-4058-8557-d0a79fc3c7a2",
  "type": "bits",
  "data": {
    "error": null,
    "hash": {
      "type": "sha1",
      "value": null
    }
  },
  "state": "AWAITING_UPLOAD",
  "created_at": "2015-12-22T18:28:02Z",
  "updated_at": null,
  "links": {
    "self": {
      "href": "/v3/packages/guid-53892f9d-34ee-4058-8557-d0a79fc3c7a2"
    },
    "upload": {
      "href": "/v3/packages/guid-53892f9d-34ee-4058-8557-d0a79fc3c7a2/upload",
      "method": "POST"
    },
    "download": {
      "href": "/v3/packages/guid-53892f9d-34ee-4058-8557-d0a79fc3c7a2/download",
      "method": "GET"
    },
    "stage": {
      "href": "/v3/packages/guid-53892f9d-34ee-4058-8557-d0a79fc3c7a2/droplets",
      "method": "POST"
    },
    "app": {
      "href": "/v3/apps/guid-54f1e5ac-98d0-48d5-a4ab-0c30acbca264"
    }
  }
}

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