Skip to content
kalpana

 REST API

Create catalog creatives from your own code.

The same endpoints our MCP server uses: find templates, validate rows, run batches and fetch the results, authenticated with an API key.

Base URLhttps://app.kalpana.one/api/agent/v1

 Workflow

Four calls from rows to creatives.

  1. 01

    Find a template

    GET /templates, then /templates/{id}/inputs for its fields.

  2. 02

    Validate rows

    POST /batches/validate with your product rows.

  3. 03

    Create and run

    POST /batches, then /batches/{id}/run.

  4. 04

    Collect outputs

    GET /batches/{id}/outputs for download links.

 Authentication

One header.

Create a key under Settings, API keys. Every call is checked against your role in the workspace it touches.

curl https://app.kalpana.one/api/agent/v1/templates?query=sale -H "x-api-key: sk-your-key"
MethodEndpointWhat it does
GET/workspacesWorkspaces you can reach, with your role.
GET/templatesSearch templates by name, topic, size or animation.
GET/templates/{id}/inputsFields a template needs, with types and examples.
GET/asset-collectionsImage collections in a workspace.
GET/assetsSearch images by collection or file name.
POST/batches/validateCheck rows against a template before spending credits.
POST/batchesCreate render jobs from validated rows.
POST/batches/{batchId}/runStart rendering. Uses credits.
GET/batchesList batches and their status.
GET/batches/{batchId}Status and counts for one batch.
GET/batches/{batchId}/outputsFinished creatives with download links.

How do I get an API key?

Open Settings, then API keys, in the Kalpana app and create a key. Send it in the x-api-key header.

Are there rate limits?

Yes. API keys are limited to 100 requests a minute, and request bodies to 1 MB of JSON.

Is the API the same one the MCP server uses?

Yes. The MCP server is a thin layer over these endpoints, so anything an agent can do, your code can do.

Do you have Zapier, Make or n8n apps?

Not yet. You can call the API from their HTTP request steps today.

 Ready when your catalog is

Get an API key and create your first batch.

Import a Figma frame, connect your catalog and preview every row before you spend a credit.