# Description of the on\_complete Callback

This callback is called after the check is completed. It retrieves the analysis result (unavailable for the `capture` mode). The result content depends on the Web Adapter `result_mode` [configuration parameter](https://doc.ozforensics.com/oz-knowledge/guides/administrator-guide/web-adapter/configuration-file-settings).

{% hint style="info" %}
Keep in mind that it is more secure to get your back end responsible for the decision logic. You can find more details including code samples [here](https://doc.ozforensics.com/oz-knowledge/guides/developer-guide/sdk/oz-liveness-websdk/web-plugin/security-recommendations).
{% endhint %}

### Safe

When `result_mode` is `safe`, the `on_complete` callback contains the state of the analysis only:

```json
{
  "state": "finished"
}
```

{% hint style="danger" %}
Please note: The options listed below are for testing purposes only. If you require more information than what is available in the Safe mode, please follow [Security Recommendations](https://doc.ozforensics.com/oz-knowledge/guides/developer-guide/sdk/oz-liveness-websdk/web-plugin/security-recommendations).
{% endhint %}

### Status

For the `status` value, the callback contains the state of the analysis, and for each of the analysis types, the name of the type, state, and resolution.

```json
{
 "state": "finished",
 "analyses": {
   "quality": {
     "state": "finished",
     "resolution": "success"
   }
 }
}
```

### Folder

The `folder` value is almost similar to the `status` value, with the only difference: the `folder_id` is added.

```json
{
 "state": "finished",
 "folder_id": "your_folder_id",
 "analyses": {
   "quality": {
     "state": "finished",
     "resolution": "success"
   }
 }
}
```

### Full

In this case, you receive the detailed response possibly containing sensitive data. This mode is deprecated; for security reasons, we recommend using the `safe` mode.
