Skip to main content
POST
Upload a template asset

Authorizations

Authorization
string
header
required

Workspace API key, e.g. Authorization: Bearer tented_.... Create keys in Workspace Settings → API Keys.

Path Parameters

templateId
string<uuid>
required

Email template ID.

Body

multipart/form-data
file
file
required

The file to upload (max 4 MB).

Response

Asset stored.

An asset attached to a tent, email, email template, or tent template.

asset_id
string
required

Asset ID. Reference it in asset_ids when iterating the parent resource with AI.

filename
string
required

Original file name.

content_type
string
required

MIME type of the file.

file_size
integer
required

File size in bytes.

uploaded_at
string<date-time>
required

Upload timestamp.

download_url
string
required

URL to download the file.

uploaded_by
string | null

Who uploaded the asset (API key name or user); tented-api for API uploads.