---
title: "Decrypts media from a message"
method: POST
path: "/api/media/decrypt"
tags: ["media"]
---

# Decrypts media from a message

`POST /api/media/decrypt`

Decrypts media from a message

## Request body

- object
  - `message` object, required — Message object containing media
    - `id` string, required
    - `body` string, required
    - `type` 'chat' | 'audio' | 'ptt' | 'image' | 'video' | 'document' | 'sticker' | 'location' | 'vcard' | 'multi_vcard' | 'revoked' | 'order' | 'buttons_response' | 'list_response' | 'unknown', required
    - `t` number, required
    - `notifyName` string
    - `from` string, required
    - `to` string, required
    - `self` 'in' | 'out', required
    - `ack` -1 | 0 | 1 | 2 | 3 | 4, required
    - `invis` boolean
    - `isNewMsg` boolean
    - `star` boolean
    - `recvFresh` boolean
    - `broadcast` boolean
    - `isForwarded` boolean
    - `labels` string[]
    - `mentionedJidList` string[]
    - `caption` string
    - `sender` object, required
      - `id` string, required
      - `name` string
      - `shortName` string
      - `pushname` string
      - `formattedName` string
      - `isBusiness` boolean
      - `isEnterprise` boolean
      - `isMe` boolean
      - `isMyContact` boolean
      - `isPSA` boolean
      - `isUser` boolean
      - `isWAContact` boolean
      - `labels` string[]
      - `msgs` unknown[]
        - unknown
      - `profilePicThumbObj` object
        - `eurl` string
        - `id` object
          - `server` string, required
          - `user` string, required
          - `_serialized` string, required
        - `img` string
        - `imgFull` string
        - `tag` string
      - `statusMute` boolean
      - `type` string
      - `verifiedLevel` number
      - `verifiedName` string
      - `isOnline` boolean
      - `lastSeen` number
    - `timestamp` number, required
    - `content` string, required
    - `isGroupMsg` boolean, required
    - `isMMS` boolean
    - `isMedia` boolean, required
    - `isNotification` boolean, required
    - `isPSA` boolean
    - `fromMe` boolean, required
    - `chat` object, required
      - `id` union, required
        - string
        - string
      - `name` string
      - `formattedTitle` string
      - `isGroup` boolean, required
      - `contact` object, required
        - `id` string, required
        - `name` string
        - `shortName` string
        - `pushname` string
        - `formattedName` string
        - `isBusiness` boolean
        - `isEnterprise` boolean
        - `isMe` boolean
        - `isMyContact` boolean
        - `isPSA` boolean
        - `isUser` boolean
        - `isWAContact` boolean
        - `labels` string[]
        - `msgs` unknown[]
          - unknown
        - `profilePicThumbObj` object
          - `eurl` string
          - `id` object
            - `server` string, required
            - `user` string, required
            - `_serialized` string, required
          - `img` string
          - `imgFull` string
          - `tag` string
        - `statusMute` boolean
        - `type` string
        - `verifiedLevel` number
        - `verifiedName` string
        - `isOnline` boolean
        - `lastSeen` number
      - `groupMetadata` unknown
      - `presence` unknown
      - `t` number
      - `unreadCount` number
      - `lastReceivedKey` unknown
      - `msgs` unknown[]
        - unknown
      - `isReadOnly` boolean
      - `muteExpiration` number
      - `notSpam` boolean
      - `pin` number
      - `ack` unknown
    - `chatId` string, required
    - `author` string
    - `clientUrl` string
    - `deprecatedMms3Url` string
    - `isQuotedMsgAvailable` boolean, required
    - `quotedMsg` unknown
    - `quotedMsgObj` unknown
    - `senderId` string

## Response `200`

Successful response

- string — Base64 encoded decrypted media

## Other responses

- `400` — Validation error
- `500` — Internal server error

---

[API](https://skmtc.dev/open-wa/apis/open-wa-api.md) · [All operations](https://skmtc.dev/open-wa/apis/open-wa-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/open-wa/open-wa-api/revisions/2f344d03d2a9/schema)
