Use OhoTool's tools straight from your own apps and scripts — convert files (Office ↔ PDF, and more) and generate QR codes over a simple REST API. Authenticate with a Bearer key. Included with Pro.
Send your key as a Bearer token. Keep it secret — treat it like a password and use it only server-side.
Authorization: Bearer oho_your_api_keyBase URL: https://ohotool.com/api/v1
Convert a file (e.g. Office ↔ PDF) or a URL/HTML to PDF. Returns the converted file. Send GET /api/v1/convert for the full list of supported op values.
curl -X POST "https://ohotool.com/api/v1/convert" \
-H "Authorization: Bearer oho_..." \
-F op=to-pdf \
-F file=@document.docx \
--output document.pdfcurl -X POST "https://ohotool.com/api/v1/convert" \
-H "Authorization: Bearer oho_..." \
-H "Content-Type: application/json" \
-d '{"op":"url-to-pdf","url":"https://example.com"}' \
--output page.pdfGenerate a QR code PNG.
| Param | Default | Notes |
|---|---|---|
| data | — | Required. Text/URL to encode. |
| size | 512 | 128–1024 px. |
| margin | 2 | 0–10 modules. |
| ec | M | Error correction: L, M, Q, H. |
| dark / light | 000000 / ffffff | Hex colors. |
curl "https://ohotool.com/api/v1/qr?data=https://ohotool.com&size=512" \
-H "Authorization: Bearer oho_..." \
--output qr.pngVerify your key and see your plan.
curl "https://ohotool.com/api/v1/me" -H "Authorization: Bearer oho_..."The Pro plan includes 1,000 API calls per month (all endpoints combined), resetting on the 1st. Exceeding the limit returns HTTP 429. Need more? Reach out and we'll sort out a higher tier.
| 401 | Missing or invalid API key. |
| 403 | Key exists but the account isn't on Pro. |
| 400 | Bad request — unsupported op or missing field. |
Errors return JSON like { "error": "..." }.
Get a Pro plan, create a key, and start converting files and generating QR codes from your own apps.
Get an API key