Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(sdk-js): state the status media mimetype default

Yudhi Armyndharis1b08934f54cb
diff --git a/sdk/javascript/src/types.ts b/sdk/javascript/src/types.ts
index 2719c4dc1..c83179d52 100644
--- a/sdk/javascript/src/types.ts
+++ b/sdk/javascript/src/types.ts
@@ -1169,7 +1169,11 @@ export interface SendTextStatusRequest {
export interface StatusMediaInput {
url?: string;
base64?: string;
- /** Optional explicit mimetype (inferred from URL/bytes when omitted). */
+ /**
+ * MIME type of the media. When omitted the server uses the route's default (`image/jpeg`, `video/mp4` or
+ * `audio/ogg; codecs=opus`), which also overrides a URL's Content-Type; the bytes are never inspected. Set
+ * it for base64 and for any media of another type.
+ */
mimetype?: string;
}