curl --request GET \
--url https://api.topsort.com/public/v1/media-service/slots \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"orderBy": [
{
"dimension": "page_url",
"direction": "asc"
}
]
}'
{
"hasMore": true,
"nextPage": "SSBzb2xlbW5seSBzd2VhciB0aGF0IEkgYW0gdXAgdG8gbm8gZ29vZAo=",
"slots": [
{
"dimensions": {
"desktop": {
"height": 20,
"width": 20
},
"mobile": {
"height": 10,
"width": 10
}
},
"externalId": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isActive": true,
"marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"page": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"imageUrl": "<string>",
"marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Homepage",
"url": "https://app.example.com/main"
},
"position": "landing"
}
]
}
Get slots for a given marketplace.
curl --request GET \
--url https://api.topsort.com/public/v1/media-service/slots \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"orderBy": [
{
"dimension": "page_url",
"direction": "asc"
}
]
}'
{
"hasMore": true,
"nextPage": "SSBzb2xlbW5seSBzd2VhciB0aGF0IEkgYW0gdXAgdG8gbm8gZ29vZAo=",
"slots": [
{
"dimensions": {
"desktop": {
"height": 20,
"width": 20
},
"mobile": {
"height": 10,
"width": 10
}
},
"externalId": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isActive": true,
"marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"page": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"imageUrl": "<string>",
"marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Homepage",
"url": "https://app.example.com/main"
},
"position": "landing"
}
]
}
A valid API key generated in Topsort's UI.
The position of the slot.
landing
, category_search
, category
, search
The ID of the page. If provided, the slots will be filtered by the page.
Search query to be matched with page url, page name or slot id.
Pagination cursor as provided in an earlier response. If provided will fetch the next page of results.
Limits the number of records to be returned. The limit can not surpass 50 and its default is 25.
0 < x <= 50
Request body containing the orderBy dimensions and directions.
Successful Response
The response is of type object
.