> ## Documentation Index
> Fetch the complete documentation index at: https://docs.go.gbgplc.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Digital Identity

The **Digital Identity** module verifies a subject's identity through a hosted session with a digital identity provider, such as a reusable digital identity wallet. The subject completes the provider's verification flow from a launch URL, and the module returns the session outcome.

The module can also list the identity providers included in your organisation's licence.

> [accordion] Digital Identity: Digital ID Launch Session
>
> Initiate a Digital ID verification session and obtain a launch URL to authenticate a user's identity via a hosted user interface
>
> ## Capabilities
>
> The module returns the following capabilities.
>
> ### Status
>
> Indicates the current state of the session generation process
>
> | Code | Label | Description |
> | - | - | - |
> | `complete` | complete | Session was generated successfully |
> | `error` | error | An error occurred during session generation |
> | `pending` | pending | Session generation is in progress |
> | `timeout` | timeout | Session generation took too long and timed out |
>
> ## Default outcomes
>
> The module is pre-configured with the following default outcomes, which can be used in evaluation and routing logic within the Journey builder.
>
> | Outcome | Condition | Description |
> | - | - | - |
> | `Session Failed` | default, when no conditions matched | The session did not complete successfully. |
> | `Session Launched` | Status is `complete` | The session was launched successfully. |
> | `ERROR` | Default (no conditions matched) | An unexpected error occurred during processing. |
>
> ## Input payload
>
> The following is a sample payload used to submit data to the **Digital ID Launch Session** module for processing.

> [accordion] Digital Identity: Digital Identity Results
>
> Retrieve the results of the digital identity verification upon completion
>
> ## Capabilities
>
> The module returns the following capabilities.
>
> ### Status
>
> Indicates the current state of the digital ID verification process
>
> | Code | Label | Description |
> | - | - | - |
> | `Successful` | Successful | Session has been completed successfully |
> | `Canceled` | Canceled | Session has been canceled |
> | `UserAbandoned` | UserAbandoned | User abandoned the session |
> | `UserTimedOut` | UserTimedOut | User took too long to complete the verification |
> | `Expired` | Expired | Session has expired |
> | `InvalidImage` | InvalidImage | Image(s) provided for this verification were either too low-quality, not of the correct type, or otherwise unable to be processed |
> | `Inauthentic` | Inauthentic | Identity data/images provided are suspected to be inauthentic, fraudulent, or forged |
> | `UnsupportedDocument` | UnsupportedDocument | Document provided is either of an unsupported type, or from an unsupported country |
> | `AssuranceLevelNotMet` | AssuranceLevelNotMet | User's identity does not meet the required assurance level for this verification |
> | `Other` | Other | Session was not completed successfully |
> | `PollingExhausted` | PollingExhausted | Results were still pending when the polling attempt limit was reached; the user did not complete the verification within the polling window |
> | `TimedOut` | TimedOut | Results were still pending when the step's configured timeout (iSO8602TimeoutDuration) elapsed, before the polling attempt limit was reached |
>
> ## Default outcomes
>
> The module is pre-configured with the following default outcomes, which can be used in evaluation and routing logic within the Journey builder.
>
> | Outcome | Condition | Description |
> | - | - | - |
> | `Not Verified` | Status is any of `Canceled`, `UserAbandoned`, `UserTimedOut`, `Expired`, `InvalidImage`, `Inauthentic`, `UnsupportedDocument`, `AssuranceLevelNotMet`, `Other` | The subject could not be verified. |
> | `Verified` | Status is `Successful` | The subject was successfully verified. |
> | `Error` | default, when no conditions matched | An error prevented the module from returning a result. |
>
> ## Input payload
>
> The following is a sample payload used to submit data to the **Digital Identity Results** module for processing.

> [accordion] Digital ID Launch Session
>
> ## Capabilities
>
> ### Status
>
> Indicates the current state of the session generation process
>
> | Value | Description |
> | - | - |
> | `complete` | Session was generated successfully |
> | `error` | An error occurred during session generation |
> | `pending` | Session generation is in progress |
> | `timeout` | Session generation took too long and timed out |

> [accordion] Digital Identity Results
>
> ## Capabilities
>
> ### Status
>
> Indicates the current state of the digital ID verification process
>
> | Value | Description |
> | - | - |
> | `Successful` | Session has been completed successfully |
> | `Canceled` | Session has been canceled |
> | `UserAbandoned` | User abandoned the session |
> | `UserTimedOut` | User took too long to complete the verification |
> | `Expired` | Session has expired |
> | `InvalidImage` | Image(s) provided for this verification were either too low-quality, not of the correct type, or otherwise unable to be processed |
> | `Inauthentic` | Identity data/images provided are suspected to be inauthentic, fraudulent, or forged |
> | `UnsupportedDocument` | Document provided is either of an unsupported type, or from an unsupported country |
> | `AssuranceLevelNotMet` | User's identity does not meet the required assurance level for this verification |
> | `Other` | Session was not completed successfully |
> | `PollingExhausted` | Results were still pending when the polling attempt limit was reached; the user did not complete the verification within the polling window |
> | `TimedOut` | Results were still pending when the step's configured timeout (iSO8602TimeoutDuration) elapsed, before the polling attempt limit was reached |

> [accordion] Digital ID Provider Selector
>
> This variant returns the identity providers available to the subject in `result.note.providers`. By default, it lists every provider licensed for your account. If you supply a country, state, or phone number, then it ranks the providers and lists the recommended ones first.
>
> The variant reads these inputs from the subject context and doesn't show the subject a form. Write the phone number in E.164 format, starting with +, because the variant ignores national-format numbers. Recommendations also need a Verification Profile ID in the module credentials.
>
> ## Capabilities
>
> ### Status
>
> Indicates whether the provider list was successfully retrieved from Trinsic
>
> | Value | Description |
> | - | - |
> | `SUCCESS` | Provider list retrieved successfully |
> | `ERROR` | API call failed or an unexpected error occurred |
> | `TIMEOUT` | Request to Trinsic timed out before a response was received |
>
> ## Default outcomes
>
> The following default outcomes are available for evaluation and routing in the Journey builder.
>
> | Outcome | Condition | Description |
> | - | - | - |
> | `Providers Retrieved` | Status is `SUCCESS` | The module retrieved the provider list. |
> | `Timeout` | Status is `TIMEOUT` | The request to the provider timed out before it responded. |
> | `Error` | Default, when no conditions matched | The module couldn't retrieve the provider list. |
>
> ## Input payload
>
> The following is a sample payload used to submit data to the **Digital ID Provider Selector** module for processing.
>
> ```json JSON theme={null}
> {
>   "context": {
>     "config": {
>       "iSO8602TimeoutDuration": "PT30S",
>       "licensed": true
>     },
>     "subject": {
>       "identity": {
>         "currentAddress": {
>           "country": "IT"
>         },
>         "phones": [
>           {
>             "number": "+393912345678",
>             "type": "mobile"
>           }
>         ]
>       }
>     }
>   }
> }
> ```
>
> ## Sample response
>
> The following is a sample response returned by the module.
>
> ```json JSON theme={null}
> {
>   "response": {
>     "advice": {
>       "status": "SUCCESS"
>     },
>     "outcome": "Providers Retrieved"
>   }
> }
> ```
