# Web API

> Request an OAuth access token and convert HTML to PDF with two curl commands, then send the same requests from Node.js with fetch and Base64-encoded JSON.

- **Product:** DS Server
- **Section:** Documentation
- **Kind:** Topic
- **Path:** DS Server > Getting Started > Document Processing > Web API
- **Web URL:** https://docs.textcontrol.com/ds-server/getting-started/document-processing/web-api/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/getting-started/document-processing/web-api/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/getting-started/document-processing/web-api/llms-full.txt

---

## On This Page

- [Prerequisites](https://docs.textcontrol.com/ds-server/getting-started/document-processing/web-api/#prerequisites)
- [Set the Connection Details](https://docs.textcontrol.com/ds-server/getting-started/document-processing/web-api/#set-the-connection-details)
- [Request an Access Token](https://docs.textcontrol.com/ds-server/getting-started/document-processing/web-api/#request-an-access-token)
- [Convert a Document to PDF](https://docs.textcontrol.com/ds-server/getting-started/document-processing/web-api/#convert-a-document-to-pdf)
- [The Same Requests in JavaScript](https://docs.textcontrol.com/ds-server/getting-started/document-processing/web-api/#the-same-requests-in-javascript)
- [Troubleshooting](https://docs.textcontrol.com/ds-server/getting-started/document-processing/web-api/#troubleshooting)
- [Next Steps](https://docs.textcontrol.com/ds-server/getting-started/document-processing/web-api/#next-steps)

---

## Nearby

- **Previous:** [ASP.NET Core](https://docs.textcontrol.com/ds-server/getting-started/document-processing/aspnet-core/llms.txt)
- **Next:** [Document Editor](https://docs.textcontrol.com/ds-server/getting-started/document-editor/llms.txt)
