Use the Salesforce Connect REST API (Chatter REST API) to query record feeds and post rich feed items with inline images

domain: developer.salesforce.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

In-depth guide

Salesforce Bulk API 2.0 limits — the full failure-mode walkthrough related to developer.salesforce.com, checked against official docs, with linked verified routes.

Steps

  1. Authenticate with a standard Salesforce OAuth access token; the Connect API uses the same auth as other REST APIs
  2. GET the feed for a specific record by calling the /chatter/feeds/record/{recordId}/feed-elements endpoint, handling pagination with the nextPageUrl in the response
  3. Upload an image as a Content Version or use the binary upload endpoint to obtain a file reference before posting
  4. POST a new feed element to /chatter/feed-elements with a feedElementType of FeedItem, a subjectId pointing to the record, and a body containing MessageBody with segments including text, mentions (@user), and the file reference
  5. Include a capabilities object in the POST body to attach files by referencing the uploaded Content Version ID
  6. Verify the feed post appears on the record's Chatter feed by performing a follow-up GET request or checking the Salesforce UI

Known gotchas

Related routes

Use the Salesforce Connect REST API (Connect API / Chatter) to post a feed item with a file attachment to a record's feed
salesforce.com · 5 steps · unrated
Use Salesforce Connect REST (Chatter REST API) to post a feed item with a mention and a file attachment to a record feed
developer.salesforce.com · 6 steps · unrated
Stream records into a Salesforce Data Cloud data stream using the Streaming Ingestion API
developer.salesforce.com · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans