# /oauth/token

> The /oauth/token endpoint of the DS Server Web API and its POST method, which issues access tokens for the code, client credentials and refresh token grants.

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

---

## In This Section

- [POST /oauth/token](https://docs.textcontrol.com/ds-server/reference/web-api/oauth/token/post/llms.txt): Request an access token with the authorization_code, client_credentials or refresh_token grant as form data; get a Bearer token valid for 3600 seconds.

---

## Nearby

- **Previous:** [GET /oauth/authorize](https://docs.textcontrol.com/ds-server/reference/web-api/oauth/authorize/get/llms.txt)
- **Next:** [POST /oauth/token](https://docs.textcontrol.com/ds-server/reference/web-api/oauth/token/post/llms.txt)
