Auction examples
- Running auctions
- Sponsored listings
- Sponsored banners
- Sponsored brands
Asset examples
Webhook examples
Toptimize
Assets API
Billing API
- GETGet Billing Contacts
- GETGet Billing Contact
- PUTUpsert Billing Contact
- GETGet Campaign Billing Contact
- PUTUpsert Campaign Billing Contact
- GETGet Marketplace Credit Limit
- POSTSet Marketplace Credit Limit
- PUTUpsert Vendor Billing Contact
- GETGet Vendor Charges
- GETGet Vendor Account Activity
- GETGet Vendor Balance
- POSTAdd Vendor Balance
- POSTBurn Vendor Balance
- GETGet Vendor Credit History
- GETGet Vendor Credit Limit
- POSTSet Vendor Credit Limit
- DELDelete Vendor Billing Contact
- GETGet Vendor Wallets
- POSTCreate Wallet
- POSTAdjust Wallet Balance
Campaign API
- GETGet Campaigns
- POSTCreate Campaign
- GETGet Campaign By Id
- DELDelete Campaign By Id
- PATCHUpdate Campaign By Id
- GETGet Campaign Bids
- POSTCreate Campaign Bids
- DELDelete Campaign Bid By Id
- PATCHUpdate Campaign Bid By Id
- POST[BETA] Get estimated clicks of a future campaign for a given vendor
- GETGet Products In Campaign
- GETGet Sponsored Products
Catalog API
Invitation API
Modal API
Reporting API
- GETGet Campaign Report
- GETGet Campaign Daily Report
- GETGet Campaign Report By Product
- GETGet Product Report
- GETGet Product Daily Report
- GETGet Marketplace Interactions Report
- GETGet Marketplace Report
- GETGet Marketplace Campaigns Kpis
- GETGet Marketplace Daily Report
- GETGet Marketplace Vendors Kpis
- GETGet Vendor Report
- GETGet Vendor Daily Report
Segments Service
Toppie API
- GET[BETA] Get Agency Account Balance
- GET[BETA] Get Agency Account Top-ups
- GET[BETA] Get Toppie Campaigns
- POST[BETA] Create Toppie Campaign
- GET[BETA] Get Toppie Campaign Details
- PATCH[BETA] Update Toppie Campaign
- GET[BETA] Get Toppie Campaign Bids
- GETList Account Products
- GETGet Agency Account Report
- GETGet Agency Account Activity
- GETGet Agency Account Campaigns
- GETGet Account Campaigns By Ids
- GETGet Agency Campaign Report
- GETGet Campaign Report Per Product
Create sponsored brand auctions
curl --request POST \
--url https://api.topsort.com/v2/auctions/sponsored-brand \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"auctions": [
{
"winners": 2,
"placementId": "<string>",
"triggers": {
"category": {
"id": "c_yogurt"
},
"products": {
"ids": [
"p_SA0238"
],
"qualityScores": [
0.75
]
}
},
"opaqueUserId": "71303ce0-de89-496d-8270-6434589615e8"
}
]
}'
{
"results": [
{
"winners": [
{
"rank": 2,
"productId": "p_Mfk15",
"resolvedBidId": "WyJiX01mazE1IiwiMTJhNTU4MjgtOGVhZC00Mjk5LTgzMjctY2ViYjAwMmEwZmE4IiwibGlzdGluZ3MiLCJkZWZhdWx0IiwiIl0=",
"title": "<string>",
"vendorId": "v_8fj2D",
"assets": [
{
"url": "<string>",
"role": "<string>",
"contentType": "<string>",
"contentLength": 123,
"width": 123,
"height": 123
}
]
}
],
"error": false
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Describes the intent of running a sponsored brand auction.
Exactly one of the following fields must be set:
products
category
Specifies the maximum number of auction winners that should be returned.
x >= 1
A category for the purpose of running an auction.
The category ID of the bids that will participate in an auction.
1
"c_yogurt"
An array of product IDs that should participate in the auction. We recommend sending no more than 500 products per auction.
The marketplace's ID of a product which will participate in the auction. These ID must match those in the catalog integration with Topsort.
An array of marketplace defined quality scores, each corresponding to the product ID with matching array index.
If given, these values will be combined with our internal quality scores to provide a score
that better represents the relevance of the participating products.
Note that the length of this array must be the same as the length of the ids
array and
that the values must be between 0 and 1.
The opaque user ID is an anonymized unique identifier that maps to the original user ID without revealing the original value. This identifier allows Topsort to correlate user activity between auctions and user interactions, independent of the user's logged-in status. For apps or sites where users might interact while logged out, we recommend generating a random identifier (UUIDv7) on the first load, storing it on local storage (cookie, local storage, etc), and letting it live for at least a year. Otherwise, if your users are always logged in for interactions, you may use a hash of your customer ID. Correct purchase attribution requires long-lived opaque user IDs consistent between auction and event requests.
"71303ce0-de89-496d-8270-6434589615e8"
Response
Array of winner objects in order from highest to lowest bid. It will be empty if there were no qualifying bids or if there was an error.
Where the product's bid ranked in the auction. One-based, so the product with rank 1 won the auction. In an auction response, the winners array is sorted so rank will match the entry's index.
x >= 1
The marketplace's ID of the winning entity, depending on the target of the campaign.
"p_Mfk15"
An opaque Topsort ID to be used when this item is interacted with.
"WyJiX01mazE1IiwiMTJhNTU4MjgtOGVhZC00Mjk5LTgzMjctY2ViYjAwMmEwZmE4IiwibGlzdGluZ3MiLCJkZWZhdWx0IiwiIl0="
Assets used to render the sponsored brand ad.
A vendor provided asset that the marketplace has to render. The asset will be served by Topsort's CDN.
The role of the asset. It can be either logo
or image
.
The asset MIME type.
The size of the asset in bytes.
The asset width in pixels.
The asset height in pixels.
An optional title for the sponsored brand selected when creating the campaign.
The ID of the vendor associated with this sponsored brand winner.
"v_8fj2D"
A boolean indicating whether this auction was resolved successfully.
false
curl --request POST \
--url https://api.topsort.com/v2/auctions/sponsored-brand \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"auctions": [
{
"winners": 2,
"placementId": "<string>",
"triggers": {
"category": {
"id": "c_yogurt"
},
"products": {
"ids": [
"p_SA0238"
],
"qualityScores": [
0.75
]
}
},
"opaqueUserId": "71303ce0-de89-496d-8270-6434589615e8"
}
]
}'
{
"results": [
{
"winners": [
{
"rank": 2,
"productId": "p_Mfk15",
"resolvedBidId": "WyJiX01mazE1IiwiMTJhNTU4MjgtOGVhZC00Mjk5LTgzMjctY2ViYjAwMmEwZmE4IiwibGlzdGluZ3MiLCJkZWZhdWx0IiwiIl0=",
"title": "<string>",
"vendorId": "v_8fj2D",
"assets": [
{
"url": "<string>",
"role": "<string>",
"contentType": "<string>",
"contentLength": 123,
"width": 123,
"height": 123
}
]
}
],
"error": false
}
]
}