Automette docs

Upload a template asset

POST
/api/v1/templates/{id}/assets

Authorization

ApiKeyAuth
AuthorizationBearer <token>

API key from Settings → API Keys.

In: header

Path Parameters

id*string

Request Body

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/api/v1/templates/string/assets" \  -H "Content-Type: application/json" \  -d '{    "filename": "string",    "content_base64": "string"  }'
{  "id": "cm4ast8e20001js04xq2v9k3m",  "filename": "logo.png",  "type": "image",  "content_type": "image/png",  "size": 18422,  "file_key": "templates/cm4tpl8e20001js04xq2v9k3m/assets/logo.png",  "self": "https://automette.com/api/v1/templates/cm4tpl.../assets/cm4ast..."}