Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-c1c5f769-5d53-429b-8fcb-958ebfc733a0

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NSIsImVtYWlsIjoiZW1haWwtOTVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1ODg1NTY2OX0.zy2ulidHH2yVcngMXmZOoqbIped5ku8S4q96l2pUMZU
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-c1c5f769-5d53-429b-8fcb-958ebfc733a0" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NSIsImVtYWlsIjoiZW1haWwtOTVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1ODg1NTY2OX0.zy2ulidHH2yVcngMXmZOoqbIped5ku8S4q96l2pUMZU" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-c1c5f769-5d53-429b-8fcb-958ebfc733a0",
  "type": "bits",
  "data": {
    "error": null,
    "hash": {
      "type": "sha1",
      "value": null
    }
  },
  "state": "AWAITING_UPLOAD",
  "created_at": "2016-03-17T21:41:09Z",
  "updated_at": null,
  "links": {
    "self": {
      "href": "/v3/packages/guid-c1c5f769-5d53-429b-8fcb-958ebfc733a0"
    },
    "upload": {
      "href": "/v3/packages/guid-c1c5f769-5d53-429b-8fcb-958ebfc733a0/upload",
      "method": "POST"
    },
    "download": {
      "href": "/v3/packages/guid-c1c5f769-5d53-429b-8fcb-958ebfc733a0/download",
      "method": "GET"
    },
    "stage": {
      "href": "/v3/packages/guid-c1c5f769-5d53-429b-8fcb-958ebfc733a0/droplets",
      "method": "POST"
    },
    "app": {
      "href": "/v3/apps/guid-9e560279-f230-4f93-9a86-c52c2846a733"
    }
  }
}

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