Download Attachment
Testing
Download an email attachment by its ID
Request
Body Params application/jsonRequired
{
"attachmentId": "attachment-id-string",
"provider": "gmail",
"messageId": "message-id-string",
"account": "user@example.com",
"filename": "document.pdf"
}
Request Code Samples
curl --location --request POST 'https://api.zapmail.ai/api/v2/onebox/download-attachment' \
--header 'x-auth-zapmail: YOUR_API_KEY' \
--header 'x-workspace-id: WORKSPACE_UUID' \
--header 'x-service-provider: GOOGLE' \
--header 'Content-Type: application/json' \
--data-raw '{
"attachmentId": "attachment-id-string",
"provider": "gmail",
"messageId": "message-id-string",
"account": "user@example.com",
"filename": "document.pdf"
}'
Responses
application/json Modified at 2026-01-16 09:10:40