# Get Available Languages

## Get Available Languages

<mark style="color:blue;">`GET`</mark> `Https://api.biometrid.com/api/1.0/users/:userId/voice/available-languages`

Get available languages available for the voice recognition engine.

#### Path Parameters

| Name   | Type   | Description       |
| ------ | ------ | ----------------- |
| userID | string | BiometrID user ID |

#### Headers

| Name               | Type   | Description                                                                                                                                             |
| ------------------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Content-type       | string | Request content type (This is not required to be set. Referenced only to show how we expect data to be sent). { "Content-Type": "multipart/form-data" } |
| x-biometrid-key    | string | <p>Application Client Key<br></p>                                                                                                                       |
| x-biometrid-secret | string | Application Client Secret                                                                                                                               |

{% tabs %}
{% tab title="200 Success 200 types" %}
{% code title="HTTP/1.1 200 OK" %}

```javascript
//Get Available Languages
{
    "status": true,
     "data": {
        "languages": [
            "en",
            "es"
        ]
    }
}

```

{% endcode %}
{% endtab %}

{% tab title="400 Bad Request types" %}
{% code title="HTTP/1.1 400 Bad Request" %}

```javascript
// Missing Headers
{
    "status": false,
    "data": {
        "message": "AUTHENTICATION_HEADERS_MISSING"
    }
}
```

{% endcode %}
{% endtab %}

{% tab title="401 Invalid Headers." %}
{% code title="HTTP/1.1 401 Unauthorized" %}

```javascript
{
    "status": false,
    "data": {
        "message": "INVALID_AUTHENTICATION_HEADERS"
    }
}
```

{% endcode %}
{% endtab %}

{% tab title="404 Not Found request types" %}
{% code title="HTTP/1.1 404 Not Found" %}

```javascript
// No active engine configuration for this provider.
{
    "status": false,
    "data": {
        "message": "NO_VOICE_ENGINE_CONFIGURATION_AVAILABLE"
    }
}
 // User's id not exists in biometrid environment.
{
    "status": false,
    "data": {
        "message": "USERID_NOT_EXISTS"
    }
}
//Client not found by given key.
{
    "status": false,
    "data": {
        "message": "CLIENT_NOT_FOUND/CHECK_AUTHENTICATION_HEADERS"
    }
}
```

{% endcode %}
{% endtab %}
{% endtabs %}

### Success 200

| Field     | Type    | Description                                   |
| --------- | ------- | --------------------------------------------- |
| status    | Boolean | Response status.                              |
| data      | Object  | Response main data.                           |
| languages | Array   | Array containing all language code available. |
