---
schema_version: "1"
id: 645aa111888880c85294bb75b59c404bd824da997530570c075579b0f2e658f0
title: ConnectApi.CredentialValueInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_credential_value.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_credential_value.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f145950160b5dbeee9c0ce289ff7192701d7256c200bde9dc29c4c71da48c23e
description: Credential value input.
---
# ConnectApi.CredentialValueInput

Credential value input.

Authentication protocols have credential allowlists and encryption rules.

- AwsSv4—awsAccessKeyId (not encrypted), awsSecretAccessKey (encrypted), awsRoleArn (not encrypted)
- Custom—Any credential name is valid (user sets encryption rules)

| Property | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| encrypted | Boolean | Specifies whether the value of the credential is encrypted (true) or not (false). | Required | 56.0 |
| revision | Integer | Revision number of a short-lived credential, such as OAuthToken. If the provided revision isn’t the latest version, the authentication endpoint refreshes the credential. | Optional | 58.0 |
| value | String | Value of the credential. | Required | 56.0 |

#### See Also

- [ConnectApi.CredentialInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_credential.htm "Credential input.")