Renduo
Api referenceTemplates

Register a template version

Registers a new template (or a new version of an existing one if the slug already exists). multipart/form-data with "slug", "name" fields and the "bundle" file (IIFE compiled with esbuild). Required scope: templates:write.

POST
/v1/templates
AuthorizationBearer <token>

Renduo API key sent as Authorization: Bearer rnd_live_XXXXXXXXXXXX (or rnd_test_... in test mode). See GET /v1/auth/me.

In: header

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/templates" \  -F slug="string" \  -F name="string" \  -F bundle="string"
{  "templateId": "196100ac-4eec-4fb6-a7f7-86c8b584771d",  "version": 0}
{  "error": "string",  "message": "string",  "details": {},  "requestId": "string"}
{  "error": "string",  "message": "string",  "details": {},  "requestId": "string"}
{  "error": "string",  "message": "string",  "details": {},  "requestId": "string"}
{  "error": "string",  "message": "string",  "details": {},  "requestId": "string"}