# 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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://api2-ekycapis.innov8tif.com/okayface-search/okayface-search-all/get-token-api/versions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
