No, currently this is not possible. However, you can make use of the 'Trigger Webhook' option in an automation rule under Admin > Workflows > Automations > Ticket updates to Add a Note/Reply to the Ticket with an Attachment. Refer to this doc for corresponding APIs.