The rudra-server provides a REST API for document management.
http://localhost:8080/api/v1/
| Method | Endpoint | Description |
POST | /documents | Upload a document (multipart) |
GET | /documents | List documents (paginated) |
GET | /documents/:id | Get document metadata |
GET | /documents/:id/content | Download document bytes |
DELETE | /documents/:id | Delete a document |
GET | /documents/:id/thumbnail | Get PDF thumbnail |
| Method | Endpoint | Description |
POST | /convert | Stateless format conversion |
| Method | Endpoint | Description |
POST | /webhooks | Register a webhook |
GET | /webhooks | List webhooks |
DELETE | /webhooks/:id | Delete a webhook |
| Method | Endpoint | Description |
GET | /health | Health check |
GET | /info | Server info |
# Upload a DOCX
curl -X POST http://localhost:8080/api/v1/documents \
-F file=@report.docx
# Convert to PDF
curl -X POST http://localhost:8080/api/v1/convert \
-F file=@report.docx \
-F format=pdf \
-o report.pdf