> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/crm-sales/clari.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# Clari

Clari is a revenue forecasting platform. Export forecast, activity and audit data, read opportunities and add data to Clari records.

![Clari logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-552c14eea07c56e5f3e8ab338dfc382e974be796%2Fclari.png?alt=media)

|                    |                                                                        |
| ------------------ | ---------------------------------------------------------------------- |
| **Category**       | [CRM and sales](https://docs.fastn.ai/connectors/catalog/crm-sales.md) |
| **Website**        | [clari.com](https://clari.com)                                         |
| **Authentication** | API key                                                                |
| **Slug**           | `clari`                                                                |
| **On fastn.ai**    | [Embed Clari in your product](https://fastn.ai/integrations/clari)     |

## Setup

Your customers enter their API key for Clari when they connect. Nothing else needs setting up.

## Connect in Fastn

Your customers connect Clari from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **Clari**.
2. Select **Connect** on the Clari card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Fill in the fields the form asks for, using the values from [Setup](#setup) above. Then select **Connect**.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-51fb88ef328c525b5b11f8d7094bab11efc333b8%2Fconnect-credentials.png?alt=media" alt="The Connect ServiceNow dialog with an optional account name and the Instance, Username and Password fields, and Cancel and Connect buttons"><figcaption><p>A connect form that asks for credentials. Each connector asks for its own fields.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use Clari's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Add Entity Field Values</td><td><code>addEntityFieldValues</code></td><td>Register allowed values on a picklist or multi-picklist field of a Clari entity. Partner integration endpoint - needs a partnerkey in addition to the API token. Run this before sending records through Ingest Entity Data that set a picklist field: Clari validates ingested picklist values against this list and rejects the entire batch if a value is not registered. Values are added to the field, so an existing set is extended rather than replaced.</td></tr><tr><td>Cancel Export Job</td><td><code>cancelExportJob</code></td><td>Stop an export job that is scheduled or in progress. The job stops executing and gives back its slot against the org's concurrent export limit, which is the reason to use this - a stuck large export otherwise blocks the queue. The job record itself is kept and still appears in List Export Jobs, with status CANCELLED if it had not started or ABORTED if it was already running. CANCEL is the only operation this endpoint supports; a cancelled job cannot be resumed and has to be recreated.</td></tr><tr><td>Create Activity Export</td><td><code>createActivityExport</code></td><td>Queue an asynchronous export of sales activity - meetings, sent and received emails, and sent and received attachments - for a date range, and return the jobId. Step 1 of Clari's three-step bulk export: poll Get Export Job until DONE, then read the payload with Get Export Job Results. Each exported activity carries its owner and organiser, the accounts and opportunities Clari mapped it to, and every internal and external participant, which is what makes account and opportunity engagement reportable outside Clari. Counts against the org's monthly export quota.</td></tr><tr><td>Create Audit Events Export</td><td><code>createAuditEventsExport</code></td><td>Queue an asynchronous export of Clari audit events as a JSON file and return the jobId. Use this instead of List Audit Events when you need more than the 1000 events a single paged read returns - for example a full compliance pull over a long date range. Step 1 of the three-step bulk export: poll Get Export Job until DONE, then read it with Get Export Job Results. The exported file holds an items array of audit events plus an actors array resolving each actorId to a name and email. Counts against the org's monthly export quota.</td></tr><tr><td>Create Forecast Export</td><td><code>createForecastExport</code></td><td>Queue an asynchronous export of a Clari Forecast Tab and return the jobId that identifies it. This is step 1 of Clari's three-step bulk export: create the job here, poll Get Export Job until status is DONE, then read the payload with Get Export Job Results. The export can carry submitted forecast calls, quota, whether a rep actually updated their call, manager adjustments, and CRM totals - optionally week over week for the whole quarter. Each job counts against the org's monthly export quota (see Get API Limits).</td></tr><tr><td>Get API Limits</td><td><code>getApiLimits</code></td><td>Read your Clari organization's export limits and current consumption: the maximum number of concurrent export jobs, the rolling 30-day export quota, how much of each is still available, and the ids of the jobs that are running or counting against the quota. Call this before queueing a forecast, activity or audit export - once availableMonthlyQuota reaches zero, every export request fails. Quotas are org-level and only a Clari CSM can raise them.</td></tr><tr><td>Get Entity Field Values</td><td><code>getEntityFieldValues</code></td><td>Read the picklist and multi-picklist values currently registered on a Clari entity's fields. Partner integration endpoint - needs a partnerkey in addition to the API token. Use it to check which values Clari will accept before an ingestion run, so you can register anything missing with Add Entity Field Values instead of having the batch rejected. Omit fieldNames to get every picklist field on the entity, or pass a comma-separated list to narrow it. The response is keyed by field name, with each key holding that field's array of allowed values.</td></tr><tr><td>Get Export Job</td><td><code>getExportJob</code></td><td>Read the status of one export job by its jobId. This is step 2 of Clari's three-step bulk export and the only way to learn that an export has finished - Clari sends no completion notification, so poll this until status is DONE and only then call Get Export Job Results. Status values: SCHEDULED (queued), STARTED (running), DONE (ready to download), FAILED, CANCELLED (cancelled before it ran), ABORTED (cancelled while running). Also check rowsTruncated and cellsTruncated before trusting a DONE payload as complete.</td></tr><tr><td>Get Export Job Results</td><td><code>getExportJobResults</code></td><td>Download the contents of a finished export. Step 3 of Clari's three-step bulk export - call it only once Get Export Job reports status DONE, and before the job's expiredTime. The payload shape depends on which export produced it and on the exportFormat requested: a forecast export yields rows keyed by user, role, timeframe, forecast field, week and data type (Forecast Value, Forecast Updated, Quota,...); an activity export yields an activities array; an audit export yields items plus actors. Large exports will exceed Fastn's response truncation limit - the call still succeeds, so read the payload in the workflow rather than the test console.</td></tr><tr><td>Get Ingest Job Status</td><td><code>getIngestJobStatus</code></td><td>Check the status of an asynchronous Clari data ingestion job by its jobId. Partner integration endpoint - needs a partnerkey in addition to the API token. Poll until status leaves QUEUED and IN_PROGRESS. VALIDATION_FAILED means Clari rejected the payload's shape or values and nothing was written; FAILED means the job broke while running. Note that ingestion validation is all-or-nothing: if any record in a batch fails, the whole batch is rejected and has to be resubmitted after fixing the errors, so a FAILED or VALIDATION_FAILED job never leaves partial data behind.</td></tr></tbody></table>

<details>

<summary>View 4 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Get Opportunities</td><td><code>getOpportunities</code></td><td>Fetch Clari's view of one or more opportunities by CRM opportunity id, up to 100 per call. This is the only synchronous record read in the Clari API - everything else about opportunities comes out through an export job. What you get back that the CRM does not have is Clari's crmScore (a health score with an explanation message) and, per field, the trend and trendHistory showing how that field's value moved over time. Use it to enrich a CRM record with Clari's signal, or to check a single deal's health inside a workflow without queueing an export.</td></tr><tr><td>Ingest Entity Data</td><td><code>ingestEntityData</code></td><td>Push field extensions and sub-objects onto Clari's Account and Opportunity entities so they surface in Clari's Accounts and Opportunities views. This is the Clari partner integration path and needs a partnerkey in addition to the API token - it is synchronous, takes up to 100 records per request, and is the working alternative to Clari's bulk file upload (which Fastn cannot send, because it is multipart/form-data only). Records are matched on Salesforce Account or Opportunity id. Any custom field can be sent alongside the three mandatory keys; picklist-typed fields must have their allowed values registered first with Add Entity Field Values.</td></tr><tr><td>List Audit Events</td><td><code>listAuditEvents</code></td><td>Read Clari audit events synchronously, with filtering and pagination - who changed what in your Clari instance and when. This is the only read endpoint in the Clari API that pages: set limit (1-1000) and follow the returned nextLink for the next page. Because Clari has no webhooks, polling this with an advancing dateFrom is the supported way to drive change-triggered automation. The response also carries an actors array that resolves each actorId to a name and email, so you do not have to look users up separately. For volumes beyond a page-by-page read, use Create Audit Events Export instead.</td></tr><tr><td>List Export Jobs</td><td><code>listExportJobs</code></td><td>List every export job initiated by the user whose API token this connection uses - complete, cancelled and in-progress alike. Jobs from other users in the same org are not returned. Use it to find the jobId of an export you queued earlier, or to reconcile which exports have already been downloaded. Each entry carries the generated fileName, fileType, the module it came from (FORECAST, ACTIVITY, AUDIT), start and end times in epoch milliseconds, and an expiredTime after which the payload is no longer retrievable.</td></tr></tbody></table>

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/crm-sales/clari.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
