# /admin/oauth

> The /admin/oauth endpoint of the DS Server Web API and its GET and POST methods, which read and change whether DS Server requires OAuth access tokens.

- **Product:** DS Server
- **Section:** Documentation
- **Kind:** Endpoint
- **Path:** DS Server > API Reference > Web API > Administration > /admin/oauth
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/web-api/administration/oauth/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/web-api/administration/oauth/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/web-api/administration/oauth/llms-full.txt

---

## In This Section

- [GET /admin/oauth](https://docs.textcontrol.com/ds-server/reference/web-api/administration/oauth/get/llms.txt): Check whether OAuth is enabled on DS Server: a GET request with the admin credentials returns a JSON object whose active field is true or false.
- [POST /admin/oauth](https://docs.textcontrol.com/ds-server/reference/web-api/administration/oauth/post/llms.txt): Enable or disable OAuth on DS Server with a JSON object whose active field is true or false; the running server applies the new setting only after a restart.

---

## Nearby

- **Previous:** [PATCH /admin/securityprofiles/{id}/clientcredentials/authorizedredirecturis](https://docs.textcontrol.com/ds-server/reference/web-api/administration/securityprofiles-id-clientcredentials-authorizedredirecturis/patch/llms.txt)
- **Next:** [GET /admin/oauth](https://docs.textcontrol.com/ds-server/reference/web-api/administration/oauth/get/llms.txt)
