List Assets in Hub

This endpoint returns a paginated list of all the assets in a hub.

Request

GET https://v2.api.uberflip.com/hubs/{hubId}/assets
Path Parameters Description
hubId The unique identifier of the hub
Query Parameters Description
limit Number of results to return
page Page to show
sort

Sort results by one or more of the following fields:

  • id
  • created_at
  • modified_at

Response

The response will contain an assets collection:

Body Parameters Type Description
data Array The collection of assets
meta Object See: Pagination

Each item in the collection will have properties:

Body Parameters Type Description
id Integer The asset identifier
hub_id Integer The hub identifier
original_filename String The asset filename
url String The asset URL
created_at Date The asset created date
modified_at Date The asset last modified date

Examples

curl -H "Authorization: Bearer [Token]" \
-i https://v2.api.uberflip.com/hubs/24601/assets

Sample response:

HTTP/1.1 200 OK
Content-Type: application/json

{
    "data": [
        {
            "id": 83,
            "hub_id": 24601,
            "original_filename": "cute-hub.png",
            "url": "http://content.cdntwrk.com/files/aHViPTMxNCZjbWQ9aXRlbWVkaXRvcmltYWdlJmZpbGVuYW1lPWl0ZW1lZGl0b3JpbWFnZV81M2E4NmRiZDJmYzhlLnBuZyZ2ZXJzaW9uPTAwMDAmc2lnPWY1Y2JjMmY5NTRjN2E4OGVjOTYzY2UyM2QyNDU3MTg1",
            "created_at": "2014-06-23T14:11:09-0400",
            "modified_at": "2014-06-23T14:11:09-0400"
        },
        {
            "id": 2551,
            "hub_id": 24601,
            "original_filename": "bg.png",
            "url": "http://content.cdntwrk.com/files/aHViPTMxNCZjbWQ9aXRlbWVkaXRvcmltYWdlJmZpbGVuYW1lPWl0ZW1lZGl0b3JpbWFnZV81NDIzMmUxMDUyMmQ2LnBuZyZ2ZXJzaW9uPTAwMDAmc2lnPTAxMGE0Y2MxNTVjOWE1NGZkMDNlZWVjMjI2MzhjNDI4",
            "created_at": "2014-09-24T16:48:16-0400",
            "modified_at": "2014-09-24T16:48:16-0400"
        }
    ],
    "meta": {
        ...
    }
}