Get started with 50 free requests every month, no credit card needed.
Launching soon!Get content templates and complex data transformations out of your code, and into a centralized platform, where its easily accessible and maintainable.
Generating documents is complex and intensive work. Don't re-invent the wheel, instead leverage a scalable and reliabile API that does the hard work for you.
Generate Word, Excel, PowerPoint documents and a variety of flat files with the same API. It's as simple to use as data in, document out.
Docompile supports templates in Microsoft Word, Excel and PowerPoint, as well as text file formats such as HTML, TXT, SQL, JS and more. Docompile can automatically convert your generated documents into PDF files for you too.
Go beyond simple data merging. Docompile's template engine fuses the easy to use mustache template syntax with the flexible Angular expressions engine, resulting in a powerful templating engine that can support the most complex of templates. The same template engine is used across all document formats.
Processing functons enable to you to transform and format your raw JSON data into an object that can work with your document template. This enables to work with your existing data.
Once a document has been generated you can opt to upload it straight to your cloud storage provider. Docompile supports AWS S3, Microsoft Azure Storage and Google Cloud Storage.
Once a document has been generated you can also send it to other platforms via a webhook. This enables you to connect Docompile into your software ecosystem.
Often you'll need to convert your documents into PDF for distribution. Docompile can automatically convert generated documents into PDF files for you so you don't need to.
Explore your API usage and requests through our analytics. See how many API requests you are making by date range, and browse logs for each API request to get full visibility into what's happening.
Docompile has been designed to be fault tolerant and responsive to the one or one million requests you may push through. Take the intensive work of generating documents out of your platform.
Upload a template file or reference one from a URL. You have full control over the generation process: apply custom data transformations to your data, convert the generated documents to PDF, and automatically upload the documents to your cloud storage provider.
Make a HTTP POST request to our generation API, passing through your JSON data object. Our engine will use your template and data to generate your customized document, returning it back to you in the response. Our API can scale from one to millions of requests simultaneously without breaking a sweat.
Leverage POST webhooks that will accept completed document generation requests. Connect docompile to your DMS, CMS or simply use Zapier to pipe your generated documents into thousands of other cloud based services.
curl \
-X POST "https://api.docompile.com/generate?id=TEMPLATE_ID" \
-H "Content-Type: application/json" \
-H "Authorization: Token $DOCOMPILE_API_KEY" \
-d '{ "data": { "title": "Hello World", "location": "earth" }}'
# gem install http
require "http"
response = HTTP
.headers(:accept => "application/json")
.auth("Token " + ENV.fetch("DOCOMPILE_API_KEY"))
.post(
"https://api.docompile.com/generate?id=TEMPLATE_ID",
json: { "data": { "title": "Hello World", "location": "earth" }}
)
puts response.body
# pip install requests
import os
import requests
response = requests.post(
'https://api.docompile.com/generate?id=TEMPLATE_ID',
headers={'Content-Type':'application/json',
'Authorization': 'Token {}'.format(os.getenv('DOCOMPILE_API_KEY'))},
data={ "data": { "title": "Hello World", "location": "earth" }}
)
print(response.json())
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.docompile.com/generate?id=TEMPLATE_ID',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json',
'Authorization: Token ' . getenv('DOCOMPILE_API_KEY')
),
CURLOPT_POSTFIELDS => array(
'data' => array(
'title' => 'Hello World',
'location' => 'earth'
)
)
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
// npm install node-fetch
const fetch = require("node-fetch");
async function generateDocument() {
const response = await fetch("https://api.docompile.com/generate?id=TEMPLATE_ID", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Token ${process.env.DOCOMPILE_API_KEY}`
},
body: JSON.stringify({ "data": { "title": "Hello World", "location": "earth" }})
});
const json = await response.json();
console.log(json);
};
generateDocument();
Convert your legal precidents and documents into automated and personalized smart legal templates. Generate legal documents at light speed.
Replace the manual, repetitive task of drafting personalized sales and marketing material with automated templates, freeing up your sales team to do more.
Build customizable reports, statements and other financial documents that can be generated on-demand and are adapted to different scenarios.
If you need to generate dynamic content on the fly in your product or app, then Docompile provides a solution that's implemented with a few lines of code.
Use docompile for free and make up to 50 requests each month on our free tier.
Or choose to pay as you go, where you only pay $9 per 500 API requests. This way your bills match your monthly usage patterns, you don't pay for higher quotas than what you actually use.
Note: Your credit usage resets at the beginning of each month, and un-used credits do not roll over into the next month. We'll automatically allocate more credits as you need them to provide you with uninterupted service.
Transactions are processed in US dollars (USD).
Try out docompile for free with up to 50 free requests per month.
Automatically added as you need more. Credits reset each month.