Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-ebaae129-a8ee-43cf-a0a6-734c7ed0d1b4

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMiIsImVtYWlsIjoiZW1haWwtNzBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1NDQ1MTYxMn0.ay3lKehPzwQa-5DJf79MXYP6uLZl38HDNFySC5nEXHY
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-ebaae129-a8ee-43cf-a0a6-734c7ed0d1b4" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMiIsImVtYWlsIjoiZW1haWwtNzBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1NDQ1MTYxMn0.ay3lKehPzwQa-5DJf79MXYP6uLZl38HDNFySC5nEXHY" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-ebaae129-a8ee-43cf-a0a6-734c7ed0d1b4",
  "type": "bits",
  "data": {
    "error": null,
    "hash": {
      "type": "sha1",
      "value": null
    }
  },
  "state": "AWAITING_UPLOAD",
  "created_at": "2016-01-26T22:20:12Z",
  "updated_at": null,
  "links": {
    "self": {
      "href": "/v3/packages/guid-ebaae129-a8ee-43cf-a0a6-734c7ed0d1b4"
    },
    "upload": {
      "href": "/v3/packages/guid-ebaae129-a8ee-43cf-a0a6-734c7ed0d1b4/upload",
      "method": "POST"
    },
    "download": {
      "href": "/v3/packages/guid-ebaae129-a8ee-43cf-a0a6-734c7ed0d1b4/download",
      "method": "GET"
    },
    "stage": {
      "href": "/v3/packages/guid-ebaae129-a8ee-43cf-a0a6-734c7ed0d1b4/droplets",
      "method": "POST"
    },
    "app": {
      "href": "/v3/apps/guid-6ca8ed35-67b6-4139-afe3-aeda3b26d647"
    }
  }
}

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