List All App Logins
Endpointβ
GET https://api.verifik.co/v2/app-logins
Headersβ
| Name | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
Parametersβ
| Parameter Name | Type | Required | Description |
|---|---|---|---|
page | number | No | Specifies the page of the results to retrieve. Default is 1 |
populates[] | array | No | An array specifying which validations to include (e.g., emailValidation, phoneValidation, biometricValidation) |
sort | string | No | Field by which to sort the results. Default is by creation date (-createdAt) |
where-exists_emailValidation | number | No | Filter results where email validation exists (1 to include) |
where-exists_phoneValidation | number | No | Filter results where phone validation exists (1 to include) |
where-exists_biometricValidation | number | No | Filter results where biometric validation exists (1 to include) |
like_name | string | No | Search results by name (supports partial matching) |
Requestβ
- Node.js
- Python
- PHP
- Go
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.verifik.co/v2/app-logins',
params: {
page: 1,
'populates[]': ['emailValidation', 'phoneValidation', 'biometricValidation'],
sort: '-createdAt'
},
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?page=1&populates[]=emailValidation&populates[]=phoneValidation&populates[]=biometricValidation&sort=-createdAt", 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?page=1&populates[]=emailValidation&populates[]=phoneValidation&populates[]=biometricValidation&sort=-createdAt', [
'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?page=1&populates[]=emailValidation&populates[]=phoneValidation&populates[]=biometricValidation&sort=-createdAt"
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
{
"data": [
{
"_id": "66e49e46dbfa9731ceb9d477",
"client": "613375a1eab2fe08527f81e2",
"name": "Verifik Main Account",
"status": "validated",
"project": "6266193db77ccc8111730c90",
"projectFlow": "658ed28b0990f300134d7b78",
"type": "email",
"emailValidation": {
"_id": "66e49e45dbfa9731ceb9d475",
"client": "613375a1eab2fe08527f81e2",
"project": "6266193db77ccc8111730c90",
"projectFlow": "658ed28b0990f300134d7b78",
"status": "validated",
"validationMethod": "verificationCode",
"email": "miguel.trevinom@gmail.com",
"emailData": {
"firstName": "Verifik Main Account",
"title": "Verifik Client App",
"projectName": "Verifik Client App",
"contactEmail": "miguel@verifik.co",
"logo": "https://cdn.verifik.co/projects/VerifikClientApp_1726146056389-image.png",
"authLink": "http://localhost:4400/sign-in/6266193db77ccc8111730c90?email=miguel.trevinom@gmail.com&otp=",
"buttonColor": "#14AE5C",
"buttonTxtColor": "#FFF"
},
"otp": "$2a$10$mMYT2vE6sx3J898UOPDeFeADuXYE3Gktkx9DwVUmDr0uiAu1qdp.y",
"expiresAt": "2024-09-13T20:29:17.000Z",
"extraParams": [],
"type": "login",
"redirectUrl": "https://verifik.app",
"requires2FA": false,
"ipAddress": "::ffff:172.17.0.1",
"updatedAt": "2024-09-13T20:19:47.927Z",
"createdAt": "2024-09-13T20:19:18.660Z",
"__v": 0
}
}
]
}