# 2. Create a Named Credential

{% hint style="info" %}
NOTE: If you are installing or configuring Version 3.1 or earlier of the SlapFive Salesforce App, skip this step and go to Configure Custom Settings.
{% endhint %}

Go to **Setup** > **Security** > **Named Credentials**.&#x20;

In the dropdown menu next to the **New** button, click **New Legacy** to create a new Named Credential record.

<figure><img src="/files/Asv8UUKgbOyD2qbmCLfI" alt=""><figcaption><p>Create a new Named Credential record</p></figcaption></figure>

When creating the new record:

* [ ] **Label:** enter *SlapFive API*.
* [ ] **Name:** will auto-fill with *SlapFive\_API*, do not change it.
* [ ] **URL:** enter the base URL of your SlapFive instance, which is <https://your\\_company\\_name.slapfive.com>.
* [ ] **Identity Type:** select **Named Principal**.
* [ ] **Authentication Protocol:** select **Password Authentication**.
* [ ] **Username:** enter *slapfive*.
* [ ] **Password:** paste your **SlapFive API Key**. To get this key, log into SlapFive, go into your Client Settings, generate an API key if one doesn't already exist, copy the API Key and paste it in this field.
* [ ] **Generate Authorization Header:** uncheck this field.
* [ ] **Allow Merge Fields in HTTP Header:** check this field.

Click the **Save** button to create the new Named Credential.


---

# 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://docs.slapfive.com/integrations/salesforce/slapfive-app-spring-2024-4.0-and-earlier-versions/2.-create-a-named-credential.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.
