| name | salesloft-local-dev-loop |
| description | Configure SalesLoft local development with API mocking and sandbox testing.
Use when setting up a development environment, building integration tests,
or creating mock SalesLoft API responses for offline development.
Trigger: "salesloft dev setup", "salesloft local", "test salesloft locally".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(npx:*), Grep |
| version | 1.6.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","sales","outreach","salesloft"] |
| compatibility | Designed for Claude Code |
SalesLoft Local Dev Loop
Overview
Set up a local development workflow for SalesLoft integrations with API mocking, environment separation, and fast iteration. SalesLoft has no official sandbox -- use test data tagging and request recording for safe development.
Prerequisites
- Completed
salesloft-install-auth setup
- Node.js 18+ with Vitest
- Separate SalesLoft test workspace (recommended)
Instructions
Step 1: Create API Client Wrapper
import axios, { AxiosInstance } from 'axios';
export function createClient(token?: string): AxiosInstance {
return axios.create({
baseURL: process.env.SALESLOFT_BASE_URL || 'https://api.salesloft.com/v2',
headers: {
Authorization: `Bearer ${token || process.env.SALESLOFT_API_KEY}`,
'Content-Type': 'application/json',
},
});
}
Step 2: Create Fixtures from Real API Shape
export const mockPerson = {
data: {
id: 1001, display_name: 'Test User', email_address: 'test@example.com',
first_name: 'Test', last_name: 'User', : ,
: , : ,
: [], : ,
},
};
mockPeopleList = {
: [mockPerson.],
: { : { : , : , : , : } },
};
mockCadence = {
: {
: , : , : ,
: , : ,
: , : { : },
},
};
mockActivity = {
: {
: , : , : ,
: , : , : ,
},
};