curl --request GET \
--url https://api.topsort.com/public/v1/catalog-search-service/catalogs/categories \
--header 'Authorization: Bearer <token>'
{
"hasMore": true,
"nextPage": "SSBzb2xlbW5seSBzd2VhciB0aGF0IEkgYW0gdXAgdG8gbm8gZ29vZAo=",
"response": [
{
"globalId": "CAT-12345",
"id": "ahEDqV5uhjj8",
"metadata": {
"associatedProducts": 100,
"description": "All drinks available in the marketplace.",
"globalName": "Beers",
"path": "Driks/Alcoholic/Beers",
"showInStore": true
},
"name": "Beers/Belgian",
"parentId": "bneEmHKG2yUe"
}
]
}
Get multiple categories from the catalog.
curl --request GET \
--url https://api.topsort.com/public/v1/catalog-search-service/catalogs/categories \
--header 'Authorization: Bearer <token>'
{
"hasMore": true,
"nextPage": "SSBzb2xlbW5seSBzd2VhciB0aGF0IEkgYW0gdXAgdG8gbm8gZ29vZAo=",
"response": [
{
"globalId": "CAT-12345",
"id": "ahEDqV5uhjj8",
"metadata": {
"associatedProducts": 100,
"description": "All drinks available in the marketplace.",
"globalName": "Beers",
"path": "Driks/Alcoholic/Beers",
"showInStore": true
},
"name": "Beers/Belgian",
"parentId": "bneEmHKG2yUe"
}
]
}
A valid API key generated in Topsort's UI.
Pagination cursor as provided in an earlier response. If provided will fetch the next page of results.
Successful Response
The response is of type object
.