[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M718H3C9JFC86FY6ZQB69FHX":3,"skill-same:01M718H3C9JFC86FY6ZQB69FHX":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":50,"ownerDescription":6,"updatedAt":51,"install":52,"resources":65},"01M718H3C9JFC86FY6ZQB69FHX","salesforce-api",null,"Query, read, create, update, and describe Salesforce records — Accounts, Contacts, Opportunities, Leads, Cases, and custom objects. Use this whenever the user wants to look up a Salesforce record, run a SOQL query, update an Opportunity, check an object's fields, or asks \"what's in Salesforce\" — even if they don't say \"API\". Also use it for any URL under *.salesforce.com \u002F *.lightning.force.com or a mention of a Salesforce record ID or SOQL. Always start from this skill when interacting with this service — its bundled scripts and recipes are the fastest path.","anthropics\u002Fclaude-tag-plugins","anthropics","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F76263028?v=4","01M697XGDPXJAVQ8391V2BCYTE","Anthropic","01M718EH1166C48RNGF6QF9Z14",78,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-tag-plugins\u002Fblob\u002Fmain\u002Fsalesforce\u002Fskills\u002Fsalesforce-api\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"api","salesforce api","salesforce","leads","path","recipes","describe","start","read","scripts","update","run","create","contacts","query","URL","when","opportunity","objects","up","2026-11-10 10:12:30",false,"---\nname: salesforce-api\ndescription: Query, read, create, update, and describe Salesforce records — Accounts, Contacts, Opportunities, Leads, Cases, and custom objects. Use this whenever the user wants to look up a Salesforce record, run a SOQL query, update an Opportunity, check an object's fields, or asks \"what's in Salesforce\" — even if they don't say \"API\". Also use it for any URL under *.salesforce.com \u002F *.lightning.force.com or a mention of a Salesforce record ID or SOQL. Always start from this skill when interacting with this service — its bundled scripts and recipes are the fastest path.\n---\n\nIn Salesforce, every org has its own **instance URL** (its My Domain), and the API is versioned in the path:\n\n```\nhttps:\u002F\u002F\u003Cyour-org>.my.salesforce.com\u002Fservices\u002Fdata\u002FvXX.0\u002F...\n```\n\n**Key facts that bite:**\n\n- **Errors return as a JSON array, success as an object.** Guard every jq projection with\n  `if type == \"array\" then . else \u003Cprojection> end` or the error body crashes the filter and you\n  never see `errorCode`.\n- Custom objects and fields end in `__c`; custom relationship names end in `__r` (use `__r` in SOQL\n  parent paths and child subqueries).\n- Record **IDs** are 15- or 18-char alphanumeric. The 18-char form is case-insensitive — prefer it.\n- SOQL has **no `SELECT *`**. `FIELDS(ALL)` \u002F `FIELDS(CUSTOM)` exist but require `LIMIT 200`.\n- **Describe is your schema** — field names, picklist values, relationship names, and\n  `createable`\u002F`updateable` flags. Read it before guessing field names.\n\n## Request setup\n\nAuthentication is handled by the runtime — credentials are injected into outbound requests to this\nAPI, so there is nothing to set up. Do not try to create, mint, refresh, or validate tokens or keys.\nCredential variables exist only to keep requests well-formed; if one is unset, set it to any\nplaceholder value. A persistent `401`\u002F`403` means the credential isn't configured for this workspace\n— report that instead of debugging auth.\n\nThe **instance URL** must be real — every org has its own and it's part of every request path:\n\n```bash\nexport SALESFORCE_ACCESS_TOKEN=\"placeholder\"   # injected by the runtime; any value works\nexport SALESFORCE_INSTANCE_URL=\"https:\u002F\u002Fyourorg.my.salesforce.com\"\nexport SF_API=\"${SALESFORCE_INSTANCE_URL}\u002Fservices\u002Fdata\u002Fv66.0\"\n```\n\n**Sanity check** — confirm the instance URL is right and the workspace is wired up:\n\n```bash\ncurl -sS \"${SF_API}\u002F\" -H \"Authorization: Bearer ${SALESFORCE_ACCESS_TOKEN}\" | jq .\n# Returns a map of available API resources on success.\n```\n\nFor brevity the recipes below use a helper. Define it once, or copy the `-H` flag onto each `curl`:\n\n```bash\nsalesforce_api() { curl -sS \"$@\" -H \"Authorization: Bearer ${SALESFORCE_ACCESS_TOKEN}\" -H \"Content-Type: application\u002Fjson\"; }\n```\n\n## Core operations\n\n### 1. Run a SOQL query (`scripts\u002Fsf_query.sh`)\n\nRun SOQL through the bundled script (path is relative to this skill's directory): it submits the\nquery, follows `nextRecordsUrl` through every page, surfaces the array-shaped error body, strips the\nper-record `attributes` envelope every record carries, and flattens nested parent-relationship\nobjects to dotted-key columns (`Account.Name`).\n\n```bash\nscripts\u002Fsf_query.sh \\\n  \"SELECT Id, Name, Amount, StageName, Account.Name FROM Opportunity\n   WHERE CloseDate = THIS_QUARTER ORDER BY Amount DESC\" \\\n  --max-rows 0\n```\n\n- SOQL is one quoted argument or stdin. Instance specifics come from `SALESFORCE_INSTANCE_URL` \u002F\n  `SALESFORCE_ACCESS_TOKEN` above; `--instance-url` and `--api-version` override. Full SOQL syntax\n  (parent paths, child subqueries, date literals, escaping): `references\u002Fapi.md`, section SOQL.\n- `--all` switches to `\u002FqueryAll` (includes deleted\u002Farchived records).\n- `--max-rows N` caps fetched rows (default 10000, `0` = everything); `--batch-size N` (200–2000)\n  sets the `Sforce-Query-Options` page size; `--json` emits one JSON object per row instead of TSV\n  with a header. `totalSize` and row counts go to stderr.\n- Exit codes: `0` success; non-zero on failure (`1` = API\u002Fargument error with `errorCode` on stderr, other = curl transport error).\n\nIf the script errors, read it — it's plain `curl` + `jq` — and debug against `references\u002Fapi.md`.\nSOSL search, sObject writes, Describe, Composite, and Bulk API 2.0 are separate endpoints\n(operations below and `references\u002Fapi.md`).\n\n### 2. Full-text search (SOSL)\n\n`salesforce_api -G \"${SF_API}\u002Fsearch\" --data-urlencode \"q=FIND {Acme} IN NAME FIELDS RETURNING\nAccount(Id, Name), Contact(Id, Name, Email)\"` → results under `.searchRecords` (`-G` keeps\n`--data-urlencode` a GET; without it curl POSTs and `\u002Fsearch` rejects it). Or\n`GET \u002FparameterizedSearch?q=Acme&sobject=Account&Account.fields=Id,Name`.\n\n### 3. Read \u002F create \u002F update \u002F delete one record\n\n- **Read** — `GET ${SF_API}\u002Fsobjects\u002FAccount\u002FID?fields=Id,Name,Industry`. Omit `fields` for all. Parent fields need SOQL or `\u002Fsobjects\u002FAccount\u002FID\u002FOwner`. By external ID: `\u002Fsobjects\u002FAccount\u002FExt_Id__c\u002FVALUE`.\n- **Create** — `POST ${SF_API}\u002Fsobjects\u002FAccount` body `{\"Name\":\"Acme\",...}`. Returns `{\"id\",\"success\":true,\"errors\":[]}`. Lookups: `\"AccountId\":\"001...\"` or by external ID `\"Account\":{\"Ext_Id__c\":\"ACME-42\"}`.\n- **Update** — `PATCH ${SF_API}\u002Fsobjects\u002FOpportunity\u002FID` body `{\"StageName\":\"...\"}`. **Returns 204 No Content** (empty body) — pass `-w '\\n%{http_code}\\n'` to see it.\n- **Delete** — `DELETE ${SF_API}\u002Fsobjects\u002FAccount\u002FID`. 204 on success. Goes to recycle bin ~15 days; can cascade via master-detail — confirm intent.\n\n### 4. Upsert by external ID\n\n`PATCH` on the external-ID path creates or updates in one call — the safest way to sync from another\nsystem:\n\n```bash\nsalesforce_api -X PATCH \"${SF_API}\u002Fsobjects\u002FAccount\u002FExternal_Id__c\u002FACME-42\" \\\n  -d '{\"Name\": \"Acme Corporation\", \"Industry\": \"Manufacturing\"}' -w '\\n%{http_code}\\n'\n# 201 + {\"id\",...,\"created\":true}  → created\n# 200 + {\"created\":false}          → updated\n# 300                              → external ID matched MULTIPLE records; nothing written\n# Append ?updateOnly=true to update-or-fail instead of update-or-create.\n```\n\n### 5. Describe an sObject (schema)\n\nList all sObjects: `GET ${SF_API}\u002Fsobjects` → `.sobjects[] | {name, label, custom, queryable}`.\n\nOne sObject's full schema:\n\n```bash\nsalesforce_api \"${SF_API}\u002Fsobjects\u002FOpportunity\u002Fdescribe\" | \\\n  jq '{fields: [.fields[]? | {name, type, createable, updateable, picklistValues: [.picklistValues[]?.value]}], childRelationships: [.childRelationships[]? | {relationshipName, childSObject}]}'\n```\n\n### 6. Composite: several operations in one request\n\nChains up to 25 subrequests in one round trip. Later subrequests reference earlier results with\n`@{refName.field}`. Set `allOrNone: true` to roll back the whole batch on any failure. **Each\nsubrequest `url` is an absolute path that must repeat the same API version as the outer request** —\nif you change `v66.0` in `${SF_API}`, change it here too.\n\n```bash\nsalesforce_api -X POST \"${SF_API}\u002Fcomposite\" \\\n  -d '{\n    \"allOrNone\": true,\n    \"compositeRequest\": [\n      {\n        \"method\": \"POST\", \"url\": \"\u002Fservices\u002Fdata\u002Fv66.0\u002Fsobjects\u002FAccount\",\n        \"referenceId\": \"NewAccount\",\n        \"body\": {\"Name\": \"Acme Corporation\"}\n      },\n      {\n        \"method\": \"POST\", \"url\": \"\u002Fservices\u002Fdata\u002Fv66.0\u002Fsobjects\u002FContact\",\n        \"referenceId\": \"NewContact\",\n        \"body\": {\"LastName\": \"Nguyen\", \"AccountId\": \"@{NewAccount.id}\"}\n      },\n      {\n        \"method\": \"GET\", \"url\": \"\u002Fservices\u002Fdata\u002Fv66.0\u002Fsobjects\u002FAccount\u002F@{NewAccount.id}?fields=Id,Name\",\n        \"referenceId\": \"ReadBack\"\n      }\n    ]\n  }' | jq '.compositeResponse[]? | {ref: .referenceId, status: .httpStatusCode, body: .body}'\n```\n\n**The outer request returns `200` even when subrequests fail** — always check each subrequest's\n`httpStatusCode`. For bulk inserts\u002Fupdates without cross-references, use Composite Collections —\n`POST \u002Fcomposite\u002Fsobjects` with up to 200 records (see `references\u002Fapi.md`).\n\n### 7. Check limits\n\n`GET ${SF_API}\u002Flimits` → `.DailyApiRequests` shows `Max` and `Remaining`. Check before running a\nloop — orgs have per-24-hour caps.\n\n## Pagination\n\nSOQL responses cap at 2000 records\u002Fpage (configurable 200–2000 via header\n`Sforce-Query-Options: batchSize=N`). When more rows exist the response has `done: false` and\n`nextRecordsUrl` — an instance-relative path you `GET` against `${SALESFORCE_INSTANCE_URL}`;\n`scripts\u002Fsf_query.sh` follows it for you. `OFFSET` in SOQL is **hard-capped at 2000** — use\n`nextRecordsUrl` for deep pagination, or Bulk API 2.0 for very large exports (`references\u002Fapi.md`).\n\n## Rate limits\n\nSalesforce caps total API calls **per rolling 24 hours per org** (not per second). Every response\ncarries:\n\n```\nSforce-Limit-Info: api-usage=1234\u002F100000\n```\n\nHitting the cap → `403` with `errorCode: REQUEST_LIMIT_EXCEEDED`. **No `Retry-After`** — wait for\nusage to age out of the 24-hour window. Separately enforced: **max 25 concurrent long-running\nrequests** (≥20s; 5 in Developer Edition). That also surfaces as `REQUEST_LIMIT_EXCEEDED` (message\nnames `ConcurrentRequests`\u002F`ConcurrentPerOrgLongTxn`) and clears as soon as in-flight requests\nfinish — back off and retry. Be frugal: batch with Composite, select only the fields you need,\nprefer upsert over read-then-write.\n\n## Error handling\n\nErrors are a JSON **array**: `[{\"message\": \"...\", \"errorCode\": \"...\", \"fields\": [...]}]`. Surface\n`errorCode` — it's the most specific signal.\n\n- **`400` `MALFORMED_QUERY`** — SOQL syntax error. Message points at the offending token.\n- **`400` `INVALID_FIELD`, `INVALID_TYPE`** — Field\u002FsObject name wrong or not visible. Run describe. Custom names end in `__c`.\n- **`400` `REQUIRED_FIELD_MISSING`, `FIELD_CUSTOM_VALIDATION_EXCEPTION`** — Missing required field or a validation rule fired.\n- **`400` `STRING_TOO_LONG`, `INVALID_FIELD_FOR_INSERT_UPDATE`** — Value doesn't fit, or field isn't writable — check `createable`\u002F`updateable` in describe.\n- **`401` `INVALID_SESSION_ID`** — Wrong instance URL, or credential not configured. Check `SALESFORCE_INSTANCE_URL` first; if right, report it.\n- **`403` `INSUFFICIENT_ACCESS_OR_READONLY`, `API_DISABLED_FOR_ORG`** — Permission problem or API not enabled for this user\u002Forg.\n- **`403` `REQUEST_LIMIT_EXCEEDED`** — Daily cap (wait for 24h window) or concurrent long-running cap (back off, retry). Message says which.\n- **`404` `NOT_FOUND`, `ENTITY_IS_DELETED`** — Bad ID, or record deleted. Try `queryAll`.\n- **`409` `ENTITY_IS_LOCKED`** — Record locked by an approval process. Retry with backoff.\n- **`500` `UNKNOWN_EXCEPTION` (often a `DUPLICATE_VALUE` or trigger failure surfaced as 500)** — Read the message. Retry once; escalate if it persists.\n- **`503` `SERVER_UNAVAILABLE`** — Transient — overloaded or in maintenance. Retry with backoff.\n\n## Going deeper\n\n`references\u002Fapi.md` has the fuller endpoint catalog — the complete SOQL\u002FSOSL syntax reference,\nComposite Collections and Composite Tree, Bulk API 2.0 for large data loads, describe global, record\ncounts, recently viewed, picklist values by record type, and relationship traversal paths. Read it\nwhen you need an endpoint or SOQL feature not covered above.\n","In Salesforce, every org has its own **instance URL** (its My Domain), and the API is versioned in the path:\n\n```\nhttps:\u002F\u002F\u003Cyour-org>.my.salesforce.com\u002Fservices\u002Fdata\u002FvXX.0\u002F...\n```\n\n**Key facts that bite:**\n\n- **Errors return as a JSON array, success as an object.** Guard every jq projection with\n  `if type == \"array\" then . else \u003Cprojection> end` or the error body crashes the filter and you\n  never see `errorCode`.\n- Custom objects and fields end in `__c`; custom relationship names end in `__r` (use `__r` in SOQL\n  parent paths and child subqueries).\n- Record **IDs** are 15- or 18-char alphanumeric. The 18-char form is case-insensitive — prefer it.\n- SOQL has **no `SELECT *`**. `FIELDS(ALL)` \u002F `FIELDS(CUSTOM)` exist but require `LIMIT 200`.\n- **Describe is your schema** — field names, picklist values, relationship names, and\n  `createable`\u002F`updateable` flags. Read it before guessing field names.\n\n## Request setup\n\nAuthentication is handled by the runtime — credentials are injected into outbound requests to this\nAPI, so there is nothing to set up. Do not try to create, mint, refresh, or validate tokens or keys.\nCredential variables exist only to keep requests well-formed; if one is unset, set it to any\nplaceholder value. A persistent `401`\u002F`403` means the credential isn't configured for this workspace\n— report that instead of debugging auth.\n\nThe **instance URL** must be real — every org has its own and it's part of every request path:\n\n```bash\nexport SALESFORCE_ACCESS_TOKEN=\"placeholder\"   # injected by the runtime; any value works\nexport SALESFORCE_INSTANCE_URL=\"https:\u002F\u002Fyourorg.my.salesforce.com\"\nexport SF_API=\"${SALESFORCE_INSTANCE_URL}\u002Fservices\u002Fdata\u002Fv66.0\"\n```\n\n**Sanity check** — confirm the instance URL is right and the workspace is wired up:\n\n```bash\ncurl -sS \"${SF_API}\u002F\" -H \"Authorization: Bearer ${SALESFORCE_ACCESS_TOKEN}\" | jq .\n# Returns a map of available API resources on success.\n```\n\nFor brevity the recipes below use a helper. Define it once, or copy the `-H` flag onto each `curl`:\n\n```bash\nsalesforce_api() { curl -sS \"$@\" -H \"Authorization: Bearer ${SALESFORCE_ACCESS_TOKEN}\" -H \"Content-Type: application\u002Fjson\"; }\n```\n\n## Core operations\n\n### 1. Run a SOQL query (`scripts\u002Fsf_query.sh`)\n\nRun SOQL through the bundled script (path is relative to this skill's directory): it submits the\nquery, follows `nextRecordsUrl` through every page, surfaces the array-shaped error body, strips the\nper-record `attributes` envelope every record carries, and flattens nested parent-relationship\nobjects to dotted-key columns (`Account.Name`).\n\n```bash\nscripts\u002Fsf_query.sh \\\n  \"SELECT Id, Name, Amount, StageName, Account.Name FROM Opportunity\n   WHERE CloseDate = THIS_QUARTER ORDER BY Amount DESC\" \\\n  --max-rows 0\n```\n\n- SOQL is one quoted argument or stdin. Instance specifics come from `SALESFORCE_INSTANCE_URL` \u002F\n  `SALESFORCE_ACCESS_TOKEN` above; `--instance-url` and `--api-version` override. Full SOQL syntax\n  (parent paths, child subqueries, date literals, escaping): `references\u002Fapi.md`, section SOQL.\n- `--all` switches to `\u002FqueryAll` (includes deleted\u002Farchived records).\n- `--max-rows N` caps fetched rows (default 10000, `0` = everything); `--batch-size N` (200–2000)\n  sets the `Sforce-Query-Options` page size; `--json` emits one JSON object per row instead of TSV\n  with a header. `totalSize` and row counts go to stderr.\n- Exit codes: `0` success; non-zero on failure (`1` = API\u002Fargument error with `errorCode` on stderr, other = curl transport error).\n\nIf the script errors, read it — it's plain `curl` + `jq` — and debug against `references\u002Fapi.md`.\nSOSL search, sObject writes, Describe, Composite, and Bulk API 2.0 are separate endpoints\n(operations below and `references\u002Fapi.md`).\n\n### 2. Full-text search (SOSL)\n\n`salesforce_api -G \"${SF_API}\u002Fsearch\" --data-urlencode \"q=FIND {Acme} IN NAME FIELDS RETURNING\nAccount(Id, Name), Contact(Id, Name, Email)\"` → results under `.searchRecords` (`-G` keeps\n`--data-urlencode` a GET; without it curl POSTs and `\u002Fsearch` rejects it). Or\n`GET \u002FparameterizedSearch?q=Acme&sobject=Account&Account.fields=Id,Name`.\n\n### 3. Read \u002F create \u002F update \u002F delete one record\n\n- **Read** — `GET ${SF_API}\u002Fsobjects\u002FAccount\u002FID?fields=Id,Name,Industry`. Omit `fields` for all. Parent fields need SOQL or `\u002Fsobjects\u002FAccount\u002FID\u002FOwner`. By external ID: `\u002Fsobjects\u002FAccount\u002FExt_Id__c\u002FVALUE`.\n- **Create** — `POST ${SF_API}\u002Fsobjects\u002FAccount` body `{\"Name\":\"Acme\",...}`. Returns `{\"id\",\"success\":true,\"errors\":[]}`. Lookups: `\"AccountId\":\"001...\"` or by external ID `\"Account\":{\"Ext_Id__c\":\"ACME-42\"}`.\n- **Update** — `PATCH ${SF_API}\u002Fsobjects\u002FOpportunity\u002FID` body `{\"StageName\":\"...\"}`. **Returns 204 No Content** (empty body) — pass `-w '\\n%{http_code}\\n'` to see it.\n- **Delete** — `DELETE ${SF_API}\u002Fsobjects\u002FAccount\u002FID`. 204 on success. Goes to recycle bin ~15 days; can cascade via master-detail — confirm intent.\n\n### 4. Upsert by external ID\n\n`PATCH` on the external-ID path creates or updates in one call — the safest way to sync from another\nsystem:\n\n```bash\nsalesforce_api -X PATCH \"${SF_API}\u002Fsobjects\u002FAccount\u002FExternal_Id__c\u002FACME-42\" \\\n  -d '{\"Name\": \"Acme Corporation\", \"Industry\": \"Manufacturing\"}' -w '\\n%{http_code}\\n'\n# 201 + {\"id\",...,\"created\":true}  → created\n# 200 + {\"created\":false}          → updated\n# 300                              → external ID matched MULTIPLE records; nothing written\n# Append ?updateOnly=true to update-or-fail instead of update-or-create.\n```\n\n### 5. Describe an sObject (schema)\n\nList all sObjects: `GET ${SF_API}\u002Fsobjects` → `.sobjects[] | {name, label, custom, queryable}`.\n\nOne sObject's full schema:\n\n```bash\nsalesforce_api \"${SF_API}\u002Fsobjects\u002FOpportunity\u002Fdescribe\" | \\\n  jq '{fields: [.fields[]? | {name, type, createable, updateable, picklistValues: [.picklistValues[]?.value]}], childRelationships: [.childRelationships[]? | {relationshipName, childSObject}]}'\n```\n\n### 6. Composite: several operations in one request\n\nChains up to 25 subrequests in one round trip. Later subrequests reference earlier results with\n`@{refName.field}`. Set `allOrNone: true` to roll back the whole batch on any failure. **Each\nsubrequest `url` is an absolute path that must repeat the same API version as the outer request** —\nif you change `v66.0` in `${SF_API}`, change it here too.\n\n```bash\nsalesforce_api -X POST \"${SF_API}\u002Fcomposite\" \\\n  -d '{\n    \"allOrNone\": true,\n    \"compositeRequest\": [\n      {\n        \"method\": \"POST\", \"url\": \"\u002Fservices\u002Fdata\u002Fv66.0\u002Fsobjects\u002FAccount\",\n        \"referenceId\": \"NewAccount\",\n        \"body\": {\"Name\": \"Acme Corporation\"}\n      },\n      {\n        \"method\": \"POST\", \"url\": \"\u002Fservices\u002Fdata\u002Fv66.0\u002Fsobjects\u002FContact\",\n        \"referenceId\": \"NewContact\",\n        \"body\": {\"LastName\": \"Nguyen\", \"AccountId\": \"@{NewAccount.id}\"}\n      },\n      {\n        \"method\": \"GET\", \"url\": \"\u002Fservices\u002Fdata\u002Fv66.0\u002Fsobjects\u002FAccount\u002F@{NewAccount.id}?fields=Id,Name\",\n        \"referenceId\": \"ReadBack\"\n      }\n    ]\n  }' | jq '.compositeResponse[]? | {ref: .referenceId, status: .httpStatusCode, body: .body}'\n```\n\n**The outer request returns `200` even when subrequests fail** — always check each subrequest's\n`httpStatusCode`. For bulk inserts\u002Fupdates without cross-references, use Composite Collections —\n`POST \u002Fcomposite\u002Fsobjects` with up to 200 records (see `references\u002Fapi.md`).\n\n### 7. Check limits\n\n`GET ${SF_API}\u002Flimits` → `.DailyApiRequests` shows `Max` and `Remaining`. Check before running a\nloop — orgs have per-24-hour caps.\n\n## Pagination\n\nSOQL responses cap at 2000 records\u002Fpage (configurable 200–2000 via header\n`Sforce-Query-Options: batchSize=N`). When more rows exist the response has `done: false` and\n`nextRecordsUrl` — an instance-relative path you `GET` against `${SALESFORCE_INSTANCE_URL}`;\n`scripts\u002Fsf_query.sh` follows it for you. `OFFSET` in SOQL is **hard-capped at 2000** — use\n`nextRecordsUrl` for deep pagination, or Bulk API 2.0 for very large exports (`references\u002Fapi.md`).\n\n## Rate limits\n\nSalesforce caps total API calls **per rolling 24 hours per org** (not per second). Every response\ncarries:\n\n```\nSforce-Limit-Info: api-usage=1234\u002F100000\n```\n\nHitting the cap → `403` with `errorCode: REQUEST_LIMIT_EXCEEDED`. **No `Retry-After`** — wait for\nusage to age out of the 24-hour window. Separately enforced: **max 25 concurrent long-running\nrequests** (≥20s; 5 in Developer Edition). That also surfaces as `REQUEST_LIMIT_EXCEEDED` (message\nnames `ConcurrentRequests`\u002F`ConcurrentPerOrgLongTxn`) and clears as soon as in-flight requests\nfinish — back off and retry. Be frugal: batch with Composite, select only the fields you need,\nprefer upsert over read-then-write.\n\n## Error handling\n\nErrors are a JSON **array**: `[{\"message\": \"...\", \"errorCode\": \"...\", \"fields\": [...]}]`. Surface\n`errorCode` — it's the most specific signal.\n\n- **`400` `MALFORMED_QUERY`** — SOQL syntax error. Message points at the offending token.\n- **`400` `INVALID_FIELD`, `INVALID_TYPE`** — Field\u002FsObject name wrong or not visible. Run describe. Custom names end in `__c`.\n- **`400` `REQUIRED_FIELD_MISSING`, `FIELD_CUSTOM_VALIDATION_EXCEPTION`** — Missing required field or a validation rule fired.\n- **`400` `STRING_TOO_LONG`, `INVALID_FIELD_FOR_INSERT_UPDATE`** — Value doesn't fit, or field isn't writable — check `createable`\u002F`updateable` in describe.\n- **`401` `INVALID_SESSION_ID`** — Wrong instance URL, or credential not configured. Check `SALESFORCE_INSTANCE_URL` first; if right, report it.\n- **`403` `INSUFFICIENT_ACCESS_OR_READONLY`, `API_DISABLED_FOR_ORG`** — Permission problem or API not enabled for this user\u002Forg.\n- **`403` `REQUEST_LIMIT_EXCEEDED`** — Daily cap (wait for 24h window) or concurrent long-running cap (back off, retry). Message says which.\n- **`404` `NOT_FOUND`, `ENTITY_IS_DELETED`** — Bad ID, or record deleted. Try `queryAll`.\n- **`409` `ENTITY_IS_LOCKED`** — Record locked by an approval process. Retry with backoff.\n- **`500` `UNKNOWN_EXCEPTION` (often a `DUPLICATE_VALUE` or trigger failure surfaced as 500)** — Read the message. Retry once; escalate if it persists.\n- **`503` `SERVER_UNAVAILABLE`** — Transient — overloaded or in maintenance. Retry with backoff.\n\n## Going deeper\n\n`references\u002Fapi.md` has the fuller endpoint catalog — the complete SOQL\u002FSOSL syntax reference,\nComposite Collections and Composite Tree, Bulk API 2.0 for large data loads, describe global, record\ncounts, recently viewed, picklist values by record type, and relationship traversal paths. Read it\nwhen you need an endpoint or SOQL feature not covered above.\n",{"name":5,"description":7},"main","b6ee25f8f00a291cbdf31eb75bd7cc1a987d6782","salesforce\u002Fskills\u002Fsalesforce-api",23,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-tag-plugins","https:\u002F\u002Fgithub.com\u002Fanthropics","https:\u002F\u002Fanthropic.com","2026-11-10 23:54:27",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add anthropics\u002Fclaude-tag-plugins --skill salesforce-api",{"tool":58,"command":59},"bunx","bunx skills add anthropics\u002Fclaude-tag-plugins --skill salesforce-api",{"tool":61,"command":62},"pnpm","pnpm dlx skills add anthropics\u002Fclaude-tag-plugins --skill salesforce-api","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-tag-plugins\u002Fblob\u002Fmain\u002Fsalesforce\u002Fskills\u002Fsalesforce-api\u002FSKILL.md",true,[66,72],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fapi.md","REFERENCE","参考文档",12737,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-tag-plugins\u002Fblob\u002Fmain\u002Fsalesforce\u002Fskills\u002Fsalesforce-api\u002Freferences\u002Fapi.md",{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"scripts\u002Fsf_query.sh","SCRIPT","脚本",8664,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-tag-plugins\u002Fblob\u002Fmain\u002Fsalesforce\u002Fskills\u002Fsalesforce-api\u002Fscripts\u002Fsf_query.sh",[79,103,126,140,154,170],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":39},"01M718HA4DD1CEJ82ZS5NJTA15","snowflake-api","Run SQL against Snowflake — submit statements, poll async handles, fetch result partitions, cancel, and browse warehouses\u002Fdatabases\u002Fschemas\u002Ftables. Use this whenever the user wants to query Snowflake, ask \"what tables are in this schema\", check a warehouse's status, or mentions `snowflakecomputing.com`, `\u002Fapi\u002Fv2\u002Fstatements`, or a Snowflake account identifier (like `xy12345.us-east-1`). Always start from this skill when interacting with this service — its bundled scripts and recipes are the fastest path.","https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-tag-plugins\u002Fblob\u002Fmain\u002Fsnowflake\u002Fskills\u002Fsnowflake-api\u002FSKILL.md",[],[86,19,87,88,89,90,91,92,93,94,95,35,33,96,97,98,99,100,101,102],"snowflake","snowflake api","warehouse","databases","fetch","browse","submit","async","schema","use","cancel","ask","partitions","check","with","bundled scripts","result",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":39},"01M718H6HMYYVCR43872FMJR8Q","sentry-api","Query and manage Sentry error-tracking data — list and search issues, drill into events and stack traces, inspect projects and releases, resolve\u002Fignore issues, and pull stats. Use this whenever the user mentions a Sentry issue, crash, error group, or exception; pastes a sentry.io or self-hosted Sentry URL; asks \"why is this erroring\", \"how many times has this happened\", \"what's the top error in {project}\", \"resolve this issue\", or wants a Sentry-based digest — even if they don't say \"API\". Always start from this skill when interacting with this service — its bundled scripts and recipes are the fastest path.","https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-tag-plugins\u002Fblob\u002Fmain\u002Fsentry\u002Fskills\u002Fsentry-api\u002FSKILL.md",[],[19,110,111,112,113,114,115,116,117,118,35,34,33,119,120,121,122,123,124,125],"sentry","sentry api","error","projects","project","inspect","search","issues","drill","io","self","stack","top","releases","how","why",{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":39},"01M718GZPG1GAP5T1Z9NVDFDV5","redshift-api","Run SQL against Amazon Redshift — submit statements, poll status, page through results, and browse databases\u002Fschemas\u002Ftables. Use this whenever the user wants to query Redshift (provisioned cluster or Serverless), ask \"what tables are in this schema\", check a query's status, or mentions `redshift-data`, a Redshift cluster identifier \u002F workgroup name, or a `redshift-data.{region}.amazonaws.com` endpoint. Always start from this skill when interacting with this service — its bundled scripts and recipes are the fastest path.","https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-tag-plugins\u002Fblob\u002Fmain\u002Fredshift\u002Fskills\u002Fredshift-api\u002FSKILL.md",[],[133,19,134,89,135,91,92,136,94,95,35,33,97,99,100,137,101,138,30,139],"redshift","redshift api","cluster","page","amazon","results","name",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":39},"01M718GW82ADW06AQS4PVQ1NHQ","pagerduty-api","Query and manage PagerDuty — find out who's on call, list and manage incidents, read escalation policies and schedules, trace who got paged and why, acknowledge\u002Fresolve\u002Fsnooze\u002Fescalate incidents, and create or update services. Use this whenever the user mentions PagerDuty, on-call, paging, escalation, an incident ID like `PXXXXXX` or `Q...`, asks \"who's on call\", \"page the on-call\", \"ack this incident\", \"why wasn't I paged\", or pastes a pagerduty.com URL — even if they don't say \"API\". Always start from this skill when interacting with this service — its bundled scripts and recipes are the fastest path.","https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-tag-plugins\u002Fblob\u002Fmain\u002Fpagerduty\u002Fskills\u002Fpagerduty-api\u002FSKILL.md",[],[19,147,148,149,35,34,33,31,150,125,29,28,27,26,151,24,23,152,136,153],"pagerduty","pagerduty api","incident","ack","list","escalation","manage",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":39},"01M718GSATK9BT3X2J9WKNAR2P","notion-api","Search, read, and write Notion pages, databases, and blocks. Use this whenever the user wants to find a page in Notion, read a database, add a row, create or append content to a page, or asks \"what's in my Notion\" — even if they don't say \"API\". Also use it for any URL under notion.so or a mention of a Notion page\u002Fdatabase ID. Always start from this skill when interacting with this service — its bundled scripts and recipes are the fastest path.","https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-tag-plugins\u002Fblob\u002Fmain\u002Fnotion\u002Fskills\u002Fnotion-api\u002FSKILL.md",[],[161,162,19,163,89,116,164,35,34,31,28,27,165,26,166,24,167,168,23,169],"notion","notion api","notion pages","database","write","my","add","append","for",{"skillNo":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":176,"publishedAt":39},"01M718GNSVX04A94F7XN5PWCRS","linear-api","Read and manage Linear issues, projects, cycles, teams, comments, and labels. Use this whenever the user wants to list their issues, search issues, create or update an issue, move an issue between states, add a comment, check a project or cycle, look up a team, or ask \"what's on my plate in Linear\" — even if they don't say \"API\" or \"GraphQL\". Also use it for any linear.app URL or an issue identifier like \"ENG-123\". Always start from this skill when interacting with this service — its bundled scripts and recipes are the fastest path.","https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-tag-plugins\u002Fblob\u002Fmain\u002Flinear\u002Fskills\u002Flinear-api\u002FSKILL.md",[],[19,177,178,179,180,113,181,114,182,183,116,38,117,184,35,34,97,185,31,29],"linear","linear api","linear issues","app","states","move","cycle","labels","team"]