Get All Collections

Get All Collections

GET https://api.moltin.com/v2/collections

Query Parameters

NameTypeDescription

include

string

collection, products

filter

string

Filter the results

Headers

NameTypeDescription

Authorization

string

The Bearer token to grant access to the API.

{
    "data": [
        {
            "id": "645f97aa-ae63-4ee9-9259-062e570ba064",
            "type": "collection",
            "status": "live",
            "name": "Winter Season",
            "slug": "winter-season",
            "description": "Our Winter Season is now live!",
            "meta": {
                "timestamps": {
                    "created_at": "2018-05-10T14:23:18+00:00",
                    "updated_at": "2018-05-10T14:23:18+00:00"
                }
            },
            "relationships": {}
        },
        {
            "id": "fbc05bbb-638a-4d36-998b-005c7bdf3dc9",
            "type": "collection",
            "status": "live",
            "name": "Winter Season",
            "slug": "winter-season",
            "description": "Our Winter Season is now live!",
            "meta": {
                "timestamps": {
                    "created_at": "2018-05-10T02:36:29+00:00",
                    "updated_at": "2018-05-10T02:36:29+00:00"
                }
            },
            "relationships": {}
        }
    ],
    "links": {
        "current": "https://api.moltin.com/v2/collections?page[limit]=100&page[offset]=0",
        "first": "https://api.moltin.com/v2/collections?page[limit]=100&page[offset]=0",
        "last": null
    },
    "meta": {
        "page": {
            "limit": 100,
            "offset": 0,
            "current": 1,
            "total": 1
        },
        "results": {
            "total": 2
        }
    }
}

You can use pagination with this resource. See: Settings for details.

curl -X GET https://api.moltin.com/v2/collections \
     -H "Authorization: Bearer XXXX"

Last updated