Upload image asset for template
Uploads an image file (JPEG, PNG, SVG, WebP, GIF) for use in a document template. Maximum file size: 5MB. Returns the asset URL and a unique ID.
X-Api-Key<token>
Business API key, e.g. vuz_ab12cdef... Created via Settings → Integrations → API Keys. Unlike partner keys, a public API key's STRING does not encode its environment — isolation instead comes from a completely separate sandbox database: a key minted on the Sandbox server (above) only ever reads/writes sandbox data and can never see or affect production, regardless of what the key looks like.
In: header
Header Parameters
x-business-id*string
Business ID for multi-tenant access
Request Body
multipart/form-data
Image file to upload
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/templates/assets/upload" \ -H "x-business-id: string" \ -F file="string"{ "url": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"}
