| name | salesloft-install-auth |
| description | Set up SalesLoft API authentication with OAuth 2.0 or API key.
Use when configuring a new SalesLoft integration, setting up OAuth flows,
or initializing API access to the SalesLoft REST API v2.
Trigger: "install salesloft", "setup salesloft", "salesloft auth", "salesloft API key".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(pip:*), Grep |
| version | 1.6.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","sales","outreach","salesloft"] |
| compatibility | Designed for Claude Code |
SalesLoft Install & Auth
Overview
Configure access to the SalesLoft REST API v2. SalesLoft supports two OAuth 2.0 flows (authorization code and client credentials) plus API key auth. All requests require Authorization: Bearer <token> header. Base URL: https://api.salesloft.com/v2/.
Prerequisites
- SalesLoft account with API access enabled
- App registered at developers.salesloft.com for OAuth
- Node.js 18+ or Python 3.10+
Instructions
Step 1: Install HTTP Client
npm install axios dotenv
pip install requests python-dotenv
Step 2: Register OAuth Application
- Go to developers.salesloft.com > Your Applications
- Click "Create Application"
- Set redirect URI (e.g.,
http://localhost:3000/callback)
- Copy
client_id and client_secret
Step 3: Configure Environment
SALESLOFT_CLIENT_ID=your-client-id
SALESLOFT_CLIENT_SECRET=your-client-secret
SALESLOFT_REDIRECT_URI=http://localhost:3000/callback
SALESLOFT_API_KEY=your-api-key
Step 4: Implement OAuth Authorization Code Flow
import axios from 'axios';
const authUrl = `https://accounts.salesloft.com/oauth/authorize?` +
`client_id=${process.env.SALESLOFT_CLIENT_ID}` +
`&redirect_uri=${encodeURIComponent(process.env.SALESLOFT_REDIRECT_URI!)}` +
`&response_type=code`;
async function exchangeCode() {
{ data } = axios.(, {
: process..,
: process..,
code,
: ,
: process..,
});
data;
}