# Versions

## Version 1

<mark style="color:green;">`POST`</mark> `https://okaydbdemo.innov8tif.com/ekyc/okaydb/api/idn/v1`

#### Request Body

| Name                                             | Type   | Description                                                           |
| ------------------------------------------------ | ------ | --------------------------------------------------------------------- |
| selfie\_photo <mark style="color:red;">\*</mark> | string | Selfie photo in base64 string                                         |
| birthplace<mark style="color:red;">\*</mark>     | string | Birthplace as shown on ID card. Used for birthplace matching          |
| birthdate<mark style="color:red;">\*</mark>      | string | <p>Birthdate as shown on ID card.<br>Used for birthdate matching.</p> |
| name<mark style="color:red;">\*</mark>           | string | Name as shown on ID card. Used for name matching.                     |
| nik<mark style="color:red;">\*</mark>            | string | NIK number                                                            |
| apiKey<mark style="color:red;">\*</mark>         | string | To be assigned by Innov8tif                                           |

{% tabs %}
{% tab title="200 " %}

```
{
    "status": "success",
    "nameMatch": true,
    "birthdateMatch": true,
    "birthplaceMatch": true,
    "address": "JL.S*K*L*H D*T* *** / 25",
    "faceDetected": 0.0
}
```

{% endtab %}

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

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

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

#### Postman Collection

{% file src="<https://1723857616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoP1M8bTYgFFHHnAdjjta%2Fuploads%2Fgor1ES6YFwvF1uHWfvyR%2FOkayDB%20-%20eKTP%20check.postman_collection.rar?alt=media&token=5d383936-9348-4d63-bc82-0f16687dc6c0>" %}
OkayDB e-KTP
{% endfile %}
