Create a verifiable credential offer
Authenticate every request with a Service Access Token or Organization Token.
Set the token value in the Authorization: Bearer <token> header.
Service Access Token: Scoped to a single service. Use when automating service-level configuration or runtime flows.
Organization Token: Scoped to the organization; inherits permissions across services. Use for org-wide automation or when managing multiple services programmatically.
Both token types are issued by the Authlete console or provisioning APIs.
A service ID.
The flag indicating whether the authorization_code object is
included in the grants object.
The flag indicating whether the issuer_state property is
included in the authorization_code object in the grants
object.
The flag to include the
urn:ietf:params:oauth:grant-type:pre-authorized_code object
in the grants object.
The subject associated with the credential offer.
The duration of the credential offer.
The general-purpose arbitrary string.
Extra properties to associate with the credential offer.
Additional claims that are added to the payload part of the JWT access token.
The time at which the user authentication was performed during the course of issuing the credential offer.
The Authentication Context Class Reference of the user authentication performed during the course of issuing the credential offer.
The value of the credential_configuration_ids array.
{
"credential_issuer": "...",
"credential_configuration_ids": [ ... ],
"grants": { ... }
}This property is mandatory.
The transaction code that should be associated with the credential offer.
If this parameter is not empty and the preAuthorizedCodeGrantIncluded parameter is true, the
urn:ietf:params:oauth:grant-type:pre-authorized_code object will include the tx_code object.
The length of the value of this parameter will be used as the value of the length property in
the tx_code object.
{
"credential_issuer": "...",
"credential_configuration_ids": [ ... ],
"grants": {
"urn:ietf:params:oauth:grant-type:pre-authorized_code": {
"pre-authorized_code": "...",
"tx_code": {
"length": length
}
}
}
}The input mode of the transaction code.
The value of this property will be used as the value of the input_mode property in the tx_code
object.
{
"credential_issuer": "...",
"credential_configuration_ids": [ ... ],
"grants": {
"urn:ietf:params:oauth:grant-type:pre-authorized_code": {
"pre-authorized_code": "...",
"tx_code": {
"length": length,
"input_mode": "..."
}
}
}
}The description of the transaction code.
The value of this property will be used as the value of the description property in the tx_code
object.
{
"credential_issuer": "...",
"credential_configuration_ids": [ ... ],
"grants": {
"urn:ietf:params:oauth:grant-type:pre-authorized_code": {
"pre-authorized_code": "...",
"tx_code": {
"length": length,
"description": "..."
}
}
}
}