Get up and running with the DocuHub API in under 5 minutes.
Head to your Developer Settings and create a new API key. Give it a descriptive name like "My First Key" and select the FULL scope.
Convert a PDF to DOCX with a single API call. Replace YOUR_API_KEY with the key you just created.
curl -X POST https://api.docuhub.live/v1/convert \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@document.pdf" \
-F "output_format=docx"If the file is small, you will receive the result immediately:
{
"job_id": "job_abc123",
"status": "completed",
"download_url": "https://api.docuhub.live/v1/files/job_abc123/output.docx",
"expires_at": "2026-03-15T12:30:00Z"
}For larger files, the API returns a processing status. Poll the job endpoint until it completes, or configure a webhook to be notified automatically.
curl https://api.docuhub.live/v1/jobs/job_abc123 \
-H "Authorization: Bearer YOUR_API_KEY"Response while processing:
{
"job_id": "job_abc123",
"status": "processing",
"progress": 42,
"estimated_seconds_remaining": 8
}Once the job status is completed, use the download_url from the response to retrieve your converted file.
curl -O -J https://api.docuhub.live/v1/files/job_abc123/output.docx \
-H "Authorization: Bearer YOUR_API_KEY"Download URLs expire after 1 hour. If you need the file again, re-submit the conversion request.