> For the complete documentation index, see [llms.txt](https://api2-ekycapis.innov8tif.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api2-ekycapis.innov8tif.com/okayface-search/okayface-search-all/get-token-api/versions.md).

# Versions

{% hint style="info" %}
Recommended/Latest version is always placed at the top of the page. (v2 for OkayFace)&#x20;
{% endhint %}

## Get Token- V1

## Get Token - V1

<mark style="color:green;">`POST`</mark> `http://okayfacesearchdemo.innov8tif.com/v1/auth/get-token`

#### Request Body

| Name                                        | Type   | Description                                                                                                                                                                                                                                |
| ------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| api\_key <mark style="color:red;">\*</mark> | string | To be assigned by Innov8tif                                                                                                                                                                                                                |
| data<mark style="color:red;">\*</mark>      | string | <p>Please refer to "How to encrypt and decrypt data page"</p><p>Encrypt the following parametr </p><p></p><p><code>1)  </code><strong><code>package\_name (string)</code></strong><code> (Provided by Innov8tif)</code> </p><p></p><p></p> |

{% tabs %}
{% tab title="200 Response from get token API" %}
{% code overflow="wrap" %}

```json

Encrypted Form
{
    "success": true,
    "data": "4oCmb8Y4Uk7OKAyKpHVynZLiDSB4ULjo97zAiX/Wb2koDsvyaMIvI2hF+0Ml+U6y/XT8IOGERGAYuQvRLwe1l5lRiDGEsn0FBV5OyMXqftG78W7LA0GscS9iqCkfhVhc"
}


Decrypted Form
{
   "success":true,
   “data”: 
   {
       "access_token":"f30f030890d314ea743412966dd29d5e",
       "expired_at":"2023-06-11 14:32:59"
    }
}





```

{% endcode %}
{% endtab %}

{% tab title="400: Bad Request " %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="500: Internal Server Error " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

#### Postman Collection
