Request Body
The prospect thread to generate a draft for.
Optional guidance for tone, content, or approach.
Number of draft variants (1–3, default 1).
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Generate an AI draft reply for a prospect thread.
curl -X POST https://app.leadterra.co/v1/sdr/drafts/generate \
-H "Authorization: Bearer sk_live_your_key" \
-H "Content-Type: application/json" \
-d '{
"threadId": "THREAD_ID",
"variantCount": 1
}'
{
"data": {
"drafts": [
{
"id": "draft_id",
"bodyText": "Hi Ava, thanks for the reply...",
"bodyHtml": "<p>Hi Ava, thanks for the reply...</p>",
"subject": "Re: Quick question"
}
],
"insights": [
{
"draftId": "draft_id",
"approach": "Direct response",
"confidence": 0.85,
"rationale": "Prospect asked about pricing"
}
],
"appliedRules": []
}
}