{
  "opencollection": "1.0.0",
  "info": {
    "name": "WhatsApp Business Management Analytics Media API",
    "version": "21.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Media",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "WhatsApp Upload Media",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.facebook.com/v21.0/:phone-number-id/media",
            "params": [
              {
                "name": "phone-number-id",
                "value": "",
                "type": "path",
                "description": "Phone Number ID from the WhatsApp Business Account"
              }
            ],
            "body": {
              "type": "multipart-form",
              "data": [
                {
                  "name": "file",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "type",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "messaging_product",
                  "type": "text",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Uploads media to WhatsApp servers. Returns a media ID that can be used when sending media messages. Uploaded media persists for 30 days."
        },
        {
          "info": {
            "name": "WhatsApp Get Media URL",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.facebook.com/v21.0/:media-id",
            "params": [
              {
                "name": "media-id",
                "value": "",
                "type": "path",
                "description": "Media ID returned from upload or webhook"
              }
            ]
          },
          "docs": "Retrieves a temporary download URL for a media file. The URL expires after 5 minutes. To download the file, make a GET request to the returned URL with the same Bearer token."
        },
        {
          "info": {
            "name": "WhatsApp Delete Media",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://graph.facebook.com/v21.0/:media-id",
            "params": [
              {
                "name": "media-id",
                "value": "",
                "type": "path",
                "description": "Media ID returned from upload or webhook"
              }
            ]
          },
          "docs": "Deletes a media file from WhatsApp servers."
        }
      ]
    }
  ],
  "bundled": true
}