# API: Download attachment

# downloadAttachment

Download attachment by ID

# Required parameters

Parameter Description
id Attachment ID

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=downloadAttachment&id=ID

# PHP Samples

# Response

{
    "success": true,
    "attachment": {
        "id": "NTQ3MGZkZDRkNGM0M2I0ZmM4YWI0Yzg5NjQ2OTM1ZjczNA==",
        "filename": "icon.png",
        "type": "png",
        "base64": "iVBOR...SuQmCC"
    },
    "call": "downloadAttachment",
    "server_time": 1611747758
}
Last Updated: 10/7/2024, 2:36:43 PM