← 返回
安全合规 Key 中文

Salesforce API Integration

Complete Salesforce REST API for SOQL queries, CRUD operations, Bulk API, Composite API, authentication, and standard objects with error handling.
完整的Salesforce REST API,支持SOQL查询、CRUD操作、Bulk API、Composite API、身份验证及标准对象,并含错误处理。
ivangdavila
安全合规 clawhub v1.0.1 1 版本 100000 Key: 需要
★ 0
Stars
📥 827
下载
💾 9
安装
1
版本
#latest

概述

Salesforce API Integration

Complete Salesforce REST API reference. See auxiliary files for detailed operations.

Quick Start

curl "$SF_INSTANCE_URL/services/data/v59.0/sobjects/" \
  -H "Authorization: Bearer $SF_ACCESS_TOKEN"

Setup

On first use, read setup.md. Preferences stored in ~/salesforce-api-integration/memory.md.

When to Use

Any Salesforce operation: SOQL queries, record CRUD, bulk imports/exports, metadata, composite requests.

Architecture

~/salesforce-api-integration/
├── memory.md      # Org context and object schemas
└── queries.md     # Saved SOQL queries

Quick Reference

TopicFile
-------------
Setup and authenticationsetup.md, memory-template.md
SOQL queries and searchsoql.md
Records: create, read, update, deleterecords.md
Standard objects referenceobjects.md
Bulk API 2.0 for large datasetsbulk.md
Composite and batch requestscomposite.md
Metadata and schemametadata.md
Error handlingerrors.md

Core Rules

  1. Bearer token auth - Authorization: Bearer $SF_ACCESS_TOKEN
  2. Instance URL required - Each org has unique URL like https://yourorg.my.salesforce.com
  3. API version in path - Use /services/data/v59.0/ (or newer)
  4. SOQL for queries - Salesforce Object Query Language for data retrieval
  5. Object API names - Use API names: Account, Contact__c (custom objects end in __c)
  6. Pagination for large results - Use nextRecordsUrl for results over 2000
  7. Rate limits - Vary by edition, typically 100k+ calls/day

Authentication

Required environment variables:

  • SF_ACCESS_TOKEN - OAuth access token for API calls
  • SF_INSTANCE_URL - Your Salesforce instance (e.g., https://yourorg.my.salesforce.com)
# All requests require these headers
curl "$SF_INSTANCE_URL/services/data/v59.0/..." \
  -H "Authorization: Bearer $SF_ACCESS_TOKEN" \
  -H "Content-Type: application/json"

Common Traps

  • Wrong instance URL - 404 or DNS errors
  • Expired access token - 401 INVALID_SESSION_ID
  • Missing field permissions - Field appears null
  • SOQL syntax errors - MALFORMED_QUERY
  • Relationship name vs field name - Use Account.Name not AccountId.Name

External Endpoints

EndpointPurpose
-------------------
https://.my.salesforce.com/services/data/REST API
https://.my.salesforce.com/services/async/Bulk API
https://login.salesforce.com/services/oauth2/*OAuth (production)
https://test.salesforce.com/services/oauth2/*OAuth (sandbox)

Security & Privacy

Environment variables used:

  • SF_ACCESS_TOKEN - for API authentication
  • SF_INSTANCE_URL - for API endpoint routing

Sent to Salesforce: Queries, record data via your instance URL

Stays local: Access token (in environment variable only), ~/salesforce-api-integration/ preferences

Never: Store tokens in files, log sensitive data, bypass field-level security

Scope

This skill ONLY:

  • Makes requests to Salesforce REST API endpoints
  • Stores preferences in ~/salesforce-api-integration/
  • Provides curl and code examples

This skill NEVER:

  • Accesses files outside ~/salesforce-api-integration/
  • Makes requests to non-Salesforce endpoints
  • Stores access tokens in files

Trust

By using this skill, data is sent to Salesforce (salesforce.com).

Only install if you trust Salesforce with your CRM data.

Related Skills

Install with clawhub install if user confirms:

  • api — REST API patterns
  • crm — CRM workflows
  • accounting — Financial operations

Feedback

  • If useful: clawhub star salesforce-api-integration
  • Stay updated: clawhub sync

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-29 16:51 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,349 📥 317,592
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 437 📥 147,066
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,687