# Clari

> Export Clari forecasts and activity, read opportunities and audit events, and work with Clari Copilot's calls, transcripts, scorecards and CRM records, with triggers for processed calls, new scorecards, finished exports and more.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/clari

## Actions

### Create account

Add a account from your CRM to Clari Copilot, so calls are matched to it.

**Inputs**

- Account CRM ID (`crm_id`, text, required): The account's ID in your CRM or system of record, which Copilot uses to find it again.
- Name (`name`, text): The company's name.
- Website (`website`, text): The company's website address.
- Phones (`phones`, list): The company's phone numbers.
- Description (`description`, text): A description of the company.
- Address (`address`, text): The company's full street address.
- City (`city`, text): The city the company is registered in.
- State (`state`, text): The state the company is registered in.
- Country (`country`, text): The country the company is in.
- ZIP code (`zip`, text): The postal code of the registered address.
- Custom fields (`custom_fields`, object): Other fields to keep, by name, such as Industry.

**Outputs**

- `data` (object): The response from Clari.

**Example output**

```json
{
  "data": {
    "address": "example",
    "city": "example",
    "country": "example",
    "crm_id": "example",
    "custom_fields": [
      {
        "key": "example",
        "value": "example"
      }
    ],
    "description": "example",
    "id": "example",
    "name": "example",
    "phones": [
      "example"
    ],
    "state": "example",
    "website": "example",
    "zip": "example"
  }
}
```

### Create call

Add a recorded call to Clari Copilot from a link to its audio or video, so Copilot transcribes and analyzes it.

**Inputs**

- Source call ID (`source_id`, text, required): The call's ID in the system it came from. Copilot uses it to avoid adding the same call twice.
- Recording URL (`audio_url`, text, required): A link Copilot can download the recording from: audio or video.
- Call time (`call_time`, date and time, required): When the call started.
- Source (`type`, text, required): Where the recording comes from. Choose Recording unless it's from one of the phone apps listed. One of: `RECORDING`, `VENDASTA`, `KNOWLARITY`, `CALL_HIPPO` (CallHippo), `RINGOVER`.
- Users (`user_emails`, list): The Copilot users the call belongs to. At least one must record calls in Copilot.
- Source user IDs (`source_user_ids`, list): The users' IDs in the system the call came from, if Copilot support has linked them.
- Title (`title`, text): The call's title. Leave empty to name it after who took part.
- External participant names (`participant_names`, list): The names of the people outside your company on the call.
- External participant emails (`participant_emails`, list): Their email addresses, in the same order as the names.
- External participant phones (`participant_phones`, list): Their phone numbers, in the same order as the names.
- Recording format (`audio_format`, text): The recording's format, such as mp3. Leave empty to go by the link.
- Download headers (`audio_headers`, object): Headers needed to download the recording, by name, such as Authorization.
- Replace existing call (`force_overwrite_old_call`, true/false): Replace a call Copilot already has with the same source call ID.
- Use one channel (`stereo_to_mono`, true/false): Process one channel only, for a stereo recording with the same sound on both.

**Outputs**

- `data` (object): The response from Clari.

**Example output**

```json
{
  "data": {
    "call_id": "example",
    "error": "example"
  }
}
```

### Create contact

Add a contact from your CRM to Clari Copilot, so calls are matched to it.

**Inputs**

- Contact CRM ID (`crm_id`, text, required): The contact's ID in your CRM or system of record, which Copilot uses to find it again.
- Account CRM ID (`account_crm_id`, text): The CRM ID of the account the contact works at.
- First name (`first_name`, text): The contact's first name.
- Last name (`last_name`, text): The contact's last name.
- Job title (`job_title`, text): The contact's job title.
- Emails (`emails`, list): The contact's email addresses.
- Phones (`phones`, list): The contact's phone numbers.
- Stage (`stage`, text): The contact's stage, such as Qualified.
- Reason (`reason`, text): Why the contact is at that stage.
- Is a lead (`is_lead`, true/false): Whether the contact is still a lead.
- Custom fields (`custom_fields`, object): Other fields to keep, by name, such as Industry.

**Outputs**

- `data` (object): The response from Clari.

**Example output**

```json
{
  "data": {
    "account_crm_id": "example",
    "crm_id": "example",
    "custom_fields": [
      {
        "key": "example",
        "value": "example"
      }
    ],
    "emails": [
      "example"
    ],
    "first_name": "example",
    "id": "example",
    "is_lead": true,
    "job_title": "example",
    "last_name": "example",
    "phones": [
      "example"
    ],
    "reason": "example",
    "stage": "example"
  }
}
```

### Create deal

Add a deal from your CRM to Clari Copilot, so calls are matched to it.

**Inputs**

- Deal CRM ID (`crm_id`, text, required): The deal's ID in your CRM or system of record, which Copilot uses to find it again.
- Name (`deal_name`, text): The deal's name.
- Account CRM ID (`account_crm_id`, text): The CRM ID of the account the deal is with.
- Owner CRM ID (`owner_crm_id`, text): The CRM ID of the person who owns the deal.
- Amount (`amount`, number): The deal's amount. At least 0.
- Stage (`stage`, text): The deal's stage, such as Negotiation.
- Probability (%) (`probability`, number): How likely the deal is to close, as a percentage. From 0 to 100.
- Forecast category (`forecast_category`, text): The deal's forecast category, such as Commit or Best Case.
- Close date (`close_date`, date): When the deal is expected to close.
- Created (`created_date`, date and time): When the deal was created.
- Last contacted (`last_contacted`, date and time): When the buyer was last contacted about the deal.
- Next call (`next_call_date`, date and time): When the next call about the deal is.
- Reason (`deal_reason`, text): Why the deal was won or lost.
- Custom fields (`custom_fields`, object): Other fields to keep, by name, such as Industry.

**Outputs**

- `data` (object): The response from Clari.

**Example output**

```json
{
  "data": {
    "account_crm_id": "example",
    "amount": "example",
    "close_date": "example",
    "close_date_change_history": [
      {
        "close_date": "example",
        "date_changed": "example",
        "prev_close_date": "example"
      }
    ],
    "created_date": "example",
    "crm_id": "example",
    "custom_fields": [
      {
        "key": "example",
        "value": "example"
      }
    ],
    "deal_name": "example",
    "deal_reason": "example",
    "forecast_category": "example",
    "id": "example",
    "last_contacted": "example",
    "next_call_date": "example",
    "owner_crm_id": "example",
    "probability": "example",
    "stage": "example",
    "stage_change_history": [
      {
        "date_changed": "example",
        "prev_stage": "example",
        "stage": "example"
      }
    ]
  }
}
```

### Delete account

Remove a account from Clari Copilot, by its CRM ID. It stays in your CRM.

**Inputs**

- Account CRM ID (`crm_id`, text, required): The account's CRM ID, as it was sent to Copilot.

**Outputs**

- `data` (object): The response from Clari.

**Example output**

```json
{
  "data": {
    "address": "example",
    "city": "example",
    "country": "example",
    "crm_id": "example",
    "custom_fields": [
      {
        "key": "example",
        "value": "example"
      }
    ],
    "description": "example",
    "id": "example",
    "name": "example",
    "phones": [
      "example"
    ],
    "state": "example",
    "website": "example",
    "zip": "example"
  }
}
```

### Delete contact

Remove a contact from Clari Copilot, by its CRM ID. It stays in your CRM.

**Inputs**

- Contact CRM ID (`crm_id`, text, required): The contact's CRM ID, as it was sent to Copilot.

**Outputs**

- `data` (object): The response from Clari.

**Example output**

```json
{
  "data": {
    "account_crm_id": "example",
    "crm_id": "example",
    "custom_fields": [
      {
        "key": "example",
        "value": "example"
      }
    ],
    "emails": [
      "example"
    ],
    "first_name": "example",
    "id": "example",
    "is_lead": true,
    "job_title": "example",
    "last_name": "example",
    "phones": [
      "example"
    ],
    "reason": "example",
    "stage": "example"
  }
}
```

### Delete deal

Remove a deal from Clari Copilot, by its CRM ID. It stays in your CRM.

**Inputs**

- Deal CRM ID (`crm_id`, text, required): The deal's CRM ID, as it was sent to Copilot.

**Outputs**

- `data` (object): The response from Clari.

**Example output**

```json
{
  "data": {
    "account_crm_id": "example",
    "amount": "example",
    "close_date": "example",
    "close_date_change_history": [
      {
        "close_date": "example",
        "date_changed": "example",
        "prev_close_date": "example"
      }
    ],
    "created_date": "example",
    "crm_id": "example",
    "custom_fields": [
      {
        "key": "example",
        "value": "example"
      }
    ],
    "deal_name": "example",
    "deal_reason": "example",
    "forecast_category": "example",
    "id": "example",
    "last_contacted": "example",
    "next_call_date": "example",
    "owner_crm_id": "example",
    "probability": "example",
    "stage": "example",
    "stage_change_history": [
      {
        "date_changed": "example",
        "prev_stage": "example",
        "stage": "example"
      }
    ]
  }
}
```

### Get account

Get a account Clari Copilot holds, by its CRM ID.

**Inputs**

- Account CRM ID (`crm_id`, text, required): The account's CRM ID, as it was sent to Copilot.

**Outputs**

- `data` (object): The response from Clari.

**Example output**

```json
{
  "data": {
    "address": "example",
    "city": "example",
    "country": "example",
    "crm_id": "example",
    "custom_fields": [
      {
        "key": "example",
        "value": "example"
      }
    ],
    "description": "example",
    "id": "example",
    "name": "example",
    "phones": [
      "example"
    ],
    "state": "example",
    "website": "example",
    "zip": "example"
  }
}
```

### Get API limits

Get how many exports can run at once and this month, how many are left, and the jobs counting towards them.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Clari.

**Example output**

```json
{
  "data": {
    "jobs": {
      "availableConcurrentLimit": 1,
      "availableMonthlyQuota": 1,
      "concurrentLimit": 1,
      "monthlyQuota": 1,
      "runningJobIds": [
        "example"
      ],
      "submittedJobIds": [
        "example"
      ]
    }
  }
}
```

### Get call

Get a call with its transcript, AI summary, action items, competitor mentions and metrics.

**Inputs**

- Call ID (`call_id`, text, required): The call's ID in Clari Copilot.
- Include audio link (`include_audio`, true/false): Include a link to the recording's audio, valid for 4 hours.
- Include video link (`include_video`, true/false): Include a link to the recording's video, valid for 4 hours.

**Outputs**

- `data` (object): The response from Clari.

**Example output**

```json
{
  "data": {
    "call": {
      "account_name": "example",
      "audio_url": "example",
      "bookmark_timestamps": [
        "example"
      ],
      "bot_not_join_reason": [
        "example"
      ],
      "calendar_id": "example",
      "call_review_page_url": "example",
      "competitor_sentiments": [
        {
          "competitor_name": "example",
          "personId": "example",
          "reasoning": "example",
          "sentiment": "example",
          "turn_start_time": "example"
        }
      ],
      "contact_names": [
        "example"
      ],
      "crm_info": {
        "account_id": "example",
        "contact_ids": [
          "example"
        ],
        "deal_id": "example",
        "source_crm": "example"
      },
      "deal_close_date": "example",
      "deal_name": "example",
      "deal_stage_before_call": "example",
      "deal_stage_live": "example",
      "deal_value": "example",
      "disposition": "example",
      "externalParticipants": [
        {
          "email": "example",
          "name": "example",
          "personId": 1,
          "phone": "example"
        }
      ],
      "icaluid": "example",
      "id": "example",
      "joinedParticipants": [
        {
          "email": "example",
          "name": "example",
          "personId": 1,
          "phone": "example"
        }
      ],
      "last_modified_time": "example",
      "metrics": {
        "call_duration": 1,
        "categories": [
          {
            "ai_detected": true,
            "name": "example",
            "occurences": 1
          }
        ],
        "engaging_questions": 1,
        "longest_monologue_duration": 1,
        "longest_monologue_start_time": 1,
        "num_questions_asked": 1,
        "num_questions_asked_by_reps": 1,
        "talk_listen_ratio": 1,
        "total_speak_duration": 1
      },
      "original_start_time": "example",
      "recurring_event_id": "example",
      "source_id": "example",
      "status": "SCHEDULED",
      "summary": {
        "full_summary": "example",
        "key_action_items": [
          {
            "action_item": "example",
            "end_timestamp": "example",
            "speaker_name": "example",
            "start_timestamp": "example"
          }
        ],
        "topics_discussed": [
          {
            "end_timestamp": "example",
            "name": "example",
            "start_timestamp": "example",
            "summary": "example"
          }
        ]
      },
      "time": "example",
      "title": "example",
      "transcript": [
        {
          "end": 1,
          "personId": 1,
          "start": 1,
          "text": "example"
        }
      ],
      "type": "example",
      "users": [
        {
          "isOrganizer": true,
          "personId": 1,
          "userEmail": "example",
          "userId": "example"
        }
      ],
      "video_url": "example"
    }
  }
}
```

### Get contact

Get a contact Clari Copilot holds, by its CRM ID.

**Inputs**

- Contact CRM ID (`crm_id`, text, required): The contact's CRM ID, as it was sent to Copilot.

**Outputs**

- `data` (object): The response from Clari.

**Example output**

```json
{
  "data": {
    "account_crm_id": "example",
    "crm_id": "example",
    "custom_fields": [
      {
        "key": "example",
        "value": "example"
      }
    ],
    "emails": [
      "example"
    ],
    "first_name": "example",
    "id": "example",
    "is_lead": true,
    "job_title": "example",
    "last_name": "example",
    "phones": [
      "example"
    ],
    "reason": "example",
    "stage": "example"
  }
}
```

### Get deal

Get a deal Clari Copilot holds, by its CRM ID.

**Inputs**

- Deal CRM ID (`crm_id`, text, required): The deal's CRM ID, as it was sent to Copilot.

**Outputs**

- `data` (object): The response from Clari.

**Example output**

```json
{
  "data": {
    "account_crm_id": "example",
    "amount": "example",
    "close_date": "example",
    "close_date_change_history": [
      {
        "close_date": "example",
        "date_changed": "example",
        "prev_close_date": "example"
      }
    ],
    "created_date": "example",
    "crm_id": "example",
    "custom_fields": [
      {
        "key": "example",
        "value": "example"
      }
    ],
    "deal_name": "example",
    "deal_reason": "example",
    "forecast_category": "example",
    "id": "example",
    "last_contacted": "example",
    "next_call_date": "example",
    "owner_crm_id": "example",
    "probability": "example",
    "stage": "example",
    "stage_change_history": [
      {
        "date_changed": "example",
        "prev_stage": "example",
        "stage": "example"
      }
    ]
  }
}
```

### Get export job

Get an export job's status (scheduled, started, done, failed or cancelled), its file name and when it expires.

**Inputs**

- Export job (`job_id`, text, required): The export job, by the job ID its export step returned.

**Outputs**

- `data` (object): The response from Clari.

**Example output**

```json
{
  "data": {
    "cellsTruncated": true,
    "currency": "example",
    "downloads": 1,
    "endTime": 1,
    "expiredTime": 1,
    "fileName": "example",
    "fileType": "example",
    "jobId": "example",
    "module": "example",
    "orgId": 1,
    "rowsTruncated": true,
    "startTime": 1,
    "status": "SCHEDULED",
    "title": "example",
    "userId": 1,
    "version": 1,
    "viewed": true
  }
}
```

### Get export results

Get the contents of a finished export: its JSON, or its text for a CSV export.

**Inputs**

- Export job (`job_id`, text, required): The export job, by the job ID its export step returned.

**Outputs**

- `data` (object): The response from Clari.

**Example output**

```json
{
  "data": {
    "content": {},
    "csv": "example",
    "format": "JSON"
  }
}
```

### Get opportunities

Get up to 100 opportunities as Clari sees them, with their CRM score and each field's value and trend.

**Inputs**

- Opportunity IDs (`opportunity_ids`, list, required): The opportunities' IDs in your CRM, such as Salesforce opportunity IDs.
- Mode (`mode`, text): The Clari mode ID to read in. Leave empty for the usual opportunity view.

**Outputs**

- `data` (object): The response from Clari.

**Example output**

```json
{
  "data": {
    "opportunities": [
      {
        "crmScore": {
          "message": "example",
          "score": 1
        },
        "fields": [
          {
            "alias": "example",
            "id": "example",
            "imageUrl": "example",
            "originalValue": "example",
            "trend": "example",
            "trendHistory": [
              {
                "date": 1,
                "newValue": "example",
                "oldValue": "example"
              }
            ],
            "value": "example"
          }
        ],
        "id": "example"
      }
    ]
  }
}
```

### List audit events

List who changed what in your Clari account and when, with the people involved. Covers the last 30 days unless you choose dates.

**Inputs**

- From (`date_from`, date and time): Only events from this time on.
- To (`date_to`, date and time): Only events up to this time.
- Event (`event`, text): Only this kind of event, such as api.accessed.
- User ID (`actor_id`, number): Only events by this Clari user, by their user ID.
- Device (`session_type`, text): Only events from this kind of device. One of: `WEB`, `IOS`, `ANDROID`.
- How many (`limit`, number): How many to return, up to 1,000. Leave empty for 100. From 1 to 1000.

**Outputs**

- `data` (object): The response from Clari.

**Example output**

```json
{
  "data": {
    "actors": [
      {
        "actorId": "example",
        "actorType": "example",
        "email": "example",
        "name": "example"
      }
    ],
    "items": [
      {
        "actorId": "example",
        "actorType": "USER",
        "correlationID": "example",
        "event": "example",
        "eventParameters": {},
        "eventTimestamp": "example",
        "impersonatingActorId": "example",
        "ipAddress": "example",
        "sessionId": "example",
        "sessionType": "WEB"
      }
    ],
    "nextLink": "example"
  }
}
```

### List calls

List Clari Copilot calls, newest or oldest first, filtered by user, attendee, topic, status, type, time or length.

**Inputs**

- Users (`users`, list): Only calls with these Copilot users.
- Attendee emails (`attendees`, list): Only calls with these attendees, by email address.
- Topics (`topics`, list): Only calls about these topics.
- Statuses (`statuses`, list): Only calls in these states. One or more of: `SCHEDULED`, `INITIATED`, `INPROGRESS` (In progress), `WAITING_IN_QUEUE` (Waiting in queue), `PROCESSING`, `PROCESSED`, `ERROR_IN_TRANSCRIBE` (Transcription failed), `ERROR_IN_PROCESSING` (Processing failed), `ERROR_IN_RECORDING` (Recording failed), `UNABLE_TO_JOIN` (Couldn't join), and 7 more.
- Call types (`types`, list): Only calls from these meeting or phone apps. One or more of: `ZOOM`, `GOOGLE_MEET` (Google Meet), `FRESHCALLER`, `AIRCALL_RECORDING` (Aircall), `RINGCENTRAL`, `GOTO_MEETING` (GoTo Meeting), `OUTREACH`, `HUBSPOT`, `BLUE_JEANS` (BlueJeans), `SALESLOFT`, and 4 more.
- From (`time_from`, date and time): Only those from this time on.
- To (`time_to`, date and time): Only those up to this time.
- Changed from (`modified_from`, date and time): Only calls whose status changed from this time on.
- Changed until (`modified_to`, date and time): Only calls whose status changed up to this time.
- Longer than (seconds) (`min_duration`, number): Only calls longer than this many seconds. From 0 to 7200.
- Shorter than (seconds) (`max_duration`, number): Only calls shorter than this many seconds. From 0 to 7200.
- Order (`sort`, text): The order, by the call's time. One of: `desc` (Newest first), `asc` (Oldest first).
- Include private calls (`include_private`, true/false): Include private calls.
- Include audio link (`include_audio`, true/false): Include a link to the recording's audio, valid for 4 hours.
- Include video link (`include_video`, true/false): Include a link to the recording's video, valid for 4 hours.
- How many (`limit`, number): How many to return, up to 100. Leave empty for 25. From 1 to 100.
- Skip (`skip`, number): How many to skip, for reading the next page. From 0 to 10000.

**Outputs**

- `data` (object): The response from Clari.

**Example output**

```json
{
  "data": {
    "calls": [
      {
        "account_name": "example",
        "audio_url": "example",
        "bookmark_timestamps": [
          "example"
        ],
        "bot_not_join_reason": [
          "example"
        ],
        "calendar_id": "example",
        "call_review_page_url": "example",
        "contact_names": [
          "example"
        ],
        "crm_info": {
          "account_id": "example",
          "contact_ids": [
            "example"
          ],
          "deal_id": "example",
          "source_crm": "example"
        },
        "deal_close_date": "example",
        "deal_name": "example",
        "deal_stage_before_call": "example",
        "deal_value": "example",
        "disposition": "example",
        "externalParticipants": [
          {
            "email": "example",
            "name": "example",
            "personId": 1,
            "phone": "example"
          }
        ],
        "icaluid": "example",
        "id": "example",
        "joinedParticipants": [
          {
            "email": "example",
            "name": "example",
            "personId": 1,
            "phone": "example"
          }
        ],
        "last_modified_time": "example",
        "metrics": {
          "call_duration": 1,
          "categories": [
            {
              "ai_detected": true,
              "name": "example",
              "occurences": 1
            }
          ],
          "engaging_questions": 1,
          "longest_monologue_duration": 1,
          "longest_monologue_start_time": 1,
          "num_questions_asked": 1,
          "num_questions_asked_by_reps": 1,
          "talk_listen_ratio": 1,
          "total_speak_duration": 1
        },
        "original_start_time": "example",
        "recurring_event_id": "example",
        "source_id": "example",
        "status": "SCHEDULED",
        "time": "example",
        "title": "example",
        "type": "example",
        "users": [
          {
            "isOrganizer": true,
            "personId": 1,
            "userEmail": "example",
            "userId": "example"
          }
        ],
        "video_url": "example"
      }
    ],
    "pagination": {
      "hasMore": true,
      "matched": 1,
      "nextPageSkip": 1
    }
  }
}
```

### List scorecards

List the scorecards calls were given, with each question's score, filtered by rep, scorer or time.

**Inputs**

- Rep (`rep_id`, text): Only scorecards for this rep's calls.
- Scorer (`scorer_id`, text): Only scorecards filled in by this person.
- From (`time_from`, date and time): Only those from this time on.
- To (`time_to`, date and time): Only those up to this time.
- How many (`limit`, number): How many to return, up to 100. Leave empty for 50. From 1 to 100.
- Skip (`skip`, number): How many to skip, for reading the next page. From 0 to 10000.

**Outputs**

- `data` (object): The response from Clari.

**Example output**

```json
{
  "data": {
    "pagination": {
      "hasMore": true,
      "matched": 1,
      "nextPageSkip": 1
    },
    "scorecards": [
      {
        "call_id": "example",
        "id": "example",
        "questions_score": [
          {
            "label": "example",
            "order": "example",
            "score": 1,
            "skill": "example"
          }
        ],
        "remark": "example",
        "rep": "example",
        "scorer": "example",
        "template_id": "example",
        "total_score": 1,
        "type": "example"
      }
    ]
  }
}
```

### List topics

List Clari Copilot's topics, keyword and AI, with their trackers and teams.

**Inputs**

- Changed from (`modified_from`, date and time): Only topics changed from this time on.
- Changed until (`modified_to`, date and time): Only topics changed up to this time.

**Outputs**

- `data` (object): The response from Clari.

**Example output**

```json
{
  "data": {
    "topics": [
      {
        "custom_topic": {
          "description": "example",
          "status": "example"
        },
        "keyword_topic": {
          "trackers": [
            "example"
          ]
        },
        "team_ids": [
          "example"
        ],
        "topic_id": "example",
        "topic_name": "example",
        "type": "example"
      }
    ]
  }
}
```

### List users

List the people in Clari Copilot, with their role, manager and whether their calls are recorded.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Clari.

**Example output**

```json
{
  "data": {
    "users": [
      {
        "email": "example",
        "id": "example",
        "is_recording": true,
        "manager_id": "example",
        "name": "example",
        "role": "REP"
      }
    ]
  }
}
```

### Start activity export

Start exporting the meetings, emails and attachments Clari matched to accounts and opportunities between two dates.

**Inputs**

- From (`start_date`, date, required): The first day.
- To (`end_date`, date, required): The last day.
- Activity types (`activity_types`, list): Only these kinds of activity. Leave empty for every kind. One or more of: `MEETING` (Meetings), `EMAIL_SENT` (Emails sent), `EMAIL_RECEIVED` (Emails received), `ATTACHMENT_SENT` (Attachments sent), `ATTACHMENT_RECEIVED` (Attachments received).

**Outputs**

- `data` (object): The response from Clari.

**Example output**

```json
{
  "data": {
    "jobId": "example"
  }
}
```

### Start forecast export

Start exporting a Forecast tab's calls, quotas and adjustments for a quarter. Get export job says when it's done.

**Inputs**

- Forecast tab ID (`forecast_id`, text, required): The Forecast tab, by the ID in its address in Clari, such as forecast_new.
- Quarter (`time_period`, text): The fiscal quarter, such as 2026_Q4. Leave empty for the current quarter.
- Data to export (`types_to_export`, list): What to export. Leave empty for forecast calls and whether they were updated. One or more of: `forecast` (Forecast calls), `quota`, `forecast_updated` (Whether the forecast was updated), `adjustment` (Manager adjustments), `crm_total` (CRM totals), `crm_closed` (CRM closed amount).
- Scope ID (`scope_id`, text): Only this part of the hierarchy and below, such as 1905::MGR.
- Currency (`currency`, text): The currency for amounts, such as USD.
- Include past weeks (`include_historical`, true/false): Include every week from the start of the quarter, not only this week.
- Format (`export_format`, text): The file's format. Leave empty for JSON. One of: `JSON`, `CSV`.
- Retries (`schedule`, text): Whether Clari retries the export if it fails, such as when too many run at once. One of: `NONE` (Don't retry), `ONCE` (Retry once after 30 minutes), `MAX` (Retry up to 3 times).

**Outputs**

- `data` (object): The response from Clari.

**Example output**

```json
{
  "data": {
    "jobId": "example"
  }
}
```

### Update account

Change a account in Clari Copilot, found by its CRM ID. Fields left empty stay as they are.

**Inputs**

- Account CRM ID (`crm_id`, text, required): The account's ID in your CRM or system of record, which Copilot uses to find it again.
- Name (`name`, text): The company's name.
- Website (`website`, text): The company's website address.
- Phones (`phones`, list): The company's phone numbers.
- Description (`description`, text): A description of the company.
- Address (`address`, text): The company's full street address.
- City (`city`, text): The city the company is registered in.
- State (`state`, text): The state the company is registered in.
- Country (`country`, text): The country the company is in.
- ZIP code (`zip`, text): The postal code of the registered address.
- Custom fields (`custom_fields`, object): Other fields to keep, by name, such as Industry.

**Outputs**

- `data` (object): The response from Clari.

**Example output**

```json
{
  "data": {
    "address": "example",
    "city": "example",
    "country": "example",
    "crm_id": "example",
    "custom_fields": [
      {
        "key": "example",
        "value": "example"
      }
    ],
    "description": "example",
    "id": "example",
    "name": "example",
    "phones": [
      "example"
    ],
    "state": "example",
    "website": "example",
    "zip": "example"
  }
}
```

### Update contact

Change a contact in Clari Copilot, found by its CRM ID. Fields left empty stay as they are.

**Inputs**

- Contact CRM ID (`crm_id`, text, required): The contact's ID in your CRM or system of record, which Copilot uses to find it again.
- Account CRM ID (`account_crm_id`, text): The CRM ID of the account the contact works at.
- First name (`first_name`, text): The contact's first name.
- Last name (`last_name`, text): The contact's last name.
- Job title (`job_title`, text): The contact's job title.
- Emails (`emails`, list): The contact's email addresses.
- Phones (`phones`, list): The contact's phone numbers.
- Stage (`stage`, text): The contact's stage, such as Qualified.
- Reason (`reason`, text): Why the contact is at that stage.
- Is a lead (`is_lead`, true/false): Whether the contact is still a lead.
- Custom fields (`custom_fields`, object): Other fields to keep, by name, such as Industry.

**Outputs**

- `data` (object): The response from Clari.

**Example output**

```json
{
  "data": {
    "account_crm_id": "example",
    "crm_id": "example",
    "custom_fields": [
      {
        "key": "example",
        "value": "example"
      }
    ],
    "emails": [
      "example"
    ],
    "first_name": "example",
    "id": "example",
    "is_lead": true,
    "job_title": "example",
    "last_name": "example",
    "phones": [
      "example"
    ],
    "reason": "example",
    "stage": "example"
  }
}
```

### Update deal

Change a deal in Clari Copilot, found by its CRM ID. Fields left empty stay as they are.

**Inputs**

- Deal CRM ID (`crm_id`, text, required): The deal's ID in your CRM or system of record, which Copilot uses to find it again.
- Name (`deal_name`, text): The deal's name.
- Account CRM ID (`account_crm_id`, text): The CRM ID of the account the deal is with.
- Owner CRM ID (`owner_crm_id`, text): The CRM ID of the person who owns the deal.
- Amount (`amount`, number): The deal's amount. At least 0.
- Stage (`stage`, text): The deal's stage, such as Negotiation.
- Probability (%) (`probability`, number): How likely the deal is to close, as a percentage. From 0 to 100.
- Forecast category (`forecast_category`, text): The deal's forecast category, such as Commit or Best Case.
- Close date (`close_date`, date): When the deal is expected to close.
- Created (`created_date`, date and time): When the deal was created.
- Last contacted (`last_contacted`, date and time): When the buyer was last contacted about the deal.
- Next call (`next_call_date`, date and time): When the next call about the deal is.
- Reason (`deal_reason`, text): Why the deal was won or lost.
- Custom fields (`custom_fields`, object): Other fields to keep, by name, such as Industry.

**Outputs**

- `data` (object): The response from Clari.

**Example output**

```json
{
  "data": {
    "account_crm_id": "example",
    "amount": "example",
    "close_date": "example",
    "close_date_change_history": [
      {
        "close_date": "example",
        "date_changed": "example",
        "prev_close_date": "example"
      }
    ],
    "created_date": "example",
    "crm_id": "example",
    "custom_fields": [
      {
        "key": "example",
        "value": "example"
      }
    ],
    "deal_name": "example",
    "deal_reason": "example",
    "forecast_category": "example",
    "id": "example",
    "last_contacted": "example",
    "next_call_date": "example",
    "owner_crm_id": "example",
    "probability": "example",
    "stage": "example",
    "stage_change_history": [
      {
        "date_changed": "example",
        "prev_stage": "example",
        "stage": "example"
      }
    ]
  }
}
```
