curl --request POST \
--url https://api.topsort.com/public/v1/media-service/slots \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"dimensions": {
"desktop": {
"height": 1,
"width": 1
},
"mobile": {
"height": 1,
"width": 1
}
},
"position": "category",
"slotId": "sidebar-2"
}'
{
"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"
}
Create a new slot.
curl --request POST \
--url https://api.topsort.com/public/v1/media-service/slots \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"dimensions": {
"desktop": {
"height": 1,
"width": 1
},
"mobile": {
"height": 1,
"width": 1
}
},
"position": "category",
"slotId": "sidebar-2"
}'
{
"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.
Category or search slot create request.
Successful Response
The ad config slot model