Integrate secure, HIPAA-compliant faxing directly into your EHR, CRM, or custom application.
Quick-Start Examples
Send a fax programmatically in the language of your choice.
const fs = require('fs');
const axios = require('axios');
const pdfBuffer = fs.readFileSync('document.pdf');
const base64Data = pdfBuffer.toString('base64');
axios.post('https://app.faxlock.com/api/send-fax', {
fileBase64: base64Data,
to: '+15551234567',
pages: 1
}, {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
}).then(res => console.log(res.data));
import requests
import base64
with open("document.pdf", "rb") as f:
base64_data = base64.b64encode(f.read()).decode('utf-8')
payload = {
"fileBase64": base64_data,
"to": "+15551234567",
"pages": 1
}
headers = {"Authorization": "Bearer YOUR_API_KEY"}
res = requests.post("https://app.faxlock.com/api/send-fax", json=payload, headers=headers)
print(res.json())
curl -X POST https://app.faxlock.com/api/send-fax \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"fileBase64": "JVBERi0xLjQK...", "to": "+15551234567", "pages": 1}'