We combine advanced technology with deep expertise to deliver a complete range of services tailored for both individuals and businesses.
Everything you need to integrate document generation into your application seamlessly.
curl -X POST "https://dokify.me/api/generate/doc" \
-H "Content-Type: application/json" \
-H "DikfyAuthorization: YOUR_API_KEY" \
-d '{
"html": "<h1>Hello DOC</h1>"
}' --output result.doc
fetch("https://dokify.me/api/generate/doc", {
method: "POST",
headers: {
"Content-Type": "application/json",
"DikfyAuthorization": "YOUR_API_KEY"
},
body: JSON.stringify({ html: "<h1>Hello DOC</h1>" })
})
.then(response => response.blob())
.then(blob => {
const url = window.URL.createObjectURL(blob);
const a = document.createElement("a");
a.href = url;
a.download = "result.doc";
a.click();
});
import requests
url = "https://dokify.me/api/generate/doc"
headers = { "DikfyAuthorization": "YOUR_API_KEY" }
payload = { "html": "<h1>Hello DOC</h1>" }
response = requests.post(url, json=payload, headers=headers)
with open("result.doc", "wb") as f:
f.write(response.content)
<?php
$ch = curl_init("https://dokify.me/api/generate/doc");
$data = json_encode([ "html" => "<h1>Hello DOC</h1>" ]);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Content-Type: application/json",
"DikfyAuthorization: YOUR_API_KEY"
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$response = curl_exec($ch);
file_put_contents("result.doc", $response);
curl_close($ch);
import okhttp3.*;
import java.io.*;
public class GenerateDoc {
public static void main(String[] args) throws Exception {
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create("{\"html\":\"<h1>Hello DOC</h1>\"}", mediaType);
Request request = new Request.Builder()
.url("https://dokify.me/api/generate/doc")
.post(body)
.addHeader("Content-Type", "application/json")
.addHeader("DikfyAuthorization", "YOUR_API_KEY")
.build();
Response response = client.newCall(request).execute();
byte[] data = response.body().bytes();
FileOutputStream fos = new FileOutputStream("result.doc");
fos.write(data);
fos.close();
}
}
const axios = require("axios");
const fs = require("fs");
axios.post("https://dokify.me/api/generate/doc", {
html: "<h1>Hello DOC</h1>"
}, {
headers: { "DikfyAuthorization": "YOUR_API_KEY" },
responseType: "arraybuffer"
})
.then(res => fs.writeFileSync("result.doc", res.data));
DISCOVER FEATURES
Enterprise-grade security with 99.9% uptime SLA and data privacy protection.
Worldwide delivery network ensures fast response times from anywhere in the world.
Handle thousands of concurrent requests with auto-scaling infrastructure.
Perfect for testing and small projects
Scale infinitely with usage-based pricing
Scale infinitely with usage-based pricing
Minimum top-up: $2 • No hidden fees • Cancel anytime
We combine advanced technology with deep expertise to deliver a complete range of services tailored for both individuals and businesses.
Sign up on Dokify with your email and verify it to activate your account.
Login to your dashboard to view your usage, balance, and generate your personal API key (DokifyKey).
Top-up your account with a minimum of $5. Each request costs only $0.01 after the first 10 free requests.
Use your DokifyKey in API calls to convert HTML into PDF or DOC files, either as direct downloads or base64 content.
Dokify is an API-first document generation service that allows you to easily create professional DOC and PDF files. Simply send your content and configuration options (such as margins, headers, footers, or watermarks) to the API, and Dokify will return a ready-to-use document.
Currently, Dokify supports DOC and PDF file generation. Future updates will expand to include additional formats based on user needs.
Every request to Dokify requires an authorization header:
DikfyAuthorization: <your_token>
You can obtain your token by registering an account and topping up your balance. The token must be included in all API calls.
Yes. Dokify lets you define margins, add headers and footers, and apply watermarks. You can pass options in JSON format or CSS-like strings to tailor the document layout to your exact needs.
Yes. The first 10 requests are completely free. After that, each request costs $0.01. Users must top up their account with a minimum of $5 to continue using the service.
We take security seriously. All communications with the API are encrypted, and your generated documents are never stored permanently on our servers—they are available only for immediate download after generation.
© Dokify Is Proudly Owned By Mangosoft