Upload a template asset
Authorization
ApiKeyAuth AuthorizationBearer <token>
API key from Settings → API Keys.
In: header
Path Parameters
id*string
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..."}List a template's assets GET
The images and fonts this template owns, each with a signed URL valid for one hour.
Delete a template asset DELETE
Removes the asset and its stored file. Nothing checks whether the document still references it. Deleting an image a template uses is how you get a `missing_asset` error out of `validate`, which is the right way to find out.