# Auto-Enrollment API

**URL:** https://discuss.openedx.org/t/auto-enrollment-api/3003
**Category:** Development
**Tags:** api
**Created:** [August 18, 2020, 6:35pm UTC](https://discuss.openedx.org/t/auto-enrollment-api/3003 "2020-08-18T18:35:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Zamorocks](https://avatars.discourse-cdn.com/v4/letter/z/f14d63/32.png) [@Zamorocks](https://discuss.openedx.org/u/Zamorocks)
#### Post date: [August 18, 2020, 6:35pm UTC](https://discuss.openedx.org/t/auto-enrollment-api/3003/1 "2020-08-18T18:35:55Z")

</div>

I am trying to test Open edX’s auto-enrollment api endpoint in Postman. I can make a successful GET request to the following endpoint:

_/account/finish\_auth?course\_id=course-v1%3AedX%2BDemoX%2BDemo\_Course&enrollment\_action=enroll_

I get a successful 200 OK status, but it takes me to a sign in or Register page. My access token is good and I’ve set up my user name and password in the Authorization section using an OAuth 2.0 provider but I don’t get what a sign in page does for auto enrollment. It should log me in and take me to a course page as well, if I’m not mistaken.

Any suggestions? Thanks.

---

<div class="post-metadata">

### Author: ![giovannicimolin](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/giovannicimolin/32/159_2.png) [@giovannicimolin](https://discuss.openedx.org/u/giovannicimolin)
#### Post date: [September 4, 2020, 7:11pm UTC](https://discuss.openedx.org/t/auto-enrollment-api/3003/2 "2020-09-04T19:11:56Z")

</div>

Hi @Zamorocks,

Can you post a few more details on what you are trying to do with your instance?  
To automate student enrollment, you can use the enrollment API (shown below).

 ![image](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/2X/e/e46f9754d10bcea60087c9e1c43a11436ff08b50.png)

If you navigate to [https://your-instace-url/api-docs/](https://your-instace-url/api-docs/) you’ll see the full capabilites of this API.

---

<div class="post-metadata">

### Author: ![HlaThit](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/hlathit/32/2647_2.png) [@HlaThit](https://discuss.openedx.org/u/HlaThit)
#### Post date: [September 22, 2021, 4:32am UTC](https://discuss.openedx.org/t/auto-enrollment-api/3003/3 "2021-09-22T04:32:41Z")

</div>

Hello @Zamorocks ,  
I want to know auto-enrollment api works well in your server and how did you solve this ? I am facing this error taking me sign in or register page. Can you give me any suggestions? Thanks.
