# SendMediaRequest Estrutura de dados do contrato OpenAPI. ## Campos | Campo | Tipo | Presença | Descrição | |---|---|---|---| | `number` | `string` | obrigatório | Dígitos com DDI (8–15) ou identificador @s.whatsapp.net, @g.us ou @lid. Nunca inferir telefone de um LID. Comprimento mínimo: `1` | | `replyid` | `string` | opcional | ID de mensagem guardada para citação; desconhecida retorna 422 reply_not_found. | | `delay` | `integer / string` | opcional | Espera de digitação em milissegundos; o manager limita a 15000 ms. | | `forward` | `boolean / string / integer / null` | opcional | — | | `type` | `string` | obrigatório | Valores: `"image"`, `"video"`, `"audio"`, `"ptt"`, `"document"`, `"sticker"` | | `file` | `string` | obrigatório | Data URI, base64 ou URL permitida por ATENDROZAP_MEDIA_URL_ALLOWLIST. Até 32 MiB decodificados; JSON até 48 MiB. Comprimento mínimo: `1` | | `text` | `string` | opcional | Legenda em UTF-8, até 65536 bytes. Comprimento máximo: `65536` | | `docName` | `string` | opcional | Nome-base do documento. | ## Definição OpenAPI ```json { "type": "object", "properties": { "number": { "type": "string", "description": "Dígitos com DDI (8–15) ou identificador @s.whatsapp.net, @g.us ou @lid. Nunca inferir telefone de um LID.", "minLength": 1 }, "replyid": { "type": "string", "description": "ID de mensagem guardada para citação; desconhecida retorna 422 reply_not_found." }, "delay": { "oneOf": [ { "type": "integer", "minimum": 0 }, { "type": "string", "description": "Inteiro em formato decimal.", "pattern": "^\\d+$" } ], "description": "Espera de digitação em milissegundos; o manager limita a 15000 ms." }, "forward": { "oneOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "true", "false", "1", "0", "" ] }, { "type": "integer", "enum": [ 0, 1 ] }, { "type": "null" } ] }, "type": { "type": "string", "enum": [ "image", "video", "audio", "ptt", "document", "sticker" ] }, "file": { "type": "string", "description": "Data URI, base64 ou URL permitida por ATENDROZAP_MEDIA_URL_ALLOWLIST. Até 32 MiB decodificados; JSON até 48 MiB.", "minLength": 1 }, "text": { "type": "string", "description": "Legenda em UTF-8, até 65536 bytes.", "maxLength": 65536 }, "docName": { "type": "string", "description": "Nome-base do documento." } }, "required": [ "number", "type", "file" ] } ```