Skip to content

Attachment

Note

This page was generated by extracting information from a JSON Schema data file for the API. It may be missing some information, or otherwise suggest approximate or placeholder values based on information in the schema file; this is due to limitations on how that data is extracted from the underlying Rust code and into the JSON Schema, and then again from there and into these docs.

This is an object value, with the following properties:

  • base64 - optional boolean. If true, the data field must be encoded as base64

  • content_id - optional nullable string. Set the Content-ID header for this attachment. This is used in multipart/related messages to embed inline images in text/html parts.

  • content_type - required string. The MIME Content-Type header that should be set for this attachment.

  • data - required string. The content of the payload. This is interpreted as UTF-8 text unless the base64 field is set to true.

  • file_name - optional nullable string. The the preferred filename for the attachment

Examples

{
  "base64": false,
  "content_id": "string",
  "content_type": "string",
  "data": "string",
  "file_name": "string"
}