AhaSend · Schema
Attachment
Attachment schema from AhaSend API
EmailTransactional EmailDeveloper ToolsSMTPWebhook
Properties
| Name | Type | Description |
|---|---|---|
| base64 | boolean | If true, data must be encoded using base64. Otherwise, data will be interpreted as UTF-8 |
| data | string | Either plaintext or base64 encoded attachment data (depending on base64 field) |
| content_type | string | The MIME type of the attachment |
| content_disposition | string | The disposition of the attachment |
| content_id | string | The Content-ID of the attachment for inline images |
| file_name | string | The filename of the attachment |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/ahasend/refs/heads/main/json-schema/openapi-v2-attachment-schema.json",
"title": "Attachment",
"description": "Attachment schema from AhaSend API",
"type": "object",
"properties": {
"base64": {
"type": "boolean",
"description": "If true, data must be encoded using base64. Otherwise, data will be interpreted as UTF-8",
"default": false,
"example": true
},
"data": {
"type": "string",
"description": "Either plaintext or base64 encoded attachment data (depending on base64 field)",
"example": "example_value"
},
"content_type": {
"type": "string",
"description": "The MIME type of the attachment",
"example": "example_value"
},
"content_disposition": {
"type": "string",
"description": "The disposition of the attachment",
"example": "example_value"
},
"content_id": {
"type": "string",
"description": "The Content-ID of the attachment for inline images",
"example": "500123"
},
"file_name": {
"type": "string",
"description": "The filename of the attachment",
"example": "Example Name"
}
},
"required": [
"data",
"content_type",
"file_name"
],
"example": {
"base64": true,
"data": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg==",
"content_type": "image/png",
"file_name": "pixel.png"
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/openapi-v2-attachment"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.