# /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
- **140 words**
- **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

---

This endpoint offers the following methods.

| Method | Endpoint | Description |
|---|---|---|
| [`GET`](https://docs.textcontrol.com/ds-server/reference/web-api/administration/oauth/get/llms-full.txt) | [/admin/oauth](https://docs.textcontrol.com/ds-server/reference/web-api/administration/oauth/get/llms-full.txt) | Returns whether OAuth is enabled. |
| [`POST`](https://docs.textcontrol.com/ds-server/reference/web-api/administration/oauth/post/llms-full.txt) | [/admin/oauth](https://docs.textcontrol.com/ds-server/reference/web-api/administration/oauth/post/llms-full.txt) | Enables or disables OAuth. |

---

## In This Section

- [GET /admin/oauth](https://docs.textcontrol.com/ds-server/reference/web-api/administration/oauth/get/llms-full.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-full.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-full.txt)
- **Next:** [GET /admin/oauth](https://docs.textcontrol.com/ds-server/reference/web-api/administration/oauth/get/llms-full.txt)
