AhaSend · Schema

Attachment

Attachment schema from AhaSend API

EmailTransactional EmailDeveloper ToolsSMTPWebhook

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
View JSON Schema on GitHub

JSON Schema

api-attachment-schema.json Raw ↑
{
  "$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"
  ]
}

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.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/api-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.