# Flow management - send integrator responds with a **Verdict**

With the **Flow Management** feature, an integrator can interact with the onboarding flow in real time. At specific points in the flow, the system pauses and sends a **webhook notification** to the integrator. The flow does not proceed until the integrator responds with a **Verdict**.

When the flow reaches a Verdict step, the system sends a `STATUS_UPDATE_STEP` webhook to the integrator. After receiving the webhook, the integrator must call the Verdict endpoint to unblock the flow.

## Endpoint

* **URL**: `/request/YOUR_REQUEST_ID/actor/userToIdentify/verdict?stepId=YOUR_SELECTED_STEP`
* **Method**: `POST`


## Headers

Ensure you include the following headers in your request:

* `Accept: application/json`
* `Content-Type: application/json`
* `X-Api-Key: YOUR_API_KEY` (replace `YOUR_API_KEY` with your actual API key)


## Query parameters

* `stepId` (mandatory)**:** The Verdict can be enabled or disabled at the **request type** level. It can be activated at specific point of the flow (see the documentation:  [flow_management](/products/namirialonboarding/namirial-onboarding-knowledge-center/03-developer-documentation/04-advanced-topics/flow_management#verdict-steps))


## Body parameters

* `verdict`: possible verdict values:
  * `CONTINUE`: Flow continues with additional NOB checks or the next
  * `RETRY`: User is redirected to the **Retry Page**, which displays the `customerMessage` (or a default message). The user must click **Retry** to proceed. If `automaticRetry: true`, the retry page is skipped.
  * `NOT_OK`: Flow is blocked or terminated. Behavior to be confirmed.
* `automaticRetry`(optional): booloean, If `true`, the retry page is skipped and the step restarts automatically. Default: `false`
* `customerMessage` (optional): Message shown to the end user on the retry page. Falls back to template override or default internationalized message if omitted.
* `amendment (optional)`: Only valid with `RETRY`. Allows correcting request input parameters before the user retries.
  * `reason`: Description of the correction
  * `parameters`: Parameters to override (same type/class as the original request input)


NB: When the Verdict is `RETRY` and `automaticRetry` is `false`, the user is redirected to a special **Retry Page** that:

1. Displays the `customerMessage` sent by the integrator, or
2. Falls back to the message configured in the **request type template settings** (per language), or
3. Shows a NOB default internationalized message


The user must click the **Retry** button to continue. Clicking Retry restarts the step from the point defined by the Verdict step's retry behavior.

## Example cURL API call

*We can define a sample payload that includes all necessary fields for successfully testing an onboarding and signing process. The payload below is for illustrative purposes only.*

```json
curl --request POST \
  --url 'http://test-eu-ie1-api.namirialonboarding.com/api/v2/request/YOUR_REQUEST_ID/actor/userToIdentify/verdict?stepId=YOUR_SELECTED_STEP' \
  --header 'content-type: application/json' \
  --header 'x-api-key: YOUR_API_KEY' \
  --data '{
  "verdict": "RETRY",
  "customerMessage": "test",
  "automaticRetry": true,
  "amendment": {
    "reason": "test",
    "parameters": {
      "firstName": "Alex",
      "lastName": "Doe"
    }
  }
}'
```

Replace `YOUR_API_KEY` with your actual API key `YOUR_REQUEST_ID` with the ID of the request and `YOUR_SELECTED_STEP` with the specific sep you need to unblock.