NamedCredential

Represents a named credential, which specifies the URL of a callout endpoint and its required authentication parameters in one definition. A named credential can be specified as an endpoint to simplify the setup of authenticated callouts. This object is available in API version 33.0 and later.

This guide only lists certain information for each object. For more information, including descriptions of the fields, see NamedCredential in the Object Reference for the Salesforce Platform.

Field NameField LabelTypeDigitsLengthPrecisionScale
AuthProviderIdAuthentication Provider IDreference 18  
AuthTokenEndpointUrlAuth Token Endpoint URLtextarea 1000  
CalloutOptionsAllowMergeFieldsInBodyAllowMergeFieldsInBodyboolean    
CalloutOptionsAllowMergeFieldsInHeaderAllowMergeFieldsInHeaderboolean    
CalloutOptionsGenerateAuthorizationHeaderGenerateAuthorizationHeaderboolean    
CreatedByIdCreated By IDreference 18  
CreatedDateCreated Datedatetime    
DescriptionDescriptionstring 255  
DeveloperNameNamestring 80  
EndpointURLtextarea 1000  
IdNamed Credential IDid 18  
IsDeletedDeletedboolean    
JwtAudienceJWT Audience(s)textarea 1000  
JwtFormulaSubjectJWT Formula Subjectstring 255  
JwtIssuerJWT Issuerstring 255  
JwtTextSubjectJWT Text Subjectstring 255  
JwtValidityPeriodSecondsJWT Validity Period in Secondsint9   
LanguageMaster Languagepicklist 40  
LastModifiedByIdLast Modified By IDreference 18  
LastModifiedDateLast Modified Datedatetime    
MasterLabelLabelstring 80  
NamespacePrefixNamespace Prefixstring 15  
PrincipalTypeIdentity Typepicklist 255  
SystemModstampSystem Modstampdatetime