Workflows Management


This page will introduce you to workflows. But what do we mean by workflows? Workflows are the sequences of steps that certain claims go through. In other words, the process doesn't end once a claim is created. There are specific steps that must be completed.

Let's consider an example: suppose there is a theft claim. The first step is to create the claim, but then two things need to be validated—a police report confirming the theft occurred and the amount to be covered. These aspects can't be verified at the time of creating the claim because you don't have the theft report, and without it, we can't validate what will be covered.

Therefore, the claim enters a system of steps where the necessary information can be requested to fulfill the requirements, allowing for much more granular and asynchronous management of each case. This may involve agents and communication with third parties. This documentation will guide you on how to integrate workflows, always keeping in mind that this process takes place after the claim has been created.

How to interact with a workflow

To interact with a workflow, it's necessary to know the claim ID. Therefore, we recommend understanding how claim gets work.

Post a step

POST https://app.insurehero.io/api/shield/v1/claims/:claimId/workflow

Headers

Request Body

This endpoint support raw and form-data depending upon the kind of requirement of the step. To know more about what kind of data you can send use the get workflow endpoint.

Types of responses

Get step information

Fetch the information needed to pass the step

GET https://api.insurehero.io/api/shield/v1/claims/:claimId/workflow

Path Parameters

Headers

{
    "data": {
        "id": "c7bc72aa-6d0a-4958-ad09-50bd4fc9c232",
        "current_step": "step_2",
        "workflow": {
            "step_2": {
                "name": "EXAMPLE 1: Receive the form - .png",
                "inbound": {
                    "undefined": {
                        "type": "file",
                        "typeOfFile": ".png"
                    }
                }
            }
        }
    }
}

Last updated