> For the complete documentation index, see [llms.txt](https://docs.stacksync.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stacksync.com/connectors/salesforce/authorize-salesforce/enable-api-access-in-salesforce.md).

# Enable API Access in Salesforce

API access needs to be enabled in Salesforce for the user connecting Stacksync to its Salesforce instance.

Follow the steps below to:

* Enable API access in Salesforce by Profile
* Enable API access in Salesforce by Permission Set

{% tabs %}
{% tab title="Enable API access by Profile" %}
**Enable API access in Salesforce by Profile**

\
1\. Click the Gear icon and click **Setup.**

<figure><img src="/files/pjh07FuGrK6TdxrqP5wE" alt=""><figcaption></figcaption></figure>

\
2\. Type **profiles** into the Quick Find box and select **Profiles.**\
\
3\. Click **Edit** against the Profile you wish to enable API access for.

<figure><img src="/files/DnPo9PAW9ulao4bZNV0W" alt=""><figcaption></figcaption></figure>

4\. Scroll down to **Administrative Permissions** and check the **API Enabled** box and click **Save**.<br>

<figure><img src="/files/0VZjafsrtMsYHARRu8oL" alt=""><figcaption></figcaption></figure>

The API in Salesforce is now enabled for the modified profile. All users with this profile now have API enabled permissions.

***

***Optional:*** If your sync includes the ContentDocumentLink object (used for Salesforce Files / attachments), also enable the Query All Files permission in the same permission set. This only works for custom profiles, salesforce standard profiles do not allow you to turn enable this permission.\
\
5\. In your custom profile scroll down to *Administrative Permissions* section and enable *Query all data*

<figure><img src="/files/z6n12cUqUYwqOr4ETto1" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Enable API access by Permission Set" %}

#### Enable API Access in Salesforce by Permission Set

\
1\. Click the Gear icon and click **Setup.**

<figure><img src="/files/MOBuK7jAv1ul4I2EXnOE" alt=""><figcaption></figcaption></figure>

\
2\. Type **permission** into the Quick Find box and select **Permission Sets.**

3\. Select the Permission Set you wish to enable API access for. (Or click "NEW" if you want to create a new one).

<figure><img src="/files/MQtgoojwJXXvJ3WmXa10" alt=""><figcaption></figcaption></figure>

4\. Scroll down to **System** and click **System Permissions.**

<figure><img src="/files/ooVbLKWxehzwhStOkovV" alt=""><figcaption></figcaption></figure>

5\. Click **Edit**

<figure><img src="/files/DXwx6EzxZ63K2U1Yiwl3" alt=""><figcaption></figcaption></figure>

6\. Check the **API Enabled** box and then scroll up and click **Save.**

<figure><img src="/files/X66iiIsEhzS5jtLBmDbv" alt=""><figcaption></figcaption></figure>

The permission set now has the API Enabled permission. The permission set should be applied to the user connecting Salesforce to Stacksync.

7. Select the permission set and click **Manage Assignments** and then **Add Assignments**.
8. Select the check boxes next the names of the users you want assigned to the permission set, and click **Assign**.

***

*Optional:* If your sync includes the ContentDocumentLink object (used for Salesforce Files / attachments), also enable the Query All Files permission in the same permission set.

8\. Switch the permission set overview to *App Permissions*

<figure><img src="/files/TY1Wvn1XnVAXcASJzVdl" alt=""><figcaption></figcaption></figure>

9. Click **Edit**

<figure><img src="/files/Y7vQjDYeGzuqfcO9wEUd" alt=""><figcaption></figcaption></figure>

10. Scroll down to the *Content* section and enable *Query All FIles* and then scroll up and click **Save.**

<figure><img src="/files/Tgx7WlkpFCXdrJ4OJNLt" alt=""><figcaption></figcaption></figure>

<br>
{% endtab %}
{% endtabs %}

Learn more in [this Salesforce documentation](https://help.salesforce.com/s/articleView?id=sf.branded_apps_commun_api_permset.htm\&type=5).


---

# 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 dynamically by asking a question.

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

```
GET https://docs.stacksync.com/connectors/salesforce/authorize-salesforce/enable-api-access-in-salesforce.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
