salesforce

Installation
SKILL.md

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

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:

  1. Which Apideck unified API covers Salesforce (CRM)
  2. The correct serviceId to pass on every call (salesforce)
  3. Salesforce-specific auth and coverage caveats

For the full method surface (parameters, pagination, filtering), use your language SDK skill:

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 / OFFSET into cursor tokens)
  • ✅ Field-level filtering via filter[...] query params
  • ✅ Deep pagination beyond 2,000 records (Apideck uses queryMore / nextRecordsUrl under 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 serviceId routes 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 to address.* in the unified shape
  • Picklist values — exposed verbatim; no enum normalization
  • Record types — available as record_type_id on writes; if omitted Salesforce uses the default for the user's profile
  • Polymorphic references (e.g., WhoId on Task) — Apideck resolves to the correct entity type in activity.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

Related skills

More from apideck-libraries/api-skills

Installs
3
GitHub Stars
2
First Seen
Apr 21, 2026