Outvexa

API reference

Writing

3 endpoints. All paths are relative to your installation, for example https://app.example.com.

post/api/v1/w/{workspaceId}/writing/generate

Generate an evidence-backed email draft + fact-check

Workspace member or API keyRole member or higher120 requests / 1 h per workspaceSuccess: 200

Path parameters

workspaceIdrequiredstring

Request body (JSON)

leadIdrequiredstring (uuid)
modeenumOne of: first_line, full, followup · Default "full"
templateSubjectstringLength 0–300 · Default ""
templateBodystringLength 0–8000 · Default ""
previousEmailsstringLength 0–8000 · Default ""
instructionsstringLength 0–2000 · Default ""
Request
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/writing/generate" \
  -H "Authorization: Bearer $EMN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "leadId": "00000000-0000-4000-8000-000000000000",
    "mode": "full",
    "templateSubject": "",
    "templateBody": "",
    "previousEmails": "",
    "instructions": ""
  }'

post/api/v1/w/{workspaceId}/writing/subjects

Subject line suggestions

Workspace member or API keyRole member or higherSuccess: 200

Path parameters

workspaceIdrequiredstring

Request body (JSON)

leadIdrequiredstring (uuid)
bodyrequiredstringLength 1–8000
countintegerRange 1–10 · Default 5
Request
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/writing/subjects" \
  -H "Authorization: Bearer $EMN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "leadId": "00000000-0000-4000-8000-000000000000",
    "body": "string",
    "count": 5
  }'

post/api/v1/w/{workspaceId}/writing/fact-check

Fact-check any draft against the lead’s supported claims

Workspace member or API keyRole member or higherSuccess: 200

Path parameters

workspaceIdrequiredstring

Request body (JSON)

leadIdrequiredstring (uuid)
textrequiredstringLength 1–10000
Request
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/writing/fact-check" \
  -H "Authorization: Bearer $EMN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "leadId": "00000000-0000-4000-8000-000000000000",
    "text": "string"
  }'