Skip to main content
POST
Obter URL de mídia pré-assinada

Autorizações

apikey
string
header
obrigatório

Your Pilot Status API key (ps_...). Evolution GO also accepts Authorization: Bearer <key>.

Parâmetros de caminho

instance
string
obrigatório

O nome de exibição do número no painel do Pilot Status.

Corpo

application/json
id
string
obrigatório

Identificador do registro de mídia (string numérica).

Exemplo:

"12345"

expiry
string

Tempo de vida da URL pré-assinada, em segundos (string numérica, ex.: "3600").

Exemplo:

"3600"

Resposta

Sucesso — corpo de resposta nativo do provedor.

A single media record plus a freshly generated presigned URL for downloading the object from S3/MinIO.

mediaUrl
string

Presigned URL to download the stored media object (valid for the requested expiry, in seconds).

id
string

Media record id (cuid).

fileName
string

Object key / path of the file stored in the S3/MinIO bucket.

type
string

Media category (e.g. image, video, audio, document, sticker).

mimetype
string

MIME type of the stored file.

createdAt
string<date-time>

Date the media record was created.

Message
object

The Message this media belongs to.