Skip to main content
Beta Group

Get calls associated with an account or a deal

  • February 24, 2026
  • 1 reply
  • 16 views

Hi there!

 

We're building a custom integration using the Copilot REST API and running into issues with the get-account and get-deal endpoints. Looking for some clarity on whether these endpoints are applicable to our setup.

 

Our setup:
- Native Salesforce integration (active, accounts and deals are visible in the Clari UI)
- Using the public REST API at rest-api.copilot.clari.com

 

The issue:
We've tried calling GET /get-account and GET /get-deal with every ID we can find — the MongoDB-style ID from the browser URL (e.g. copilot.clari.com/account/631f95eda365c3309f8e5691), the deal ID from the URL fragment (#deal=68125f8e874de55754b19857), and the Salesforce Account/Opportunity ID — and all return "Not found deal/account with id xx".

 

Our questions:
1. Are GET /get-account and GET /get-deal intended for orgs using the native Salesforce integration, or only for orgs that push CRM data programmatically via /update-account and /update-deal?
2. If they do apply to our setup, what is the correct ID format these endpoints expect?
3. Is there any supported way via the public REST API to retrieve all calls associated with a specific Salesforce Account or Opportunity?

Thanks in advance!

 

PS: Topic category may be wrong, it was the only option

1 reply

Forum|alt.badge.img+2
  • Engaged Member
  • February 25, 2026

Hi Youssef!

Thank you for reaching out.

Scope of GET /get-account and GET /get-deal

Those endpoints were originally designed for customers not using a native CRM integration. They only return data for accounts/deals that were created in Copilot via the REST API (e.g., /create-account, /create-deal) where the CRM source is marked as RESTAPI.

Because you’re on the native Salesforce integration and your Accounts/Opportunities are coming directly from Salesforce, /get-account and /get-deal will not find those records, so the "Not found account/deal with id xx" responses you’re seeing are expected for that setup.

Getting all calls for a Salesforce Account or Opportunity via the public REST API

Unfortunately, There isn’t a dedicated “get all calls by account/opportunity ID” endpoint and we do not handle this use case.

We will take this as a feedback to our Product team. Thank you so much for your suggestion.