# How Many API Calls Does CopyStorm Use?

In general, CopyStorm uses the minimal number of API calls possible to do a backup.

Detailed information can be found in this table:

| Phase     | Number of Transactions | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| --------- | ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Bootstrap | 3                      | <p>There are several operations that take place each time CopyStorm connects to Salesforce:</p><ul><li>Find the name of all visible tables in Salesforce (1 API Call)</li><li>Cache the definition of the User and Profile tables (1 API Call)</li><li>Read the User record for the current User (1 API Call)</li></ul>                                                                                                                                                                                                                                                                                                                                                                              |
| Setup     | 3                      | In this step CopyStorm reads Salesforce table definitions for all tables being backed up. By default it takes a single API call per 100 tables.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Backup    | 1 \* Number of Tables  | <p>CopyStorm uses at least 1 API call for each Salesforce table in the backup set. If there are no records to be backed up or if there are fewer than 2000 records to be backed up then this is the only API call used.</p><p>The number of records that can be read per API call varies by table in Salesforce. For most tables, between 1000 and 2000 can be returned for each API call. However, there are a few tables that return a single record per API call. This includes:</p><ul><li>Attachment</li><li>ContentVersion</li><li>EventLogFile</li></ul><p>The general Salesforce rule is to expect 1 record per API call if a record contains a BASE64 column (e.g. a CLOB / File Data).</p> |

For example:

A frequent incremental CopyStorm backup of 100 tables that includes Attachments would usually take a number of API calls equal to:

* 3 + 3 + 99 + The Number of Changed Attachments


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.capstorm.com/frequently-asked-questions/how-does-copystorm-work/how-many-api-calls-does-copystorm-use.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
