> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/sdks/sdk-mobile/framework-plugins/extras/selphi/selphi-resultado.md).

# Selphi Result

The possible fields returned in the result are as follows:

#### finishStatus

Returns a number for the operation result. Possible values:

* **1**: The operation was successful.
* **2**: An error occurred, which will be indicated in the string ***`errorType`*** and, optionally, an additional information message will be shown in the ***`errorMessage`***.

#### finishStatusDescription

Returns a description of the operation result. Possible values:

* **STATUS\_OK**: The operation was successful.
* **STATUS\_ERROR**: An error occurred, which will be indicated in the string ***`errorType(errorDiagnostic para Flutter)`*** and, optionally, an additional information message will be shown in the ***`errorMessage`***.

#### errorType ó errorDiagnostic(sólo para Flutter) <a href="#id-61-recepcion-de-errores" id="id-61-recepcion-de-errores"></a>

Indicates why the component failed. Possible values:

On iOS, the `errorType` received from the SDK in a timeout may be `SDK_TIMEOUT` or `SELPHI_TIMEOUT(LivenessDiagnostic?)`. There is no `TIMEOUT` case without a prefix on iOS. The `SELPHI_TIMEOUT` case preserves the liveness diagnostic when available (`LivenessDiagnostic?`). In hybrid integrations, the internal Swift enum name must not be used as a response contract.

To serialize the error on iOS, use:

```swift
errorType.toString(addComponentPrefix: "SPI_")
```

This returns `SPI_TIMEOUT` for both `SDK_TIMEOUT` and `SELPHI_TIMEOUT`. On Android, the equivalent error-list value is `TIMEOUT` (without a prefix).

For an iOS timeout:

* `finishStatus` is `STATUS_ERROR`
* `data` is `nil` (no `templateRaw`, `bestImage`etc. are returned)
* Any additional liveness information, if present, is in the value associated with `SELPHI_TIMEOUT`, not in `data`

{% content-ref url="/pages/bced26561fe92aa9a9d6c52c404f342a93aeec33" %}
[Selphi - Error List](https://docs.facephi.com/docs.facephi-en/sdks/sdk-mobile/framework-plugins/extras/selphi/selphi-listado-de-errores.md)
{% endcontent-ref %}

#### errorMessage

Indicates an additional error message. This is optional.

#### **templateRaw**

Returns the raw template generated after the extraction process. Valid for the **matching**.

#### **template**

Returns the template generated after the extraction process. Valid for the **matching**.

#### **bestImage**

Returns the best image extracted during the authentication process. This image is extracted from the camera at its original size. Valid for the **Liveness**.

#### **bestImageCropped**

Returns a cropped image centered on the user's face. This image is obtained from the *bestImage*.

#### **logImages**

List of the 5 best images captured. Returned if the "logImages" flag is enabled in the configuration.

#### **bestImageTokenized**

Returns the best image extracted during the process, encrypted. Valid for the **Liveness**.

#### **IAD**

Returns a token/hash that must be used to call a validation service. Adds a layer of defense against sophisticated attacks that use digital injection or advanced spoofing.
