Start-Up Data

The minimal start-up data required in order for Keyfax to return launch data is shown below. These examples are only provided for demonstration purposes and start-up data should be tailored to suit your environment & integration.

You would pass start-up data into POST /api/v1/startup to obtain Keyfax launch data allowing you to launch a Keyfax session. Example minimal start-up data in both JSON & XML is provided below.

JSON

var startUpData = {     
    mode: { value: "RD" },
    userName: { value: "administrator" },
    password: { value: "" },
    company: { value: "RDFL_Dev" },            
    scriptSet: { value: "RD" }               
};

XML

<?xml version="1.0" encoding="UTF-8"?>
<StartUpData>
   <Mode>
      <Value>RD</Value>
   </Mode>
   <UserName>
      <Value>administrator</Value>
   </UserName>
   <Password>
      <Value>Global</Value>
   </Password>
   <Company>
      <Value>RDFL_Dev</Value>
   </Company>
   <ScriptSet>
      <Value>RD</Value>
   </ScriptSet>
</StartUpData>

Posting Start-Up Data

Whilst you will always need to provide a minimal set of start-up data it's also possible to post custom start-up data into Keyfax. This custom start-up data can be used within Keyfax to provide dynamic or intelligent scripting. Any supplied custom start-up data can also be flowed through Keyfax and made available again within the final results produced by Keyfax when calling POST /api/v1/results.

The example start-up JSON below demonstrates how to include custom data within the request to POST /api/v1/startup via the Keyfax Web API JavaScript SDK...

The example C# code below shows how to build this same custom start-up data using the strongly typed Keyfax Web API .NET SDK...

Start Up Data Examples

Below we've provided several examples showing the start-up data you would typically supply to Keyfax. These are just examples to help demonsteate what's possible. The start-up data you provide to Keyfax would typically be customized based on your integration.

Minimal Start-Up Data Examples

Staff (RD / FL)

Online (ROL / EOL)

Full Start- Up Data Examples

The below illustrates some realistic start-up data you would typically post to Keyfax via /api/v1/startup. This is only to serve as an example and to show what's possible. Host systems would typically work with Omfax Systems to craft this start-up data based on your specific requirements & configuration.

Staff (RD/FL)

Online (ROL/EOL)

Custom Start-Up Data

You can supply custom / non-standard fields within the Keyfax start-up JSON using the customData property as shown below...

This will be converted to the following start-up XML...

This would then be accessible within Keyfax via import data boxes (i.e.e //CustomData/CustomRoot1/CustomRoot1_Child1/@text())

You can also nest custom properties as demonstrated below...

This will produce the following start-up XML...

Custom Start Up Data Example

Consider the following start-up JSON...

This would actually be supplied to Keyfax as XML in the form...

So to access values within the <CustomData/> element you can use XPath expressions within existing Import data boxes as shown below...

Using Start-Up Data Within a Keyfax Script via Import Databoxes

Exporting Custom Start-Up Data

If you supply custom start-up data and wish to expose this within results produced by Keyfax the export template used by Keyfax will need to be updated to include any custom start-up data.

We would always suggest contacting Omfax Systems to better understand your requirements. We will work with you to tailor your start-up & export data to suit your integration and ensure you get the most from Keyfax.

Last updated