Antony REST icon

Antony REST

Call known Antony REST API operations

Actions159

Chat → Upload Chat Attachment

AI-generated

Summary

Upload a file attachment to a specified chat by sending binary data to the Antony REST API's chat attachment endpoint.

Inputs

  • Chat ID (required) — The unique identifier of the chat to which the attachment will be uploaded.
  • Body Input Mode — Determines how to send additional body data: as JSON or as form fields (not typically used for binary upload).
  • Body JSON — Raw JSON object for the request body if Body Input Mode is set to JSON (defaults to empty object).
  • Body Parameters — Additional form parameters for the request body if Body Input Mode is set to Form Fields.
  • Binary Property (required) — Name of the binary property from input data containing the file to upload.
  • File Name — Optional filename to use for the uploaded file; falls back to original binary data filename or 'file' if unspecified.

Output shape

a list of items representing the API response as JSON objects

The response contains JSON data returned by the Antony API after uploading the attachment. The operation does not return binary output itself.

Examples

Example 1: Upload a file as an attachment to a chat

Set 'Chat ID' to target chat, specify the binary property holding the file, optionally provide a custom filename, and execute to send the file as a chat attachment.

Links

Discussion