https://linen.dev logo
How can I get the user-id that triggered a webhook...
# 🖥│support-forum
p
When I create a Flask endpoint that is meant to recieve webhooks from Composio using triggers (e.g, when a user gets a new email), I want to be able to get the user-id from the webhook payload (or the trigger id). Is that possible?
b
Yes, you can retrieve the user ID and trigger ID from Composio webhook payloads in your Flask endpoint. When you receive a webhook, the payload includes a
data
object that contains the
user_id
p
Thank you!
Out of curiousity, does the data object also include trigger-id?
u
Hey @PhilipV, yes you'll find
trigger_id
in the
data
object.