> For the complete documentation index, see [llms.txt](https://docs.slapfive.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.slapfive.com/integrations/salesforce/slapfive-app-spring-2024-4.0-and-earlier-versions/2.-create-a-named-credential.md).

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