Add attachment
attachments.addAttach a file to a test-injected email (base64 payload).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | File contents, standard base64 | |
| mailId | Yes | Mail ID | |
| filename | Yes | Attachment file name | |
| expiresIn | No | Attachment lifetime in minutes (>=1). Optional. | |
| mailboxId | Yes | Mailbox ID | |
| sizeBytes | No | Expected size in bytes. Optional; validated against the decoded data when set. | |
| contentType | No | MIME type, defaults to application/octet-stream |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Attachment ID | |
| filename | Yes | Attachment file name | |
| expiresAt | No | Expiry timestamp (RFC 3339) | |
| sizeBytes | No | Size in bytes | |
| contentType | No | MIME type |