SDKs & Libraries
Coming Soon! 🚀
Section titled “Coming Soon! 🚀”We’re working hard to bring you official SDKs and client libraries to make integrating with Docstron even easier.
Planned SDKs
Section titled “Planned SDKs”We’re developing official libraries for the following languages:
- JavaScript/TypeScript - For Node.js and browser applications
- Python - For Python applications and data workflows
- PHP - For PHP web applications
- Ruby - For Ruby and Rails applications
- Go - For Go applications
- Java - For Java and Spring applications
What to Expect
Section titled “What to Expect”Our SDKs will provide:
- ✨ Simple, intuitive APIs - Clean methods for all Docstron operations
- 🔐 Built-in authentication - Automatic API key management
- 🛡️ Type safety - Full TypeScript definitions and typed interfaces
- 📝 Comprehensive documentation - Code examples and guides
- ⚡ Error handling - Helpful error messages and retry logic
- 🧪 Testing utilities - Mock clients for easy testing
In the Meantime
Section titled “In the Meantime”You can integrate with Docstron using our REST API with any HTTP client:
JavaScript/Node.js:
const response = await fetch("https://api.docstron.com/v1/documents/generate", { method: "POST", headers: { "Content-Type": "application/json", Authorization: "Bearer YOUR_API_KEY", }, body: JSON.stringify({ template_id: "template-c2465c0b-fc54-4672-b9ac-7446886cd6de", data: { customer_name: "John Doe", amount: "$299.00", }, response_type: "document_id", }),});
const result = await response.json();console.log(result.data.document_id);
Python:
import requests
response = requests.post( 'https://api.docstron.com/v1/documents/generate', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_API_KEY' }, json={ 'template_id': 'template-c2465c0b-fc54-4672-b9ac-7446886cd6de', 'data': { 'customer_name': 'John Doe', 'amount': '$299.00' }, 'response_type': 'document_id' })
result = response.json()print(result['data']['document_id'])
PHP:
$ch = curl_init('https://api.docstron.com/v1/documents/generate');curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'Content-Type: application/json', 'Authorization: Bearer YOUR_API_KEY']);curl_setopt($ch, CURLOPT_POST, true);curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([ 'template_id' => 'template-c2465c0b-fc54-4672-b9ac-7446886cd6de', 'data' => [ 'customer_name' => 'John Doe', 'amount' => '$299.00' ], 'response_type' => 'document_id']));curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);$response = curl_exec($ch);$result = json_decode($response, true);echo $result['data']['document_id'];
Stay Updated
Section titled “Stay Updated”Want to be notified when our SDKs are ready?
- 📧 Email us at support@docstron.com to join our early access list
- 💬 Chat with us in your dashboard
- 🐙 Watch our GitHub repositories (coming soon)
We’ll announce SDK releases through email and in your dashboard notifications.
Need Help?
Section titled “Need Help?”If you have questions or need assistance integrating with our REST API:
- 📧 Email: support@docstron.com
- 💬 Live Chat: Available in your dashboard
- 📚 Documentation: Check out our API Reference