Skip to content

Fin Agent Attachment

An attachment object representing a file or URL attachment included with a message. Attachments can be used to provide additional context to Fin. Maximum of 10 attachments per request.

typestringrequired

The type of attachment.

Enum:"url""file"
Example:"url"
urlstring, (uri)

The URL of the attachment. Required when type is 'url'. Must be publicly accessible.

Example:"https://example.com/document.pdf"
namestring

The name of the file. Required when type is 'file'.

Example:"screenshot.png"
content_typestring

The MIME type of the file. Required when type is 'file'.

Example:"image/png"
datastring, (byte)

Base64-encoded file data. Required when type is 'file'.

Example:"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk..."
{ "type": "url", "url": "https://example.com/document.pdf", "name": "screenshot.png", "content_type": "image/png", "data": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk..." }