---
schema_version: "1"
id: 3cd54bd49d4294fc2ebec73c31b297d5835050a2fdae96c7894197e9c1468a68
title: Define a Named Credential for Salesforce Connect Adapter for GraphQL
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/graphql_named_credentials_external_credentials.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.graphql_named_credentials_external_credentials.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: aae847add39d421b2f6e4f01ce798a535900d037eb348392b0ceabfbf6aed509
description: Create a named credential that specifies the endpoint URL of a GraphQL API and an external credential to provide the required authentication parameters.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# Define a Named Credential for Salesforce Connect Adapter for GraphQL

Create a named credential that specifies the endpoint URL of a GraphQL API and an external credential to provide the required authentication parameters.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: both Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>All</strong> Editions</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d212924e63">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d212924e63 ">To view named credentials:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d212924e63 ">View Setup and Configuration</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d212924e63 ">To create, edit, or delete named credentials:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d212924e63 ">Customize Applications</td>

          </tr>
        </tbody>
      </table>

To create an external credential that uses AWS Signature Version 4 authentication protocol, see [Create and Edit an AWS Signature v4 External Credential](https://help.salesforce.com/s/articleView?id=xcloud.nc_create_edit_awssig4_ext_cred.htm&type=5&language=en_US). To create a named credential and link it to the external credential, see [Create and Edit a Named Credential](https://help.salesforce.com/s/articleView?id=xcloud.nc_create_edit_named_credential.htm&type=5&language=en_US).

If you’re creating a named credential for GraphQL API URL hosted by AppSync, URL format would be `https://<unique identifier>.appsync-api.REGION.amazonaws.com/graphql`

For example, if the AWS region is us-west-2, the URL would be `https://<unique identifier>.appsync-api.us-west-2.amazonaws.com/graphql`

To get the GraphQL API URL hosted by AppSync, go to AWS AppSync Console > APIs and select the GraphQL API to use. Under Settings > API Details, copy the API URL.

#### See Also

- [Named Credentials](https://help.salesforce.com/s/articleView?id=xcloud.named_credentials_about.htm&type=5&language=en_US)
- [Salesforce Connect Adapter for GraphQL](https://help.salesforce.com/s/articleView?id=platform.graphql_adapter_about.htm&release=264.0.0&type=5 "GraphQL is a standard query language that allows applications to flexibly access required data and provides a modern way to integrate applications. Unlike traditional REST APIs, GraphQL provides granularity in specifying fields and relationships and is more efficient.")