# How can I create an endpoint or route in Mautic?

**URL:** <https://forum.mautic.org/t/how-can-i-create-an-endpoint-or-route-in-mautic/28176>\
**Category:** Product Support\
**Created:** [May 30, 2023, 7:00am UTC](https://forum.mautic.org/t/how-can-i-create-an-endpoint-or-route-in-mautic/28176 "2023-05-30T07:00:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ilo/32/1181_2.png) [@ilo](https://forum.mautic.org/u/ilo)\
**Post date:** [May 30, 2023, 7:00am UTC](https://forum.mautic.org/t/how-can-i-create-an-endpoint-or-route-in-mautic/28176/1 "2023-05-30T07:00:24Z")

</div>

I would like to use SendGrid Inbound Parse Webhook and I need to specify the URL where SendGrid should send the parsed email data.  
I have a PHP script to handle the incoming data, but not sure how to make it available in Mautic as a public URL.  
Could anyone point me in the right direction to achieve this? Thank you!

---

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [May 30, 2023, 8:27pm UTC](https://forum.mautic.org/t/how-can-i-create-an-endpoint-or-route-in-mautic/28176/2 "2023-05-30T20:27:25Z")

</div>

Look into how mautic core does the endpoints (inspect the config.php of bundle).From there you should be able to get out the controller name and the method and check the controller file to see how controllers and endpoints are implemented.
