# Connecting Medic Gateway to CHT

**URL:** <https://forum.communityhealthtoolkit.org/t/connecting-medic-gateway-to-cht/2335>\
**Category:** Development\
**Tags:** sms\
**Created:** [December 7, 2022, 11:04am UTC](https://forum.communityhealthtoolkit.org/t/connecting-medic-gateway-to-cht/2335 "2022-12-07T11:04:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SE\_SA\_LE](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/se_sa_le/32/1821_2.png) [@SE\_SA\_LE](https://forum.communityhealthtoolkit.org/u/SE_SA_LE)\
**Post date:** [December 7, 2022, 11:04am UTC](https://forum.communityhealthtoolkit.org/t/connecting-medic-gateway-to-cht/2335/1 "2022-12-07T11:04:19Z")

</div>

I can’t seem to login to medic gateway, it says invalid name on Instance name. I used my medic project url as instance name. Please Help out

---

<div class="post-metadata">

**Author:** ![diana](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/diana/32/2049_2.png) [@diana](https://forum.communityhealthtoolkit.org/u/diana)\
**Post date:** [December 7, 2022, 11:42am UTC](https://forum.communityhealthtoolkit.org/t/connecting-medic-gateway-to-cht/2335/2 "2022-12-07T11:42:00Z")

</div>

Hi @SE_SA_LE

Welcome to the CHT Forum!

I think the medic project URL alone is not sufficient, you would have to add the gateway endpoint suffix as described here: [GitHub - medic/cht-gateway: Android SMS gateway app for CHT Applications](https://github.com/medic/cht-gateway#generic-branded-gateway)

So your url will look something like:

```auto
https://<medic-project-url>/api/sms

```

Could you please try this?  
Thanks!
