# Results

### Json Result

If you want to have to request the extracted text in a JSON, you can request the following API route.

<mark style="color:blue;">`GET`</mark> `https://use.laigo.io/api/Result/v1/JobResults/<jobid>/json`

#### Query Parameters

| Name                                    | Type   | Description                            |
| --------------------------------------- | ------ | -------------------------------------- |
| jobId<mark style="color:red;">\*</mark> | String | Job Id from uploaded file to smartTool |

#### Headers

| Name                                          | Type   | Description                                                      |
| --------------------------------------------- | ------ | ---------------------------------------------------------------- |
| accessToken<mark style="color:red;">\*</mark> | String | A JWT issued to your application by the Laigo identity provider. |

{% tabs %}
{% tab title="200: OK Returns json result" %}

{% endtab %}

{% tab title="400: Bad Request Incomplete request or insufficient Laigos" %}

{% endtab %}

{% tab title="401: Unauthorized Unauthorized call" %}

{% endtab %}

{% tab title="404: Not Found Required file is not found" %}

{% endtab %}
{% endtabs %}

### Zip Result

If you want to get the result as files (searchable PDF + Textfile), you can request the following API route.

<mark style="color:blue;">`GET`</mark> `https://use.laigo.io/api/Result/v1/JobResults/<jobid>/zip`

#### Query Parameters

| Name                                    | Type   | Description                            |
| --------------------------------------- | ------ | -------------------------------------- |
| jobId<mark style="color:red;">\*</mark> | String | Job Id from uploaded file to smartTool |

#### Headers

| Name                                          | Type   | Description                                                      |
| --------------------------------------------- | ------ | ---------------------------------------------------------------- |
| accessToken<mark style="color:red;">\*</mark> | String | A JWT issued to your application by the Laigo identity provider. |

{% tabs %}
{% tab title="200: OK Returns zip file as a result" %}

{% endtab %}

{% tab title="400: Bad Request Incomplete request or insufficient Laigos" %}

{% endtab %}

{% tab title="401: Unauthorized Unauthorized call" %}

{% endtab %}

{% tab title="404: Not Found Required file is not found" %}

{% endtab %}
{% endtabs %}

### File Result

If you want to get the result as file (CSV), you can request the following API route.

<mark style="color:blue;">`GET`</mark> `https://use.laigo.io/api/Result/v1/JobResults/<jobid>/file`

#### Query Parameters

| Name                                         | Type   | Description                            |
| -------------------------------------------- | ------ | -------------------------------------- |
| jobId<mark style="color:red;">\*</mark>      | String | Job Id from uploaded file to smartTool |
| outputType<mark style="color:red;">\*</mark> | String | Requested file type                    |

#### Headers

| Name                                          | Type   | Description                                                      |
| --------------------------------------------- | ------ | ---------------------------------------------------------------- |
| accessToken<mark style="color:red;">\*</mark> | String | A JWT issued to your application by the Laigo identity provider. |

{% tabs %}
{% tab title="200: OK Returns csv file as a result" %}

{% endtab %}

{% tab title="400: Bad Request Incomplete request or insufficient Laigos" %}

{% endtab %}

{% tab title="401: Unauthorized Unauthorized call" %}

{% endtab %}

{% tab title="404: Not Found Required file is not found" %}

{% endtab %}
{% endtabs %}
