FREN Log in Try for free

DEVELOPERS · API AND MCP

One API call, one visual.

The same template powers the editor, the spreadsheet and your code: named variables, formats by name, one credit per rendered file. A test key generates without using credits.

curl -X POST https://suwar.app/api/v1/render \  -H "Authorization: Bearer $SUWAR_KEY" \  -H "Content-Type: application/json" \  -d '{ "template_id": "grand-titre-photo", "format": "post",        "variables": { "sujet": "pubs", "verbe": "vendent",                       "accroche": "dès lundi" } }'
200 OK{ "id": "rnd_8f2kq1", "status": "completed", "format": "post",  "width": 1080, "height": 1350, "credits": 1,  "url": "https://suwar.app/uploads/renders/rnd_8f2kq1.png" }
Des pubsqui vendent,dès lundi →

SIGNED RENDER LINKS

An image URL that renders itself

For an email, a CMS or an img tag, no API key: the visual renders on open, at the format's size.

Locked valuesThe signature covers the values: nobody can change them in the URL.
Editable valuesThe signature covers the template only: any value can be swapped in the URL.
Embed
<img src="https://suwar.app/v/…/post.png?sujet=pubs&sig=…"
     width="1080" height="1350" alt="Des pubs qui vendent">
Des pubsqui vendent,dès lundi →1 credit on first open with new values; the same values return the already-rendered visual for 24 hours.
https://hooks.votre-outil.com/suwar
Active
3 events: render.completed, render.failed, form.submittedLast delivery: 200 · 2 min ago
Delivery
X-Suwar-Signature: sha256=5f2c…

{
  "event": "render.completed",
  "timestamp": "2026-10-08T09:30:00.000Z",
  "data": { "templateId": "…", "renderId": "…" }
}
Verify the signature (Node)
const attendu = 'sha256=' + crypto
  .createHmac('sha256', process.env.SUWAR_WEBHOOK_SECRET)
  .update(corpsBrut).digest('hex');

WEBHOOKS

Your tools notified as soon as it's ready

A signed JSON POST for each selected event; no response within 10 seconds means two retries, after 2 then 4 seconds.

render.completedA visual is ready
render.failedA render failed, with the error message
template.createdA template is created
template.updatedA template is saved
template.deletedA template is moved to the trash
form.submittedA public form is submitted, with the entered values

MCP SERVER

An agent drives Suwar

Claude and compatible agents create, fill and render your templates in conversation. Each member authorizes access with their own account.

claude mcp add --transport http suwar <adresse du serveur>
Modèleslist, read, create, edit, duplicate
Variantescreate, edit, detach
Rendusa visual, a carousel, a whole spreadsheet, a PDF catalog
Tableurscreate, read, add rows
Médiasimport, list, remove background
Marques et policescreate a brand, apply it

Turn “Headline on Photo” into a Story for the 12 rows of Fall Campaign.

render_dataset_batch12 rows · Story 1080 × 1920
12 visuals ready
API AND MCP

Drive it with the API or an agent

“Our AI agents must be able to do it on their own.” REST, signed render links, webhooks and an MCP server.

TOOLS

Keys, quotas, examples

Everything you need to plug Suwar into your tools.

API keys

sk_live_••••••••••••
Project
Render
Read templates
Spreadsheets
Write templates
One key per tool, scoped to a project and permissions; expires in 30 days, 90 days, 1 year or never. A test key watermarks “TEST” and uses no credits.

Quotas and errors

3,000 requests per 15 minutes
401Missing, revoked or expired key
403Missing permission
404Template not found, or outside the key's project
429Over 3,000 requests in 15 minutes

Copy-ready examples

“Quick start” builds the request for your latest template, in cURL, Node or Python. A JSON REST API: one HTTP call is enough, from a website, a back office or an automation.
cURL
Node
Python
Make
n8n
Zapier

DOCUMENTATION

API reference

Parameters, responses, errors and examples, endpoint by endpoint.

POST/api/v1/renderRender a template: format, file, variables
GET/api/v1/render/{modèle}.pngThe base format's file, directly
GET/api/renders/{id}Get a render and its file URL
POST/api/v1/remove-bgRemove image backgrounds

DEVELOPERS

Your first request in a few minutes

Create a test key, paste the request, watch the visual arrive.