Attachment

Attachment in a conversation part (ConversationPart).

Used for attaching files to messages. Might be used for other purpose in the future. To learn, what attachment this is, client should check attachment type.

Example

All attachments must have type showing attachment’s type. The rest of the fields depends on the type of attachment.

File

{
  "type": "file",

  "id": 2134,
  "size": 3242,
  "filename": "prog.py",
  "mime_type": "text/x-python",
  "url": "https://files.dashly.app/attachments/7/1204e08b-399a-4422-99ad-3b14df9a91b8/prog.py",
}

type Contains file value

id Contains file ID

size File size (bytes)

filename Contains full name of the file

mime_type Contains file’s MIME-type

url Contains file’s download URL.