# API: enrol user in a course

**URL:** <https://discuss.openedx.org/t/api-enrol-user-in-a-course/7840>\
**Category:** Development\
**Created:** [July 17, 2022, 9:48pm UTC](https://discuss.openedx.org/t/api-enrol-user-in-a-course/7840 "2022-07-17T21:48:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Zia\_Fazal](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/zia_fazal/32/2259_2.png) [@Zia\_Fazal](https://discuss.openedx.org/u/Zia_Fazal)\
**Post date:** [July 19, 2022, 9:39am UTC](https://discuss.openedx.org/t/api-enrol-user-in-a-course/7840/2 "2022-07-19T09:39:32Z")

</div>

Hi @mslyon

This [thread](https://discuss.openedx.org/t/authentication-credentials-were-not-provided/6519/2) might help you in resolving authentication issue.

---

_[View the full topic](https://discuss.openedx.org/t/api-enrol-user-in-a-course/7840)._
