Developer / API Integration
Invoice follow-up API
Automate payment follow-ups programmatically. Send overdue invoice metadata to our REST API endpoint and receive AI-written drafts tuned to overdue severity.
API Capabilities
- REST API Endpoint:
POST /api/v1/chase/draft with API key authentication.
- Outbound Webhooks: Subscribe to real-time events like
chase.drafted and chase.sent with HMAC signatures.
- MCP Server Integration: Connect AI agents directly via
https://api.docstoc.io/mcp.
- Zapier and Make: Connect them through your API key and outbound webhooks.
What this API does and does not do
The address says document signing, but docstoc does not offer electronic signatures. The API is about overdue invoices: you send the details of an unpaid invoice and get back a written follow-up draft, with a subject line and a body, in a tone that matches how late the invoice is.
docstoc does not send the email. Your own system, or you, takes the draft and sends it from your own mail account. That keeps replies, sender reputation and the decision to send with you.
Authentication and plans
API keys are created in the account under Webhooks and API and sent as a Bearer token in the Authorization header. API keys and draft generation over HTTP are part of the paid plans: Pro at $14.99 a month and Business at $39.99 a month.
If you only want to see what a draft looks like, the free tier gives you 5 AI drafts a month in the web app without an account.
Webhooks and AI agents
Webhooks cover more than drafting. The events are chase.drafted, chase.sent, chase.thank_you, chase.reply_drafted, chase.sequence_planned and chase.downloaded.
The same drafting step is available through the MCP endpoint at api.docstoc.io/mcp. Three tools are public and need no key: get_chase_tip, recommend_template and list_templates. The fourth, draft_chase_email, needs a signed-in session or an API key and returns a subject and a body.
- Each delivery carries an X-Docstoc-Event header with the event name.
- Each delivery carries an X-Docstoc-Signature header in the form sha256= followed by an HMAC-SHA256 signature of the payload.
- Check the signature before you trust the payload, then act on the event in your own system.
FAQ
Can I use docstoc to collect electronic signatures?
No. docstoc does not provide e-signatures. For documents it offers free templates and a tamper-evident hash certificate, which proves a file has not changed since a given time but is not a signature.
Does the API send the chase email to my customer?
No. The API returns a draft only. You send it from your own inbox, and docstoc never emails your customers on your behalf.
Do I need a paid plan to call the API?
Yes for API keys and the draft endpoint, which are on Pro and Business. The public MCP tools and the free web drafts need no key.