This document outlines the API endpoints and HTTP requests made during EdgeTier’s polling of Salesforce for different types of communications (emails, chats, and calls). For each communication type, it details the specific API calls made, including authentication, data retrieval, and user information requests.
Base URLs (API version 62.0):
https://{salesforce_url}/services/oauth2/tokenhttps://{salesforce_url}/services/data/v62.0/queryhttps://{salesforce_url}/services/data/v62.0/sobjects/Userhttps://{salesforce_url}/services/data/v62.0/connect/conversationThe polling interval is configurable (e.g. poll_delay_minutes). It’s usually between 30 and 90 seconds, but can be adjusted as needed for API rate limits.
Case)Objects: Case, EmailMessage, CaseComment, optionally FeedItem, case history object, and survey objects.
Each poll may make:
https://{salesforce_url}/services/oauth2/token — retrieve access tokenhttps://{salesforce_url}/services/data/v62.0/query — Case objects (updated in the time window).../query — EmailMessage (email threads) for the cases, in batches of 200 cases per query.../query — CaseComment for the cases, in batches of 200 cases per query.../query — case history (e.g. CaseHistory / CaseHistory2, name from case_history_object_name)retrieve_feed_item): 1+ GET .../query — FeedItem (Type = ‘TextPost’) for the cases, in batches of 200https://{salesforce_url}/services/data/v62.0/sobjects/User/{id} per distinct Case Owner — agent information (cached, so typically fewer than one per case)