For the complete documentation index, see llms.txt. This page is also available as Markdown.

Upload media

POST /template/media
Authorization: Bearer <cartat_api_token>
Content-Type: multipart/form-data

Upload a media file before creating templates that use image, video, or document headers. Use the returned media handle in components[].example.header_handle.

Form data

Field
Type
Required
Description

file

file

Yes

Media file used as the template header example.

Example

curl -X POST "https://api.cartat.net/template/media" \
  -H "Authorization: Bearer <cartat_api_token>" \
  -F "file=@/path/to/file.pdf"

Response

{
  "handle": "uploaded_media_handle"
}