News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
How to post "code snippet" or file attachment in message via webhook?
Tags: webhooks, message
Jan 27, 2022 at 2:00pm   •   2 replies  •  0 likes
Sebastian Stefaniuk

I've been searching the docs and community for an answer to this without success. I'm thinking it must be somehow possible, and hoping someone here could provide an answer.

I am using webhooks to post messages from an AWS lambda, which works great! I would like to send a message that contains potentially long (up to 256kb) snippets of code. I was hoping I could do that as an attachment, but didn't see any way to do this via webhooks. Then I tried to find out if it was possible to send a truncated code snippet in the post (up to 10000 chars). By code snippet I don't mean "[code]...[/code]" but the actual "code snippet" functionality that displays a different card.

Is either attachment or code snippet at all possible via webhooks? If so, would I use the Adaptive Cards schema or the legacy schema?

Thanks everyone!

2 Answers
answered on Jan 28, 2022 at 11:38am  

It's just a simple POSTing a message to a webhook URL. I'm going off of this guide: https://developers.ringcentral.com/guide/team-messaging/incoming-webhooks/posting


 0
answered on Jan 28, 2022 at 11:29am  

I don't fully understand your question. You wrote "I am using webhooks to post messages from an AWS lambda". Webhooks is for receiving inbound messages, what do you mean using it to post from?

Is your question related to RingCentral add-in Outbound Webhooks?


 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us