Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-09d0a103-53db-4178-918e-5378ef1c7cf6

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4OCIsImVtYWlsIjoiZW1haWwtMjU5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5OTB9.y9HmJguBkWXEquHojO2Z2tbRf2ezwhXtpAT-Dg6K3LE
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-09d0a103-53db-4178-918e-5378ef1c7cf6" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4OCIsImVtYWlsIjoiZW1haWwtMjU5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5OTB9.y9HmJguBkWXEquHojO2Z2tbRf2ezwhXtpAT-Dg6K3LE" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-09d0a103-53db-4178-918e-5378ef1c7cf6",
  "type": "bits",
  "data": {
    "error": null,
    "hash": {
      "type": "sha1",
      "value": null
    }
  },
  "state": "AWAITING_UPLOAD",
  "created_at": "2016-01-13T17:29:50Z",
  "updated_at": null,
  "links": {
    "self": {
      "href": "/v3/packages/guid-09d0a103-53db-4178-918e-5378ef1c7cf6"
    },
    "upload": {
      "href": "/v3/packages/guid-09d0a103-53db-4178-918e-5378ef1c7cf6/upload",
      "method": "POST"
    },
    "download": {
      "href": "/v3/packages/guid-09d0a103-53db-4178-918e-5378ef1c7cf6/download",
      "method": "GET"
    },
    "stage": {
      "href": "/v3/packages/guid-09d0a103-53db-4178-918e-5378ef1c7cf6/droplets",
      "method": "POST"
    },
    "app": {
      "href": "/v3/apps/guid-02a37b28-1444-48e1-9397-ceeb73f0f22c"
    }
  }
}

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