Skip to main content
The Toppie API enables secure, programmatic access to Toppie’s unified retail media platform. Whether you’re automating campaign management, building custom dashboards, or integrating Toppie data into existing workflows, the API provides the foundation for scaling retail media operations beyond the UI.
The Toppie API provides public endpoints to manage and analyze agency accounts, campaigns, and financial activity across multiple retail partners.

Toppie API Reference

Endpoints, authentication, permissions, errors, and rate limits

Key Benefits

  • Automate Campaign Operations - Build workflows to manage campaigns across retailers without manual intervention
  • Custom Integrations - Connect Toppie data to BI tools and internal systems
  • Secure Access Control - Each key is scoped to one account and can be deleted at any time

API Capabilities

The Toppie API provides comprehensive functionality through the following endpoints:
List the products available to your account and use their ids as campaign targets. The catalog is read only through the API.
Create, update, pause, and delete Sponsored Listings. Set the budget, product targets, and target ROAS. Banner campaigns can be read and deleted through the API, and are created and updated in the Toppie UI.
Retrieve performance data including impressions, clicks, purchases, ROAS, and ad spend for the account, each campaign, and each product. Reports return a fixed set of metrics for the date range you choose.
Set and update campaign budgets, and read the account’s transaction history: daily ad spend and ad credit top-ups. The API has no endpoint for the account balance or for billing.
Create and update support Sponsored Listings only. Banner campaigns are included in read responses and can be deleted, but are created and updated in the Toppie UI.Requests take product target ids. Bids are managed automatically, and a bid amount in the request is ignored. Read the current bids with GET /public/v1/toppie/campaigns/{campaign_id}/bids.Budget and target changes reach each marketplace asynchronously. Creating a campaign also provisions its marketplace campaigns in the background. The response returns the parent campaign, so bidCount and marketplace state can lag that response.

Authentication

All Toppie API requests require a Toppie agency API key. These keys start with TAS_ and are created in the Toppie UI. Marketplace and Advanced API keys from Topsort Admin do not work on the Toppie API. See Toppie authentication to create and manage keys.

Getting Your API Key

1

Navigate to Settings

Access Settings in your Toppie dashboard navigation
2

Select API Integration

Choose API Integration from the left-hand navigation menu
3

Create New Key

Click the ”+ New API Key” button to generate a new key
4

Save Immediately

Copy and save your API key immediately—it will only be displayed once for security reasons

Using Your API Key

Include your API key in the Authorization header of each request:

Security Best Practices

Security Guidelines:
  • Never share API keys in code repositories or public channels
  • Rotate keys regularly for enhanced security
  • Use environment variables or secure vaults to store keys
  • Monitor API usage for any unusual activity
  • Implement proper access controls in your applications

Common Use Cases

Automate campaign creation, budget adjustments, and performance optimization based on predefined rules and triggers. Build workflows that respond to performance thresholds or market conditions.Example scenarios:
  • Automatically pause campaigns when ROAS drops below target
  • Create new campaigns based on product catalog updates
  • Read the bids Toppie sets for each target. A bid amount in a create or update request is ignored.

API Documentation

Start with the Toppie API overview for the list of endpoints, request behavior, errors, and the rate limit. The endpoint pages under Toppie API in the API reference cover every parameter and response field.