AhaSend · JSON Structure

Openapi V2 Attachment Structure

Attachment schema from AhaSend API

Type: object Properties: 6 Required: 3
EmailTransactional EmailDeveloper ToolsSMTPWebhook

Attachment is a JSON Structure definition published by AhaSend, describing 6 properties, of which 3 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

base64 data content_type content_disposition content_id file_name

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ahasend/refs/heads/main/json-structure/openapi-v2-attachment-structure.json",
  "name": "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 Structure 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 json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure 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.
All 92 tools →

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/openapi-v2-attachment-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?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.