Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-eece02eb-c600-4232-b320-e6cdf283ff85

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NSIsImVtYWlsIjoiZW1haWwtMTgxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyNzR9.OmTPEjtKQxkwmHla0XWacv9zrITbZQzN2gt3EZOZG4w
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-eece02eb-c600-4232-b320-e6cdf283ff85" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NSIsImVtYWlsIjoiZW1haWwtMTgxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyNzR9.OmTPEjtKQxkwmHla0XWacv9zrITbZQzN2gt3EZOZG4w" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-eece02eb-c600-4232-b320-e6cdf283ff85",
  "type": "bits",
  "data": {
    "error": null,
    "hash": {
      "type": "sha1",
      "value": null
    }
  },
  "state": "AWAITING_UPLOAD",
  "created_at": "2016-01-19T19:41:14Z",
  "updated_at": null,
  "links": {
    "self": {
      "href": "/v3/packages/guid-eece02eb-c600-4232-b320-e6cdf283ff85"
    },
    "upload": {
      "href": "/v3/packages/guid-eece02eb-c600-4232-b320-e6cdf283ff85/upload",
      "method": "POST"
    },
    "download": {
      "href": "/v3/packages/guid-eece02eb-c600-4232-b320-e6cdf283ff85/download",
      "method": "GET"
    },
    "stage": {
      "href": "/v3/packages/guid-eece02eb-c600-4232-b320-e6cdf283ff85/droplets",
      "method": "POST"
    },
    "app": {
      "href": "/v3/apps/guid-e04f7f7e-1b14-48ef-887d-3be8b87d69a9"
    }
  }
}

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