---
schema_version: "1"
id: 531bbd0fd1f01fb520788db1ed8fb79cf92e081fe69098a14361a7ab9bbac6a7
title: Get Started with Named Credentials
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/security/named-credentials/guides/get-started.md
canonical_url: https://developer.salesforce.com/docs/platform/named-credentials/guide/get-started.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: cd337db1f37ae9bf326f91cc3b3ff18b60ca0233162faffa8430e9f46a686f81
products:
  - Named Credentials
  - Security
---
# Get Started with Named Credentials

**tip:** For more information about named credentials, including how to create and manage named credentials in the UI, see the [Named Credentials](https://help.salesforce.com/s/articleView?id=xcloud.named_credentials_about.htm) help documentation.

## Introduction

A named credential specifies the URL of a callout endpoint and its required authentication parameters in one definition. To simplify the setup of authenticated callouts, specify a named credential instead of a URL as the callout endpoint.

**important:** IMPORTANT In Winter ’23, Salesforce introduced an improved named credential that is extensible and customizable. We strongly recommend that you use this preferred credential instead of legacy named credentials. For information on extensible, customizable named credentials, see [Named Credentials and External Credentials](https://help.salesforce.com/s/articleView?id=xcloud.nc_named_creds_and_ext_creds.htm). Legacy named credentials are deprecated and will be discontinued in a future release.

Named credentials are supported in these types of callout definitions.

- Apex callouts
- External data sources
- External Services

Create an external credential to specify an authentication protocol and permission set or profile to use when authenticating to an external system. Add custom headers to named and external credentials to cover more use cases and security requirements.

## Parts of the Named Credential Schema

![The Named Credentials Schema](https://developer.salesforce.com/docs/media/240_named_credentials_chime_example_01b.png)

Named credentials and external credentials simplify and enable greater reuse of setup for secure and authenticated callouts.

- A named credential specifies a callout endpoint and an HTTP transport protocol.
- An external credential’s authentication protocol and user credentials authenticate the caller. The same external credential can be used by more than one named credential.
- External credential principals map to user permissions to authorize them to make callouts.
- User external credentials store encrypted tokens.

## Available Named Credential Developer Guides

These guides are available.

- [Named Credentials Developer Guide for OAuth](https://developer.salesforce.com/docs/platform/named-credentials/guide/nc-oauth-dev-guide.md)

  Explains how to create, edit, and delete a credential that uses OAuth authentication, and how to refresh an OAuth token.

- [Named Credentials Packaging Guide](https://developer.salesforce.com/docs/platform/named-credentials/guide/nc-packaging-dev-guide.md)

  Explains how to package named credentials, and how to use the Connect API to populate sensitive access tokens that can’t be packaged.
