Quickstart
Get started with the SalesInt API — authenticate, connect your first channel, and start capturing leads in minutes.
Install the SDK
Node.jsPythoncurl
bash
npm install @salesint/node
bash
pip install salesint-sdk
Authentication
All API requests require an API key. The SDKs read from the SALESINT_API_KEY environment variable by default.
Getting Your API Key
- Log in to your SalesInt account at salesint.ai
- Go to Settings → API Keys
- Click Create API Key
- Copy the key immediately — you won't be able to see it again
ℹ️Key format: si_ prefix + 64 hex characters (67 total). Keys are stored as SHA-256 hashes — only shown once at creation.
Set Up the Client
javascript
import SalesInt from '@salesint/node';
const client = new SalesInt(); // reads SALESINT_API_KEY env var
python
from salesint import SalesInt
client = SalesInt() # reads SALESINT_API_KEY env var
bash
export SALESINT_API_KEY="si_..."
curl https://salesint.ai/api/v1/websites \
-H "Authorization: Bearer $SALESINT_API_KEY"
1 Create a Website
Websites group your AI chatbot configuration and lead pipeline. Create one per brand or property.
javascript
const { website } = await client.websites.create({
name: 'My Company',
url: 'https://mycompany.com',
description: 'B2B SaaS company selling project management tools',
});
console.log('Website created:', website.id);
python
result = client.websites.create(
name="My Company",
url="https://mycompany.com",
description="B2B SaaS company selling project management tools"
)
print(f"Website created: {result.website['id']}")
bash
curl -X POST https://salesint.ai/api/v1/websites \
-H "Authorization: Bearer $SALESINT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "My Company",
"url": "https://mycompany.com"
}'
2 Embed the Chat Widget
Paste this one-line script into your website's <head> or just before </body>. Replace WEBSITE_ID with the ID from Step 1.
html
<script src="https://salesint.ai/widget/widget.js" data-id="WEBSITE_ID"></script>
✅That's it. The AI agent goes live immediately — no further config needed. It trains on your URL automatically.
3 Connect a Messaging Channel
Connect WhatsApp, Instagram, or Telegram to unify all conversations into one inbox.
javascript
// Get an OAuth URL to authorize a platform
const { authUrl } = await client.social.auth.getConnectUrl({
platform: 'instagram',
websiteId: 'web_abc123',
});
// Redirect your user to authorize
console.log('Open:', authUrl);
| Platform | API Value | Auth Type |
|---|
| WhatsApp Business | whatsapp | Meta OAuth |
| Instagram | instagram | Meta OAuth |
| Telegram | telegram | Bot Token |
| Twitter / X | twitter | OAuth 2.0 |
| LinkedIn | linkedin | OAuth 2.0 |
| Facebook | facebook | Meta OAuth |
| YouTube | youtube | Google OAuth |
| TikTok | tiktok | OAuth 2.0 |
4 Schedule Your First Post
javascript
const { post } = await client.social.posts.create({
content: 'Hello world! Posting via the SalesInt API 🚀',
scheduledFor: '2026-06-10T09:00:00',
timezone: 'America/New_York',
platforms: [
{ platform: 'twitter', accountId: 'acc_xyz789' },
{ platform: 'linkedin', accountId: 'acc_abc123' },
],
});
console.log('Post scheduled:', post.id);
What's Next?