API Reference

Bannx API for rendering templates, managing templates and variables, webhooks, and authentication.

Bannx API Reference

Use the Bannx API to generate marketing assets (banners, OG images, social graphics) programmatically. The API supports rendering by page ID, inline page data, variables, and webhooks.

Base URL

All API requests use your app base URL, for example:

https://your-app.bannx.app

Quick start

  1. Create an API key in your space: Settings → Space → Developers. Copy the token (shown only once).
  2. Authenticate every request with the Authorization: Bearer <token> header.
  3. Publish a template so its pages are available for rendering via the Render API.

API overview

AreaDescription
AuthenticationAPI keys, Bearer token, and token scope
Rendering APIRender a page to PNG, SVG, or WebP (GET by page ID, POST with inline data)
Template APIList and fetch templates and their pages
VariablesPage, template, and global variables; overrides via query or body
Template ExpressionsFunctions and syntax for dynamic bindings (use, isDefined, colors, etc.)
WebhooksCallbacks after render (e.g. upload result, logging)

Response formats

  • JSON endpoints return application/json.
  • Rendering endpoints return binary image data (image/png, image/svg+xml, or image/webp). Use the format query (GET) or body field (POST) to choose.

Rate limits and credits

Rendering consumes credits for your space. Check your plan and usage in Settings → Space → Billing. Invalid or missing tokens return 401 Unauthorized.

Copyright © 2026 bannx. All rights reserved.