Mattermost, Inc.

Attachments via API

Hey there,

I am currently using the mattermost API v4. Everything works properly and I am able to post messages. My question is, if it is possible to use attachments via API?
https://docs.mattermost.com/developer/message-attachments.html

I have already been able to send attachments using incoming webhooks. We are currently using a bot to send messages. Unfortunately, it is not possible to create webhooks for bots. We would like to continue using the API, but would also like to be able to create attachments for messages. Do we have to switch to webhooks or is there any way to create attachments via API?

Thanks in advance!

https://docs.mattermost.com/developer/message-attachments.html#can-i-send-a-message-attachment-via-the-api