Skip to main content

List All App Logins

Endpoint​

GET https://api.verifik.co/v2/app-logins

Headers​

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>

Parameters​

Parameter NameTypeRequiredDescription
pagenumberNoSpecifies the page of the results to retrieve. Default is 1
populates[]arrayNoAn array specifying which validations to include (e.g., emailValidation, phoneValidation, biometricValidation)
sortstringNoField by which to sort the results. Default is by creation date (-createdAt)
where-exists_emailValidationnumberNoFilter results where email validation exists (1 to include)
where-exists_phoneValidationnumberNoFilter results where phone validation exists (1 to include)
where-exists_biometricValidationnumberNoFilter results where biometric validation exists (1 to include)
like_namestringNoSearch results by name (supports partial matching)

Request​

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);
}

Response​

{
"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
}
}
]
}