A I
AI assistant and natural language queries
Get AI service status
Returns the status of all configured AI providers and which one is active
Authorization
AuthorizationRequiredBearer <token>Session token from the SalesOS web app.
In: header
X-API-Key<token>API key from Settings → API Keys. Authorization: ApiKey <key> is also accepted. Each operation lists the scope it needs under x-api-key-scopes.
In: header
AI service status
Test AI connection
Tests the connection to AI providers by sending a simple prompt
Authorization
AuthorizationRequiredBearer <token>Session token from the SalesOS web app.
In: header
X-API-Key<token>API key from Settings → API Keys. Authorization: ApiKey <key> is also accepted. Each operation lists the scope it needs under x-api-key-scopes.
In: header
Request Body
application/jsonRequiredproviderstringProvider to test
"openai" | "anthropic" | "auto"Header Parameters
Idempotency-KeystringUnique key (a UUID is ideal) that makes this write safe to retry for 24 hours: a retry with the same body replays the original response (Idempotent-Replayed: true); the same key with a different body is a 409.
255Connection test successful
Test specific AI provider connection
Tests the connection to a specific AI provider
Authorization
AuthorizationRequiredBearer <token>Session token from the SalesOS web app.
In: header
X-API-Key<token>API key from Settings → API Keys. Authorization: ApiKey <key> is also accepted. Each operation lists the scope it needs under x-api-key-scopes.
In: header
Path Parameters
providerRequiredstringProvider to test
"openai" | "anthropic"Header Parameters
Idempotency-KeystringUnique key (a UUID is ideal) that makes this write safe to retry for 24 hours: a retry with the same body replays the original response (Idempotent-Replayed: true); the same key with a different body is a 409.
255Connection test successful
Generate email draft
Generate a professional sales email draft using AI with subject line and body
Authorization
AuthorizationRequiredBearer <token>Session token from the SalesOS web app.
In: header
X-API-Key<token>API key from Settings → API Keys. Authorization: ApiKey <key> is also accepted. Each operation lists the scope it needs under x-api-key-scopes.
In: header
Request Body
application/jsonRequiredrecipientNameRequiredstringName of the email recipient
recipientCompanyRequiredstringCompany name of the recipient
purposeRequiredstringPurpose of the email (e.g., follow-up, introduction, proposal)
tonestringTone of the email
"professional and friendly"additionalContextstringAdditional context or information to include
recipientTitlestringRecipient job title
dealStagestringCurrent deal stage
dealValuenumberDeal value in dollars
painPointsarray<string>Known pain points of the prospect
lastInteractionstringSummary of last interaction
competitorsarray<string>Competitors being considered
providerstringPreferred AI provider
"openai" | "anthropic" | "auto"Header Parameters
Idempotency-KeystringUnique key (a UUID is ideal) that makes this write safe to retry for 24 hours: a retry with the same body replays the original response (Idempotent-Replayed: true); the same key with a different body is a 409.
255Email draft generated successfully
Analyze deal
Get AI-powered insights and recommendations for a sales deal
Authorization
AuthorizationRequiredBearer <token>Session token from the SalesOS web app.
In: header
X-API-Key<token>API key from Settings → API Keys. Authorization: ApiKey <key> is also accepted. Each operation lists the scope it needs under x-api-key-scopes.
In: header
Request Body
application/jsonRequirednameRequiredstringName of the deal
valueRequirednumberValue of the deal in dollars
stageRequiredstringCurrent stage of the deal (e.g., Prospecting, Negotiation, Closing)
notesstringNotes about the deal
activitiesarray<string>List of recent activities
daysInStagenumberNumber of days in current stage
providerstringPreferred AI provider
"openai" | "anthropic" | "auto"Header Parameters
Idempotency-KeystringUnique key (a UUID is ideal) that makes this write safe to retry for 24 hours: a retry with the same body replays the original response (Idempotent-Replayed: true); the same key with a different body is a 409.
255Deal analysis completed
Score lead
Get an AI-powered lead score (0-100) with detailed reasoning
Authorization
AuthorizationRequiredBearer <token>Session token from the SalesOS web app.
In: header
X-API-Key<token>API key from Settings → API Keys. Authorization: ApiKey <key> is also accepted. Each operation lists the scope it needs under x-api-key-scopes.
In: header
Request Body
application/jsonRequirednameRequiredstringName of the lead
companystringCompany name
titlestringJob title
sourcestringLead source (e.g., Website, Referral, Event)
emailstringEmail address
phonestringPhone number
activitiesarray<string>Recent activities
notesstringAdditional notes
websitestringCompany website
industrystringIndustry
companySizestringCompany size (e.g., 1-10, 11-50, 51-200)
engagementLevelstringEngagement level
providerstringPreferred AI provider
"openai" | "anthropic" | "auto"Header Parameters
Idempotency-KeystringUnique key (a UUID is ideal) that makes this write safe to retry for 24 hours: a retry with the same body replays the original response (Idempotent-Replayed: true); the same key with a different body is a 409.
255Lead scored successfully
Summarize meeting
Summarize a meeting transcript and extract key points, action items, and next steps
Authorization
AuthorizationRequiredBearer <token>Session token from the SalesOS web app.
In: header
X-API-Key<token>API key from Settings → API Keys. Authorization: ApiKey <key> is also accepted. Each operation lists the scope it needs under x-api-key-scopes.
In: header
Request Body
application/jsonRequiredtranscriptRequiredstringMeeting transcript or notes to summarize
providerstringPreferred AI provider
"openai" | "anthropic" | "auto"Header Parameters
Idempotency-KeystringUnique key (a UUID is ideal) that makes this write safe to retry for 24 hours: a retry with the same body replays the original response (Idempotent-Replayed: true); the same key with a different body is a 409.
255Meeting summarized successfully
Suggest follow-up
Get AI-powered suggestions for follow-up actions, including email drafts and call scripts
Authorization
AuthorizationRequiredBearer <token>Session token from the SalesOS web app.
In: header
X-API-Key<token>API key from Settings → API Keys. Authorization: ApiKey <key> is also accepted. Each operation lists the scope it needs under x-api-key-scopes.
In: header
Request Body
application/jsonRequiredlastInteractionstringDescription of the last interaction
lastInteractionDatestringDate of the last interaction
dealStagestringCurrent deal stage
objectionsarray<string>List of objections raised
dealValuenumberValue of the deal
contactNamestringContact name
companyNamestringCompany name
previousActionsarray<string>List of previous actions taken
dealNotesstringAdditional deal notes
providerstringPreferred AI provider
"openai" | "anthropic" | "auto"Header Parameters
Idempotency-KeystringUnique key (a UUID is ideal) that makes this write safe to retry for 24 hours: a retry with the same body replays the original response (Idempotent-Replayed: true); the same key with a different body is a 409.
255Follow-up suggestions generated
Generate completion
Generate a custom AI completion with your own prompt
Authorization
AuthorizationRequiredBearer <token>Session token from the SalesOS web app.
In: header
X-API-Key<token>API key from Settings → API Keys. Authorization: ApiKey <key> is also accepted. Each operation lists the scope it needs under x-api-key-scopes.
In: header
Request Body
application/jsonRequiredpromptRequiredstringThe prompt to send to the AI
systemPromptstringSystem prompt to guide AI behavior
maxTokensnumberMaximum tokens in response
1000temperaturenumberTemperature for response creativity (0-1)
0.7providerstringPreferred AI provider
"openai" | "anthropic" | "auto"Header Parameters
Idempotency-KeystringUnique key (a UUID is ideal) that makes this write safe to retry for 24 hours: a retry with the same body replays the original response (Idempotent-Replayed: true); the same key with a different body is a 409.
255Completion generated successfully
Get insights
Authorization
AuthorizationRequiredBearer <token>Session token from the SalesOS web app.
In: header
X-API-Key<token>API key from Settings → API Keys. Authorization: ApiKey <key> is also accepted. Each operation lists the scope it needs under x-api-key-scopes.
In: header
Get deal insights
Authorization
AuthorizationRequiredBearer <token>Session token from the SalesOS web app.
In: header
X-API-Key<token>API key from Settings → API Keys. Authorization: ApiKey <key> is also accepted. Each operation lists the scope it needs under x-api-key-scopes.
In: header
Path Parameters
idRequiredstringGet lead insights
Authorization
AuthorizationRequiredBearer <token>Session token from the SalesOS web app.
In: header
X-API-Key<token>API key from Settings → API Keys. Authorization: ApiKey <key> is also accepted. Each operation lists the scope it needs under x-api-key-scopes.
In: header
Dismiss insight
Authorization
AuthorizationRequiredBearer <token>Session token from the SalesOS web app.
In: header
X-API-Key<token>API key from Settings → API Keys. Authorization: ApiKey <key> is also accepted. Each operation lists the scope it needs under x-api-key-scopes.
In: header
Path Parameters
idRequiredstringHeader Parameters
Idempotency-KeystringUnique key (a UUID is ideal) that makes this write safe to retry for 24 hours: a retry with the same body replays the original response (Idempotent-Replayed: true); the same key with a different body is a 409.
255