salesforce
Salesforce (via Apideck)
Access Salesforce through Apideck's CRM unified API — one of 21 CRM connectors that share the same method surface. Code you write here ports to Odoo, HubSpot, Pipedrive and 17 other CRM connectors by changing a single serviceId string. Apideck handles auth, pagination, rate limiting, and retries so you don't write per-tenant Salesforce plumbing.
Quick facts
- Apideck serviceId:
salesforce - Unified API: CRM
- Auth type: oauth2
- Gotchas: page
- Salesforce docs: https://developer.salesforce.com/docs
- Homepage: https://www.salesforce.com
When to use this skill
Activate this skill when the user explicitly wants to work with Salesforce — for example, "pull contacts in Salesforce" or "sync leads in Salesforce". This skill teaches the agent:
- Which Apideck unified API covers Salesforce (CRM)
- The correct
serviceIdto pass on every call (salesforce) - Salesforce-specific auth and coverage caveats
For the full method surface (parameters, pagination, filtering), use your language SDK skill:
apideck-node,apideck-python,apideck-dotnet,apideck-java,apideck-go,apideck-php, orapideck-rest
For the raw OpenAPI spec:
Minimal example (TypeScript)
import { Apideck } from "@apideck/unify";
const apideck = new Apideck({
apiKey: process.env.APIDECK_API_KEY,
appId: process.env.APIDECK_APP_ID,
consumerId: "your-consumer-id",
});
// List contacts in Salesforce
const { data } = await apideck.crm.contacts.list({
serviceId: "salesforce",
});
Portable across 21 CRM connectors
The Apideck CRM unified API exposes the same methods for every connector in its catalog. Switching from Salesforce to another CRM connector is a one-string change — no rewrite, no new SDK.
// Today — Salesforce
await apideck.crm.contacts.list({ serviceId: "salesforce" });
// Tomorrow — same code, different connector
await apideck.crm.contacts.list({ serviceId: "odoo" });
await apideck.crm.contacts.list({ serviceId: "hubspot" });
This is the compounding advantage of using Apideck over integrating Salesforce directly: code against the unified CRM API once, gain access to every connector in it. New connectors Apideck adds become available to your app without code changes.
Salesforce via Apideck CRM
Salesforce is the reference implementation for Apideck CRM. All Tier 1 CRM resources are supported; coverage is the most complete of any CRM connector.
Entity mapping
| Salesforce object | Apideck CRM resource |
|---|---|
| Contact | contacts |
| Account | companies |
| Lead | leads |
| Opportunity | opportunities |
| Task, Event | activities |
| User | users |
| Note (Task with note body) | notes |
| OpportunityStage / pipeline config | pipelines |
Custom objects (*__c) |
use Proxy API — not exposed through unified resources |
Coverage highlights
- ✅ Full CRUD on contacts, companies, leads, opportunities, activities, notes
- ✅ Pagination via cursor (Apideck normalizes SOQL
LIMIT/OFFSETinto cursor tokens) - ✅ Field-level filtering via
filter[...]query params - ✅ Deep pagination beyond 2,000 records (Apideck uses
queryMore/nextRecordsUrlunder the hood) - ❌ Custom objects — use Proxy API with the SOQL endpoint
- ❌ Apex REST endpoints — Proxy API
- ❌ Bulk API (2.0) job creation — Proxy API
Salesforce-specific auth notes
- Type: OAuth 2.0, managed by Apideck Vault
- Sandbox vs. production: the user picks environment during the Vault OAuth flow. The same
serviceIdroutes to both; connection is bound to whichever was chosen. - API daily limits: Salesforce enforces per-org daily API call limits based on edition (Professional/Enterprise/Unlimited). Apideck surfaces Salesforce's remaining-limit headers via
raw=true— monitor these for high-volume integrations. Hitting the daily limit means API calls fail until the 24h rolling window resets.
Common Salesforce quirks handled by Apideck
- Compound fields (e.g.,
BillingAddress) — flattened toaddress.*in the unified shape - Picklist values — exposed verbatim; no enum normalization
- Record types — available as
record_type_idon writes; if omitted Salesforce uses the default for the user's profile - Polymorphic references (e.g.,
WhoIdon Task) — Apideck resolves to the correct entity type inactivity.owner_id
Example: create an opportunity with a contact role
// 1. Create the opportunity
const { data: opp } = await apideck.crm.opportunities.create({
serviceId: "salesforce",
opportunity: {
name: "Acme — Enterprise deal",
amount: 50000,
close_date: "2026-06-30",
stage: "Qualification",
company_id: "001XXXXXXXXXXXXXXX",
},
});
// 2. For contact roles (Salesforce-specific), use Proxy
await fetch("https://unify.apideck.com/proxy", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.APIDECK_API_KEY}`,
"x-apideck-app-id": process.env.APIDECK_APP_ID,
"x-apideck-consumer-id": consumerId,
"x-apideck-service-id": "salesforce",
"x-apideck-downstream-url": "/services/data/v59.0/sobjects/OpportunityContactRole",
"Content-Type": "application/json",
},
body: JSON.stringify({
OpportunityId: opp.data.id,
ContactId: "003XXXXXXXXXXXXXXX",
Role: "Decision Maker",
}),
});
Sibling connectors
Other CRM connectors that share this unified API surface (same method signatures, just change serviceId):
odoo (beta), hubspot, pipedrive, zoho-crm, activecampaign, close, microsoft-dynamics, teamleader, and 12 more.
See also
- CRM OpenAPI spec · API Explorer
apideck-connector-coverage— programmatic coverage checksapideck-best-practices— architecture, Vault, pagination, error handlingapideck-node— TypeScript / Node SDK patterns- Salesforce official docs
More from apideck-libraries/api-skills
apideck-connector-coverage
Check Apideck connector API coverage before building integrations. Use when determining which operations a connector supports, comparing connector capabilities, or diagnosing why an API call fails with a specific connector. Teaches agents to query the Connector API for real-time coverage data.
18apideck-best-practices
Best practices for building Apideck integrations. Covers authentication patterns, pagination, error handling, connection management with Vault, webhook setup, and common pitfalls. Use when designing or reviewing any Apideck integration regardless of language.
18apideck-rest
Apideck Unified REST API reference for any language. Use when building integrations with accounting software (QuickBooks, Xero, NetSuite), CRMs (Salesforce, HubSpot, Pipedrive), HRIS platforms (Workday, BambooHR), file storage (Google Drive, Dropbox, Box), ATS systems (Greenhouse, Lever), e-commerce, or any of Apideck's 200+ connectors using direct HTTP calls. Covers authentication headers, CRUD operations, cursor-based pagination, filtering, sorting, error handling, rate limiting, pass-through parameters, and webhooks. Language-agnostic — works with curl, fetch, axios, httpx, or any HTTP client.
16apideck-portman
API contract testing with Portman by Apideck. Use when generating Postman collections from OpenAPI specs, writing contract tests, variation tests, integration tests, fuzz testing, or setting up CI/CD API test pipelines. Portman converts OpenAPI 3.x specs into Postman collections with auto-generated test suites.
14apideck-node
Apideck Unified API integration patterns for TypeScript and Node.js. Use when building integrations with accounting software (QuickBooks, Xero, NetSuite), CRMs (Salesforce, HubSpot, Pipedrive), HRIS platforms (Workday, BambooHR), file storage (Google Drive, Dropbox, Box), ATS systems (Greenhouse, Lever), e-commerce, or any of Apideck's 200+ connectors. Covers the @apideck/unify SDK, authentication, CRUD operations, pagination, filtering, webhooks, and Vault connection management.
14apideck-codegen
Generate typed API clients from Apideck OpenAPI specs using code generators. Use when the user wants to generate custom SDK clients, typed models, API stubs, or server scaffolding from Apideck's published OpenAPI specifications. Covers openapi-generator, Speakeasy, and Postman import workflows.
14