Skip to content
SSalesShiftDocs
API reference

AI

AI email drafting through the organization's configured AI provider.

1 endpoints· verified against http://127.0.0.1:8741

1 endpoints

POST/api/v1/salesshift/ai/write-emailPartialDraft an email with the organization's configured AI provider.
Auth
get_org_user
Scope
organization
Success
200 · application/json
Envelope
bare-model

Request body (required) — WriteEmailRequest

FieldTypeRequiredNotes
promptstringrequired
tonestringoptionalDefault "professional".
step_numberintegeroptionalDefault 1.

Values in the request below are typed placeholders, not sample data.

Request

curl
curl -X POST 'https://api.vxcloud.io/api/v1/salesshift/ai/write-email' \
  -H "Authorization: Bearer $SS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{ "prompt": "<string>", "tone": "professional", "step_number": 1 }'

Response · 200

WriteEmailResponse fields
{
  "subject": "string",
  "body_html": "string",
  "source": "string"
}
Fields declared by WriteEmailResponse; values shown are types.
#post-api-v1-salesshift-ai-write-emailai_router · vxcloud_fastapiclient/app/services/salesshift/ai_router.py:132The route is implemented and reachable, but it calls the organization's AI integration and the test org has no integration_type='ai' row, so no provider-backed result was produced here.