Event Dispatcher


To begin working with the Events API, you'll need to configure the Export API step in the builder if you haven't already. Follow these steps to set up and use the event dispatcher endpoint effectively:

1. Setting Up the Export API Step

Configure Export API in the Builder: Navigate to your workflow builder and add the Export API step. Make sure your callback URL is correctly configured to point to your event dispatcher endpoint.

2. Single Webhook Setup

Since your workflow will have only one callback, you need to manage any additional dispatch or routing on your server after receiving the event data.

3. Callback URL and Event Payload

Your Callback URL will receive JSON-based payloads containing various event types. The volume of events will vary depending on the activity of users in your flow.

Example Event Payload

{
    "id": "sample-id",
    "token": "sample-token",
    "type": "EVENT_CALLBACK",
    "event": {
        "type": "SERVICE_SUBMIT",
        "ts": 1718011363,
        "user": "sample-user-id"
    },
    "flowId": "sample-flow-id",
    "userId": "sample-user-id",
    "serviceType": "TRULIOO_EIDV",
    "test": true,
    "retry": 0,
    "serviceData": {
        "timestamp": 1718011363,
        "serviceStatus": "COMPLETED",
        "match": true,
        "transactionInfo": {
            "accountName": "sample-account-name",
            "accountIdentifier": "sample-account-identifier",
            "countryCode": "US",
            "date": "2022-11-22T12:00:00Z",
            "transactionId": "sample-transaction-id",
            "transactionRecordId": "sample-transaction-record-id",
            "userName": "sample-username"
        },
        "secondaryMatch": null
    }
}
Event TypeDescription
URL_VERIFICATIONOccurs when an API Handshake is initiated by Trulioo.
challenge: String sent by Trulioo, must be returned to verify the URL.
token: Static token sent with each transaction.
FLOW STARTOccurs when a Workflow is initiated.
user, flowId, id, test, token: Various identifying and status fields.
STEP INITOccurs when a Workflow form step exists in a flow.
user, flowId, id, test, token: Various identifying and status fields.
STEP_SUBMITOccurs when form data is sent to Trulioo by the end user.
user, flowId, id, test, token, formData: Various identifying and status fields, plus submitted form data.
SERVICE_SUBMITOccurs when a service response is received by Trulioo.
user, flowId, id, nodeId, test, token, serviceData: Various identifying and status fields, plus service-specific data.
FLOW_ENDOccurs when a Workflow reaches an end step.
user, flowId, id, test, token: Various identifying and status fields.
NOTE_ADDEDOccurs when a note is manually added in the Client Manager section.
user, flowId: Identifying fields.
TASK_ADDEDOccurs when a task is manually added in the Client Manager section.
user, flowId: Identifying fields.
TASK_DONEOccurs when a task is marked complete in the Client Manager section.
user, flowId: Identifying fields.
TASK_UNDONEOccurs when a task marked as complete is undone in the Client Manager section. user, flowId: Identifying fields.
MANUALLY_ACCEPTEDOccurs when a Lead is marked as ‘Accepted’.
user, flowId: Identifying fields.
MANUALLY_PENDING_REVIEWOccurs when a record is marked as ‘Review’.
user, flowId: Identifying fields.
MANUALLY_REJECTEDOccurs when a Lead is marked as ‘Rejected’.
user, flowId: Identifying fields.