---
title: "Get Base64 From Media Message"
method: POST
path: "/chat/getBase64FromMediaMessage/{instance}"
tags: ["Chat Controller"]
---

# Get Base64 From Media Message

`POST /chat/getBase64FromMediaMessage/{instance}`

Get base64 from media message

## Path parameters

- `instance` string, required

## Request body

- object
  - `message` object, required
    - `key` object
      - `id` string — Message ID
  - `convertToMp4` boolean, required — Convert video to MP4, for video only

## Response `200`

Ok

## Changes

- **2024-11-05** (v2) `669c21c8934b` — 1 breaking
  - the request property `convertToMp4` became required
- **2024-10-14** (v2) `c153448703e5` — 2 breaking, 5 info
  - added the new required request property `message`
  - removed the media type `application/json` for the response with the status `200`
  - api operation id `getBase64FromMediaMessage` was added
  - the endpoint scheme security `ApiKeyAuth` was added to the API
  - …3 more
- **2024-09-09** (v2) `0c4620ca5ed5` — 2 warning, 5 info
  - removed the request property `convertToMp4`
  - removed the request property `message`
  - api operation id `getBase64FromMediaMessage` removed and replaced with ``
  - the endpoint scheme security `ApiKeyAuth` was removed from the API
  - …3 more

[Change history](https://skmtc.dev/evolution-foundation/apis/openapi/changes/chat/getBase64FromMediaMessage/:instance/post.md)

---

[API](https://skmtc.dev/evolution-foundation/apis/openapi.md) · [All operations](https://skmtc.dev/evolution-foundation/apis/openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/evolution-foundation/openapi/revisions/153363ee7f38/schema)
