GET
/
public
/
v1
/
media-service
/
slots
Get Slots
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"
    }
  ]
}

Authorizations

Authorization
string
header
required

A valid API key generated in Topsort's UI.

Query Parameters

position
enum<string>
required

The position of the slot.

Available options:
landing,
category_search,
category,
search
page_id
string<uuid>

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.

next_page
string

Pagination cursor as provided in an earlier response. If provided will fetch the next page of results.

limit
integer
default:25

Limits the number of records to be returned. The limit can not surpass 50 and its default is 25.

Required range: 0 < x <= 50

Body

application/json

Request body containing the orderBy dimensions and directions.

Response

200
application/json

Successful Response

The response is of type object.