---
title: How to create a Named Credential for Producer Data Sync
description: Overview The Producer Data Sync code relies on the presence of a Named Credential with an API name of Producer_Sync. Each customer will have their own unique client ID and secret to be stored in the n
---

[Skip to content](https://help.agentsync.io/contracting/how-to-create-a-named-credential-for-producer-data-sync#main-content)

English

Show submenu for translations

![](https://help.agentsync.io/hs-fs/hubfs/Brand%20Refresh%20-%20Landing%20Pages/AgentSync%20Logo%20Horizontal%20Dark.png?width=100&height=75&name=AgentSync%20Logo%20Horizontal%20Dark.png)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- Go to agentsync.io

 Go to agentsync.io

 Welcome to the AgentSync Contracting Help Center!

- There are no suggestions because the search field is empty.

1. [AgentSync Contracting Help Center](https://help.agentsync.io/contracting?hsLang=en)
2. [Agency Admin](https://help.agentsync.io/contracting/agency-admin?hsLang=en)

# How to create a Named Credential for Producer Data Sync

## AgentSync Manage steps to create your Named Credential for the Producer Data Sync.

### Overview

The Producer Data Sync code relies on the presence of a Named Credential with an API name of Producer\_Sync. Each customer will have their own unique client ID and secret to be stored in the named credential, so creation of the named credential needs to be a manual onboarding step for your organization. The following sections describe all the steps needed to create the named credential.

### Customer API Configuration

Before you undertake the following configuration steps, your AgentSync contacts will setup the Customer API credentials to enable the remaining steps below to be completed. Work together to ensure that it is in motion at least 5 days before the intended date of producer data sync set-up.

The steps below will need to be completed in your AgentSync Manage environment, not AgentSync Contracting. 

### Remote Site Settings

In the relevant **Manage** instance:

1. Create a Remote Site Setting for the Customer API auth endpoint: https://auth.agentsync.io
2. Create a Remote Site Setting for the Producer Data Sync API base URL: https://api.agentsync.io

### Auth Provider

*17 STEPS*

 1\. Log into the Salesforce Manage Environment. Click the **gear** on the top right hand corner.

![Step 1 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231652&step_number=1&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 2\. Click **Setup**

![Step 2 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231652&step_number=2&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 3\. Click in the **Quick Find** box

![Step 3 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231652&step_number=3&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 4\. Type in the quick find **Auth. Providers.**

![Step 4 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231652&step_number=4&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 5\. Click **Auth. Providers**

![Step 5 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231652&step_number=5&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 6\. Click  **New**

![Step 6 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231652&step_number=6&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 7\. Click **Provide Type** to select from the dropdown.

![Step 7 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231652&step_number=7&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 8\. Select **AgentSyncAuthProvider**

![Step 8 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231652&step_number=8&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 9\. Click Name and type in "Producer Sync"

![Step 9 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231652&step_number=9&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 10\. Click **Name** and put **"Producer Sync"**

![Step 10 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231652&step_number=10&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 11\. For the Auth Endpoint, put "[https://auth.agentsync.io/oauth2/token](https://auth.agentsync.io/oauth2/token)"

![Step 11 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231652&step_number=11&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 12\. For the Auth Endpoint, put "[https://auth.agentsync.io/oauth2/token](https://auth.agentsync.io/oauth2/token)"

![Step 12 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231652&step_number=12&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 13\. For the Client Secret, put the client secret provided to you by the Customer API Team.

![Step 13 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231652&step_number=13&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 14\. For the Client Secret, put the client secret provided to you by the Customer API Team.

![Step 14 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231652&step_number=14&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 15\. For the Provider Name, put "**Producer\_Sync**"

![Step 15 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231652&step_number=15&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 16\. For Execute Registration As, select an AgentSync admin user.

![Step 16 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231652&step_number=16&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 17\. Click the Save button.

![Step 17 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231652&step_number=17&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

### Here's an interactive tutorial

*\*\* Best experienced in Full Screen (click the icon in the top right corner before you begin) \*\**

[https://www.iorad.com/player/2231652/Auth-Provider---Producer-Data-Sync---Contracting-](https://www.iorad.com/player/2231652/Auth-Provider---Producer-Data-Sync---Contracting-)

<iframe src="https://www.iorad.com/player/2231652/Auth-Provider---Producer-Data-Sync---Contracting-?src=iframe&amp;oembed=1" width="100%" height="500px" style="width: 100%; height: 500px; " referrerpolicy="strict-origin-when-cross-origin" frameborder="0" webkitallowfullscreen="webkitallowfullscreen" mozallowfullscreen="mozallowfullscreen" allowfullscreen allow="camera; microphone; clipboard-write"></iframe>

1. Go to **Set up**
2. In the quick find on the left-hand side, type **Auth. Providers** and create an auth provider by following the following steps: 
     1. For the Provider Type, select **AgentSyncAuthProvider**
     2. For the Name, put “**Producer Sync**”
     3. For the URL Suffix, put “**Producer\_Sync**”
     4. For the Auth Endpoint, put “**https://auth.agentsync.io/oauth2/token**”
     5. For the Client Key, put the client key provided to you by the Customer API For the Client Secret, put the client secret **provided to you by the Customer API Team**.

1. 1. For the Provider Name, put “**Producer\_Sync**”
     2. For Execute Registration As, select an **AgentSync admin user**.
     3. Click the **Save** button.

### Named Credential

*14 STEPS*

 1\. Click on the **gear** in the top right-hand corner

![Step 1 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231691&step_number=1&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 2\. Click **Setup**

![Step 2 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231691&step_number=2&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 3\. Click into the **Quick Find** box on the left-hand side of the setup page.

![Step 3 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231691&step_number=3&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 4\. Type in **Named Credentials** and click on it once it populates.

![Step 4 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231691&step_number=4&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 5\. Next to 'New' on the right-hand side, click the **down arrow button**.

![Step 5 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231691&step_number=5&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 6\. Click **New Legacy**

![Step 6 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231691&step_number=6&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 7\. For the Label, put "**Producer Sync**"

![Step 7 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231691&step_number=7&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 8\. For the Name, put "**Producer\_Sync**"

![Step 8 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231691&step_number=8&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 9\. For the URL, put "[https://api.agentsync.io/contracting](https://api.agentsync.io/contracting)"

![Step 9 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231691&step_number=9&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 10\. For the Identity Type, select "**Named Principal**"

![Step 10 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231691&step_number=10&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 11\. Select **Named Principal**

![Step 11 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231691&step_number=11&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 12\. For the Authentication Protocol, select "**OAuth 2.0**"

![Step 12 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231691&step_number=12&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 13\. For the Authentication provider, select the auth provider created earlier.

![Step 13 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231691&step_number=13&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

 14\. Click the **Save** button.

![Step 14 image](https://www.iorad.com/api/tutorial/stepScreenshot?tutorial_id=2231691&step_number=14&width=800&height=600&mobile_width=450&mobile_height=400&apply_resize=true&min_zoom=0.5)

### Here's an interactive tutorial

*\*\* Best experienced in Full Screen (click the icon in the top right corner before you begin) \*\**

[https://www.iorad.com/player/2231691/Named-Credentials---Producer-Data-Sync---Contracting](https://www.iorad.com/player/2231691/Named-Credentials---Producer-Data-Sync---Contracting)

<iframe src="https://www.iorad.com/player/2231691/Named-Credentials---Producer-Data-Sync---Contracting?src=iframe&amp;oembed=1" width="100%" height="500px" style="width: 100%; height: 500px; " referrerpolicy="strict-origin-when-cross-origin" frameborder="0" webkitallowfullscreen="webkitallowfullscreen" mozallowfullscreen="mozallowfullscreen" allowfullscreen allow="camera; microphone; clipboard-write"></iframe>

1. Go to **Setup**
2. In the quick find on the left-hand side, type in **Named Credentials** and select once it populates. 
3. Click the dropdown arrow next to the “New” button. Select “New Legacy.”
4. After clicking “**New Legacy**,” fill in the following details: 
     1. For the Label, put “**Producer Sync**”
     2. For the Name, put “**Producer\_Sync**”
     3. For the URL, put “**https://api.agentsync.io/contracting**”
     4. For the Identity Type, select “**Named Principal**”
     5. For the Authentication Protocol, select “**OAuth 2.0**”
     6. For the Authentication provider, **select the auth provider created earlier.**
     7. Click the **Save** button.

### Troubleshooting

After you click the Save button, the Named Credential should show an Authentication Status of “Authenticated.” If it says “Pending” or any other status, then the authentication was not successful. Please double-check that all of the above information was entered correctly, and contact [contractingsupport@agentsync.io](mailto:contractingsupport@agentsync.io) for help if needed. 

 

- [Producers](https://help.agentsync.io/contracting/producers?hsLang=en)
- [Agency Admin](https://help.agentsync.io/contracting/agency-admin?hsLang=en)
- [Release Notes](https://help.agentsync.io/contracting/release-notes?hsLang=en#main-content)

    - [Contracting](https://help.agentsync.io/contracting/release-notes?hsLang=en#contracting)
- [Glossary](https://help.agentsync.io/contracting/glossary?hsLang=en)
- [FAQs](https://help.agentsync.io/contracting/faqs?hsLang=en)

[![Chill listening crop-3](https://help.agentsync.io/hs-fs/hubfs/agentsync-1.png?width=113&height=24&name=agentsync-1.png "Chill listening crop-3")](http://agentsync.io)

<https://www.facebook.com/> <https://www.twitter.com/> <https://www.instagram.com/> <https://podcasts.apple.com/> [mailto:email@email.com](mailto:email@email.com)

Copyright © 2026, AgentSync