API reference
The Bannersnack Enterprise API has 24 actions. Each page describes one action: its parameters, its answer, its errors and what it changes. You can try each action on its page with your own credentials.
New to the API? Read Getting started first. It explains the credentials, the signature and the one-hour window of a request.
Editor links
Open the Bannersnack editor for one of your end users. Your server asks for an editor link, and the browser of the user opens it.
-
Create a banner in the editor
create-bannerReturns an editor link that opens the editor on a new single banner for an end user.
5 side effects MCP: opt-in
-
Edit a banner in the editor
edit-bannerReturns an editor link that opens the editor on an existing banner of an end user.
4 side effects MCP: opt-in
-
Create a template in the editor
create-banner-as-templateReturns an editor link that opens the editor on a new banner, which the user saves as a template.
5 side effects MCP: opt-in
-
Create a banner set in the editor
create-bannersetReturns an editor link that opens the generator on a new banner set for an end user.
5 side effects MCP: opt-in
-
Edit a banner set in the editor
edit-bannersetReturns an editor link that opens the generator on an existing banner set of an end user.
4 side effects MCP: opt-in
Users
List the end users of your white label, page by page.
-
List the users of your white label
get-usersLists the end users of your white label, one page at a time, with the oldest user first.
No side effects MCP: always on
Exports
Start exports, and read the export links of a banner with the status of each export.
-
Start a banner export
start-banner-exportQueues an export of one banner, for example an MP4 video, a PDF or an ad tag.
4 side effects MCP: always on
-
Get the export links of a banner
get-banner-urlsLists the export links of one banner and the status of each export.
3 side effects MCP: always on
-
Get the export links of a banner set
get-bannerset-urlsLists the export links and export statuses of every banner in a banner set.
3 side effects MCP: always on
-
Get one export file (legacy)
get-bannerReturns one export file of a banner as base64 text inside the JSON answer.
Legacy No side effects No MCP tool
Ad networks
Get the ad networks, the zips built for an ad network, and the ad tag code of a banner.
-
List the ad networks
get-adtag-networksLists the ad networks and their ids.
2 side effects MCP: always on
-
Get the ad network zip of a banner
get-banner-url-for-adtag-networkReturns the link to the HTML5 zip of a banner, built for one ad network.
3 side effects MCP: always on
-
Get the ad network zips of a banner set
get-bannerset-urls-for-adtag-networkReturns the links to the HTML5 zips of every banner in a banner set, built for one ad network.
3 side effects MCP: always on
-
Get the ad tag of a banner
get-banner-adtag-for-networkReturns the ad tag code of a banner for one ad network, and starts the ad tag export.
3 side effects MCP: always on
Dynamic generation
Make and update banners from data, with no editor. Read the fields of a source banner, then send new values for them.
-
Get the fields of a banner
get-banner-fieldsLists the layers of a banner that take new values in generate-banner and edit-banner-with-data.
2 side effects MCP: always on
-
Get the fields of a banner set
get-bannerset-fieldsLists the layers of all banners in a banner set that take new values in generate-bannerset and edit-bannerset-with-data.
2 side effects MCP: always on
-
Generate a banner from data
generate-bannerMakes a new banner from a source banner, with new values for its fields.
4 side effects MCP: always on
-
Generate a banner set from data
generate-bannersetMakes a new banner set from a source banner set, with new values for its fields.
4 side effects MCP: always on
-
Update a banner with data
edit-banner-with-dataOverwrites the fields of an existing banner with new values.
5 side effects MCP: always on
-
Update a banner set with data
edit-bannerset-with-dataOverwrites the fields of the banners in an existing banner set with new values.
4 side effects MCP: always on
Common parameters
Every request has these parameters, in addition to the parameters of its action. Send all of them in the query string of a GET request.
| Parameter | Description | Example |
|---|---|---|
client_id |
Your client id. It tells the API which white label sends the request. | 2AF832 |
t |
The current Unix time in seconds. The API accepts the request from one hour before t until one hour after t. | 1793361600 |
signature |
The HMAC-SHA1 of all other parameters with your secret key, as 40 lowercase hex characters. | 7caea37e76f4feb05a3672a7b6b4b9e49beacd28 |
action |
The name of the action, for example get-banner-urls. | get-banner-urls |