| name | salesloft-upgrade-migration |
| description | Migrate between SalesLoft API versions and handle breaking changes.
Use when SalesLoft announces API deprecations, upgrading OAuth flows,
or transitioning from legacy endpoints.
Trigger: "upgrade salesloft", "salesloft migration", "salesloft API version".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(git:*) |
| version | 1.6.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","sales","outreach","salesloft"] |
| compatibility | Designed for Claude Code |
SalesLoft Upgrade & Migration
Overview
SalesLoft REST API is versioned at v2 with no official SDK -- migrations involve endpoint changes, auth flow updates, and response schema changes. The Cadence Import/Export API was a major addition. Key migration: SalesLoft rebranded some endpoints and added OAuth client credentials flow.
Migration Scenarios
Legacy API Key to OAuth 2.0
const api = axios.create({
headers: { Authorization: `Bearer ${process.env.SALESLOFT_API_KEY}` },
});
class SalesloftOAuthClient {
private tokenStore: { access: string; refresh: string; expiresAt: number };
async getClient() {
if (Date.now() > this.tokenStore.expiresAt * 1000 - 300_000) {
await this.refreshToken();
}
return axios.create({
baseURL: 'https://api.salesloft.com/v2',
headers: { Authorization: `Bearer ${this.tokenStore.access}` },
});
}
private () {
{ data } = axios.(, {
: ,
: ..,
: process..,
: process..,
});
. = {
: data.,
: data.,
: .(.() / ) + data.,
};
}
}