DEVELOPER CENTER
Documentation.
From your form to DOCX. Learn how to connect your application to Onlinedisken.
No matching sections found.
Verified integration reference. Documentation based on Convert to Word Studio 1.0.3. Check the deployed plugin version when implementing.
01 / INTRODUCTION
Overview
Onlinedisken creates editable DOCX files from form data. Collect data in your application, send a request to our REST API, and use a document template created in Convert to Word Studio.
Your form → REST API → DOCX
02 / GET STARTED
Quick start
- Create an Onlinedisken account and open Convert to Word Studio.
- Create an active template and note its API slug.
- Generate an API key and store it server-side.
- Request
GET /templatesto inspect field definitions. - Send matching fields and the template slug to
POST /create. - Decode the Base64 DOCX or request a binary download.
03 / ACCESS
Authentication
Use HTTPS with your API key in a request header. There is no separate API username header.
X-CTWS-API-Key: YOUR_API_KEY
Accept: application/jsonAlternatively: Authorization: Bearer YOUR_API_KEY. Keep keys on the server and never expose them in browser JavaScript.
04 / ENDPOINT
Check API status
GET /wp-json/convert-to-word-studio/v1/status
curl 'https://YOUR-DOMAIN/wp-json/convert-to-word-studio/v1/status'
-H 'X-CTWS-API-Key: YOUR_API_KEY'The response includes status, product, version, generated_at, component availability and active template summaries.
05 / DISCOVERY
Templates and fields
GET /wp-json/convert-to-word-studio/v1/templates
curl 'https://YOUR-DOMAIN/wp-json/convert-to-word-studio/v1/templates'
-H 'X-CTWS-API-Key: YOUR_API_KEY'Lists active templates belonging to the API-key owner, including slugs and field definitions (key, label, type, required, options).
Supported fields include text, textarea, richtext, date, number, boolean, email, url, select and multiselect. Use YYYY-MM-DD for dates.
06 / GENERATION
Create a DOCX
POST /wp-json/convert-to-word-studio/v1/create
Provide an active template slug in template (or template_slug). Template fields are placed at the top level of the JSON body, not inside a nested data object.
curl -X POST 'https://YOUR-DOMAIN/wp-json/convert-to-word-studio/v1/create'
-H 'Content-Type: application/json'
-H 'X-CTWS-API-Key: YOUR_API_KEY'
-d '{
"template": "YOUR_ACTIVE_TEMPLATE_SLUG",
"overskrift": "Example letter",
"navn": "Example ApS",
"dato": "2026-10-13",
"indhold": "Document text"
}' A successful JSON response contains status: success, filename, template, document_id and base64. The template determines accepted fields.
07 / DOCUMENTS
Merge DOCX files
POST /wp-json/convert-to-word-studio/v1/merge
Combine 2–20 valid DOCX files. Include each file as a Base64 string in files.
{
"filename": "combined.docx",
"files": [
{"base64": "BASE64_OF_FIRST_DOCX"},
{"base64": "BASE64_OF_SECOND_DOCX"}
]
}08 / OUTPUT
Download options
Normally, /create and /merge return Base64 in JSON. To receive a direct binary DOCX, append ?download=1 or use the Accept header:
Accept: application/vnd.openxmlformats-officedocument.wordprocessingml.document09 / OPERATION
Usage and limits
- Monthly API allowances depend on the active subscription: Free 50, Starter 100, Pro 200, Business 700 by default; administrators can change these limits.
- All API keys belonging to an account share that account’s allowance.
- The document engine has an additional rate limit of 120 logged calls per rolling 60 seconds per user.
- Create request bodies: maximum 2 MiB. Merge request bodies: maximum 64 MiB with 2–20 files.
- Document retention is configurable in Convert to Word Studio; API response data is not the same as storage.
Unpaid accounts use the Free plan. Paid access must be activated by a confirmed payment or authorized administrator.
10 / DEBUGGING
Troubleshooting
- 400 — invalid request or HTTPS required.
- 401 — invalid, missing or disabled API key.
- 403 — insufficient WordPress permissions.
- 404 — template does not exist or is inactive.
- 413 — request is too large.
- 429 — monthly quota exhausted or rate limit exceeded.
- 503 — subscription quota verification unavailable; calls are blocked for safety.
Always inspect the WordPress REST error code, message and data.status.
11 / BEST PRACTICES
Security
Send requests from a trusted server, protect API credentials, use HTTPS, rotate compromised keys and avoid logging document contents or API secrets. Registration and payment plan URL parameters never grant paid access.
12 / REFERENCE
API reference
GET /status— health and active template summariesGET /templates— active template schemasPOST /create— generate DOCXPOST /merge— merge DOCX files
Base path: /wp-json/convert-to-word-studio/v1/. Reference: Convert to Word Studio 1.0.3 (Onlinedisken integration).
Ready to create documents?
Create an account and connect your first form.
