AhaSend · Schema
Attachment
Attachment schema from AhaSend API
EmailTransactional EmailDeveloper ToolsSMTPWebhooks
Properties
| Name | Type | Description |
|---|---|---|
| data | string | The attachment data. If the base64 field is true, this data must be encoded using base64. Otherwise, it will be interpreted as UTF-8. |
| base64 | boolean | If set to true, data needs to be encoded using base64. Otherwise data will be interpreted as UTF-8. |
| content_type | string | |
| content_id | string | If specified, this attachment will be added as an inline attachment and a multipart/related MIME container will be generated in the message to hold it and the textual content. |
| file_name | string |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/ahasend/refs/heads/main/json-schema/api-attachment-schema.json",
"title": "Attachment",
"description": "Attachment schema from AhaSend API",
"type": "object",
"properties": {
"data": {
"type": "string",
"examples": [
"R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
],
"description": "The attachment data. If the base64 field is true, this data must be encoded using base64. Otherwise, it will be interpreted as UTF-8.",
"example": "example_value"
},
"base64": {
"type": "boolean",
"examples": [
true,
false
],
"description": "If set to true, data needs to be encoded using base64. Otherwise data will be interpreted as UTF-8.",
"example": true
},
"content_type": {
"type": "string",
"examples": [
"image/gif"
],
"example": "example_value"
},
"content_id": {
"type": "string",
"examples": [
"my-image"
],
"description": "If specified, this attachment will be added as an inline attachment and a multipart/related MIME container will be generated in the message to hold it and the textual content.",
"example": "500123"
},
"file_name": {
"type": "string",
"examples": [
"my_image.gif"
],
"example": "Example Name"
}
},
"required": [
"data",
"file_name",
"content_type"
]
}