TrustX
Production
Welcome
Getting Started
Orchestration Layer
Document Capture
Face Capture
NFC Capture
Authentication
Integrity Signals
Watchlists
Integration Hub
TrustX Mobile Integration
Session Information
API Integration
Release Notes
Platform Information
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Appkey Web SDK API Reference
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
API Registration Reference
Handles user registration with customizable localization and translation options.
Javascript
xxxxxxxxxxregistration(options: IRegistration): Promise<IResponse>Types and Interfaces
Localization
Available localization
Localization Enum:
| Key | Value | |
|---|---|---|
| AR | ar | Arabic |
| DE | de | German |
| EN | en | English |
| ES | es | Spanish |
| FR | fr | French |
| GA | ga | Gaelic |
| HE | he | Hebrew |
| IT | it | Italian |
| JA | ja | Japanese |
| NL | nl | Dutch |
| PT | pt | Portuguese |
| RO | ro | Romanian |
Javascript
xxxxxxxxxxenum ELocalization { AR = 'ar', DE = 'de', EN = 'en', ES = 'es', FR = 'fr', GA = 'ga', HE = 'he', IT = 'it', JA = 'ja', NL = 'nl', PT = 'pt', RO = 'ro'}Translation Keys
Available translation keys for UI text:
Translation Key Enum:
| Key | Value |
|---|---|
| REGISTRATION_TITLE | registration.title |
| REGISTRATION_SUBTITLE | registration.subTitle |
| REGISTRATION_DESCRIPTION | registration.description |
| REGISTRATION_CANCEL | registration.cancel |
| AUTHENTICATION_TITLE | authentication.title |
| AUTHENTICATION_SUBTITLE | authentication.subTitle |
| AUTHENTICATION_DESCRIPTION | authentication.description |
| AUTHENTICATION_CANCEL | authentication.cancel |
Javascript
xxxxxxxxxxenum ETranslationKey { REGISTRATION_TITLE = 'registration.title', REGISTRATION_SUBTITLE = 'registration.subTitle', REGISTRATION_DESCRIPTION = 'registration.description', REGISTRATION_CANCEL = 'registration.cancel', AUTHENTICATION_TITLE = 'authentication.title', AUTHENTICATION_SUBTITLE = 'authentication.subTitle', AUTHENTICATION_DESCRIPTION = 'authentication.description', AUTHENTICATION_CANCEL = 'authentication.cancel'}Type Definition
TLangTranslations
| Key (ETranslationKey) | Value (string) |
|---|---|
| registration.title | string |
| registration.subTitle | string |
| registration.description | string |
| registration.cancel | string |
| authentication.title | string |
| authentication.subTitle | string |
| authentication.description | string |
| authentication.cancel | string |
TTranslations
| Key (ELocalization) | Value (TLangTranslations) |
|---|---|
| ar | TLangTranslations |
| de | TLangTranslations |
| en | TLangTranslations |
| ... | ... |
Javascript
xxxxxxxxxxtype TLangTranslations = { [K in ETranslationKey]: string} type TTranslations = { [L in ELocalization]?: TLangTranslations} interface IRegistration { appkeyRegClientRequest?: string; // Base64 encoded registration request language?: ELocalization; // Language code for localization translations?: TTranslations; // Translation object}IRegistration
| Property | Type | Description |
|---|---|---|
| appkeyRegClientRequest | string | Base64 encoded registration request |
| language | ELocalization | Language code for localization |
| translations | TTranslations | Translation object |
Javascript
xxxxxxxxxxinterface IResponseSuccess { success: true; data: string;}IResponseSuccess
| Property | Type | Description |
|---|---|---|
| success | true | Indicates success |
| data | string | Response data |
JSON
xxxxxxxxxxinterface IResponseError { success: false; data: string; error: { errorCode: number; errorMessage: string; };}IResponseError
| Property | Type | Description |
|---|---|---|
| success | true | Indicates success |
| data | string | Response data |
| error | object | Error details |
| errorCode | number | Error code |
| errorMessage | string | Error message |
Javascript
xxxxxxxxxxtype IResponse = IResponseSuccess | IResponseError;Registration Response Success Example
JSON
xxxxxxxxxx{ success: true, data:{ appkeyAuthBrowserResponse: "{\"clientResponseMessage\":\"[{\\\"assertions\\\":[{\\\"assertion\\\":\\\"...." }}Error Codes and Messages
| Error Code | Message |
|---|---|
| 5 | There is no registered user in the browser. |
| 100001 | There is already a registered user in the browser. |
| 100002 | Unknown error occurred |
| 100003 | Unknown error occurred |
| 100004 | Fido request not valid. |
| 100005 | There is no authenticators. |
| 100006 | Transaction cancel. |
JSON
xxxxxxxxxx{ success: false, data:{ appkeyAuthBrowserResponse: "{\"clientError\":{\"errorCode\":3,\"errorMessage\":\"uaf_error_user_cancelled\"}}" }, error: { errorCode: 3, errorMessage: "The user cancelled the action." }}API Authentication Reference
Handles user authentication with customizable localization, translation and transactionCallback options.
Javascript
xxxxxxxxxxauthentication(options: IAuthentication): Promise<IResponse>IAuthentication
| Property | Type | Description |
|---|---|---|
| appkeyAuthClientRequest | string | Base64 encoded authentication request |
| language | ELocalization | Language code for localization |
| translations | TTranslations | Translation object |
| transactionCallback | (transactionText) => Promise<true> | false |
JSON
xxxxxxxxxxtype TLangTranslations = { [K in ETranslationKey]: string} type TTranslations = { [L in ELocalization]?: TLangTranslations} interface IAuthentication { appkeyAuthClientRequest?: string; language?: ELocalization; translations?: TTranslations; transactionCallback?: (transactionText) => Promise<true | false>;} interface IResponseSuccess { success: true; data: string;} interface IResponseError { success: false; data: string; error: { errorCode: number; errorMessage: string; };} type IResponse = IResponseSuccess | IResponseError;Authentication Response Success Example
JSON
xxxxxxxxxx{ success: true, data: { appkeyAuthBrowserResponse: "{\"clientResponseMessage\":\"[{\\\"assertions\\\":..." }}Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Next to read:
TOTP Integrationnull
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message