Skip to main content
POST
Enviar mídia de cabeçalho

Authorizations

Authorization
string
header
required

Chave de API do projeto, no formato rt_live_... ou rt_test_..., enviada como Authorization: Bearer <chave>.

Body

application/octet-stream

Os bytes do arquivo, com o Content-Type do arquivo (por exemplo image/png).

The body is of type file.

Response

Recurso criado

id
string
required

Identificador da mídia de cabeçalho. Use-o em components.header.media_id.

Example:

"tmedia_01J8ZK9M3Q7XABCDEFGHJKMNPQ"

format
enum<string>
required

Formato: image, video ou document.

Available options:
image,
video,
document
size_bytes
number
required

Tamanho do arquivo, em bytes.

content_type
string
required

Tipo MIME do arquivo.

Example:

"image/png"

created_at
string<date-time>
required

Quando o arquivo foi enviado.

Example:

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