# Enrollment via API in api-docs

**URL:** <https://discuss.openedx.org/t/enrollment-via-api-in-api-docs/12475>\
**Category:** Development\
**Tags:** tutor\
**Created:** [March 8, 2024, 2:24am UTC](https://discuss.openedx.org/t/enrollment-via-api-in-api-docs/12475 "2024-03-08T02:24:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Engr\_James\_Lusuegro](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/engr_james_lusuegro/32/4908_2.png) [@Engr\_James\_Lusuegro](https://discuss.openedx.org/u/Engr_James_Lusuegro)\
**Post date:** [March 8, 2024, 2:24am UTC](https://discuss.openedx.org/t/enrollment-via-api-in-api-docs/12475/1 "2024-03-08T02:24:14Z")

</div>

Hello! I’m quite new to using the API in the api-docs. So please bear with me.  
In the api-docs, there is an endpoint where you can enroll the current user in a specific course.

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

I want to use this endpoint but modify it a bit. I was planning to create my dashboard, where in the dashboard if the “Enroll” button is clicked, it will automatically enroll the user as “verified” (mode: verified) instead of just “audit”.

How can I achieve this? And where should I put my code? Should I create a django app for this? Thank you in advanced for those who considered my low level programming skills 😅

---

<div class="post-metadata">

**Author:** ![feanil](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/feanil/32/37_2.png) [@feanil](https://discuss.openedx.org/u/feanil)\
**Post date:** [March 26, 2024, 5:24pm UTC](https://discuss.openedx.org/t/enrollment-via-api-in-api-docs/12475/2 "2024-03-26T17:24:54Z")

</div>

@Engr_James_Lusuegro where do you plan to create the dashboard? You should be able to create your interfaces outside of the edx-platform and still call this endpoint, but to enroll other users you’ll need a staff level token which you probably don’t want your end-users to have so you might need a service that can receive the end user requests and proxy them into the API calls.
