Retrieve an App Login
Endpointβ
GET https://api.verifik.co/v2/app-logins/{id}
Headersβ
| Name | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
Parametersβ
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The unique ID of the app login record you want to retrieve |
Query Parametersβ
| Name | Type | Required | Description |
|---|---|---|---|
populates[] | array | No | An array specifying which validation fields to populate (e.g., biometricValidation) |
Requestβ
- Node.js
- Python
- PHP
- Go
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.verifik.co/v2/app-logins/66e464acbad79f3a380d408f',
params: {
'populates[]': ['biometricValidation']
},
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer <your_token>'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
import http.client
conn = http.client.HTTPSConnection("api.verifik.co")
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer <your_token>'
}
conn.request("GET", "/v2/app-logins/66e464acbad79f3a380d408f?populates[]=biometricValidation", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://api.verifik.co/v2/app-logins/66e464acbad79f3a380d408f?populates[]=biometricValidation', [
'headers' => [
'Content-Type' => 'application/json',
'Authorization' => 'Bearer <your_token>',
],
]);
echo $response->getBody();
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
url := "https://api.verifik.co/v2/app-logins/66e464acbad79f3a380d408f?populates[]=biometricValidation"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Authorization", "Bearer <your_token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Responseβ
- 200
- 404
{
"data": {
"_id": "66e464acbad79f3a380d408f",
"client": "613375a1eab2fe08527f81e2",
"name": "",
"status": "pending",
"project": "6266193db77ccc8111730c90",
"projectFlow": "658ed28b0990f300134d7b78",
"type": "faceliveness",
"biometricValidation": "66e464acbad79f3a380d408d",
"accessControlLog": "66e464acbad79f3a380d4090",
"updatedAt": "2024-09-13T16:13:32.942Z",
"createdAt": "2024-09-13T16:13:32.942Z",
"__v": 0
}
}
{
"code": "NotFound",
"message": "Record not found."
}