API Process Token Guide

Introduction

This document will serve as a guide to creating a process token using the TrustX API. To take advantage of the TrustX API, an API key is required. Follow the API Keys Guide for more information.

Create a Token

A token grants access to the caller to invoke API calls on TrustX. Once the token is generated it can be reused, however it must be noted that the token has a 'time to live'. Once the 'time to live' has expired a new token must be generated.

HTTP
Copy

Create a Process Token

When creating a Process Token using the TrustX API, there are several parameters that can be passed through the request body. Below is a list of all available parameters and a description of their behavior.

Parameters

Parameter NameTypeDescriptionRequired
namestring

maxLength: 50

minLength: 0

A unique name to describe the process token.required
descriptionstring

maxLength: 2000

minLength: 0

A short description of the token.optional
processDefnNamestring

maxLength: 50

minLength: 0

The process definition name.

Using the combination of process definition name and process definition version a specific process definition is bound to the process token to be used when a process instance created with a token.

required
processDefnVersionint32

The process definition version.

Using the combination of process definition name and process definition version a specific process definition is bound to the process token to be used when a process instance created with a token.

optional
uiUrlstring

maxLength: 500

minLength: 0

The URI of the application to execute the process definition when the process instance is started.

Currently only TruxtX user interfaces are supported.

optional
statusstringEnum: ACTIVE,INACTIVEThe current status of the token. Possible values include: ACTIVE, INACTIVErequired
typestring

Enum: UNLIMITED,

MULTI_USE_COUNT_LIMITED,

MULTI_USE_TIME_LIMITED

The process token type. An unlimited process token will not expire. A multi-use can have multiple uses determined either by a count or date. Alternatively, the limited process token will have a single use but expire after the defined date.

Possible values include:

UNLIMITED

MULTI_USE_COUNT_LIMITED

MULTI_USE_TIME_LIMITED

required
notBeforeDtmdate-timeThe token will remain inactive before this date.optional
notAfterDtmdate-timeThe date after which the token will be inactive.optional
maxCountint32

The number of times the token can be used.

In the example above the token can be used once only.

optional
counterint32The current usage count.optional
maxProcessDurationobjectoptional
startProcessAddressstringoptional
parametersMap<String,String>

A map of additional parameters can be supplied to provide extra information when the process instance is started.

This additional parameter map could typically contain information with the following keys:

  • firstName
  • lastName
  • email
  • phoneNumber

These are typically attributes that are useful for searching for an ID&V applicant. Any set of additional parameters may be passed in.

Using additional parameters the redirect URL can also be specified with they key _redirectUrl

Examples

Create Process Token uses the POST endpoint:/api/process-manager/processTokens.

Example: HTTP Request

http
Copy

Example: Multi-Use Time Limited Token

http
Copy

Example: Unlimited Token

http
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard