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-banner

    Returns 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-banner

    Returns 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-template

    Returns 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-bannerset

    Returns 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-bannerset

    Returns 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.

Banners

List, find and rename the banners of an end user.

  • List a user's banners get-user-banners

    Lists the published banners or banner sets of an end user, with the newest change first.

    2 side effects MCP: always on

  • Find a user's banners by name get-user-banners-by-name

    Finds the banners and banner sets of an end user that have exactly this name.

    2 side effects MCP: always on

  • Rename a banner rename-banner

    Changes the name of a banner of an end user.

    3 side effects MCP: always on

  • Rename a banner set rename-bannerset

    Changes the name of a banner set of an end user.

    3 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-export

    Queues 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-urls

    Lists 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-urls

    Lists 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-banner

    Returns 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-networks

    Lists 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-network

    Returns 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-network

    Returns 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-network

    Returns 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-fields

    Lists 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-fields

    Lists 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-banner

    Makes 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-bannerset

    Makes 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-data

    Overwrites the fields of an existing banner with new values.

    5 side effects MCP: always on

  • Update a banner set with data edit-bannerset-with-data

    Overwrites 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.

ParameterDescriptionExample
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