AhaSend · JSON Structure

Api Attachment Structure

Attachment schema from AhaSend API

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

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

Properties

data base64 content_type 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/api-attachment-structure.json",
  "name": "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"
  ]
}

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/api-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.