Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

List associated packages

GET /v3/apps/:guid/packages

Request

Route

GET /v3/apps/guid-e017e851-dfd3-4db1-8748-9f047ccf23a7/packages

Parameters

Name Description Valid Values Example Values
page Page to display
  • >= 1
per_page Number of results per page
  • 1-5000

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwNiIsImVtYWlsIjoiZW1haWwtMjEyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2OTJ9.rbx6x3Y4CHt1Pu355MOiepJYKqCRXbX0U1aHYD_l5DI
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-e017e851-dfd3-4db1-8748-9f047ccf23a7/packages" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwNiIsImVtYWlsIjoiZW1haWwtMjEyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2OTJ9.rbx6x3Y4CHt1Pu355MOiepJYKqCRXbX0U1aHYD_l5DI" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "pagination": {
    "total_results": 1,
    "first": {
      "href": "/v3/apps/guid-e017e851-dfd3-4db1-8748-9f047ccf23a7/packages?page=1&per_page=50"
    },
    "last": {
      "href": "/v3/apps/guid-e017e851-dfd3-4db1-8748-9f047ccf23a7/packages?page=1&per_page=50"
    },
    "next": null,
    "previous": null
  },
  "resources": [
    {
      "guid": "guid-82436b64-0819-4454-b95b-97df202f450a",
      "type": "bits",
      "data": {
        "error": null,
        "hash": {
          "type": "sha1",
          "value": null
        }
      },
      "state": "AWAITING_UPLOAD",
      "created_at": "2015-12-22T18:28:12Z",
      "updated_at": null,
      "links": {
        "self": {
          "href": "/v3/packages/guid-82436b64-0819-4454-b95b-97df202f450a"
        },
        "upload": {
          "href": "/v3/packages/guid-82436b64-0819-4454-b95b-97df202f450a/upload",
          "method": "POST"
        },
        "download": {
          "href": "/v3/packages/guid-82436b64-0819-4454-b95b-97df202f450a/download",
          "method": "GET"
        },
        "stage": {
          "href": "/v3/packages/guid-82436b64-0819-4454-b95b-97df202f450a/droplets",
          "method": "POST"
        },
        "app": {
          "href": "/v3/apps/guid-e017e851-dfd3-4db1-8748-9f047ccf23a7"
        }
      }
    }
  ]
}

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.014114
Content-Length: 1320