Skip to main content
POST
Upload header media

Authorizations

Authorization
string
header
required

Project API key, in the format rt_live_... or rt_test_..., sent as Authorization: Bearer <key>.

Scopes

templates:write

Body

application/octet-stream

The file bytes, with the Content-Type of the file (for example image/png).

The body is of type file.

Response

Resource created

id
string
required

ID of the header media. Use it in components.header.media_id.

Example:

"tmedia_01J8ZK9M3Q7XABCDEFGHJKMNPQ"

format
enum<string>
required

Format: image, video or document.

Available options:
image,
video,
document
size_bytes
number
required

File size, in bytes.

content_type
string
required

MIME type of the file.

Example:

"image/png"

created_at
string<date-time>
required

When the file was uploaded.

Example:

"2026-09-04T13:22:41.031Z"