Skip to main content

List All Phone Validations

Endpoint​

GET https://api.verifik.co/v2/phone-validations

This service retrieves a list of all phone validations with optional filtering and pagination. You can filter by project, status, type, and other parameters to find specific phone validations.

Headers​

Content-Type​

Type: String
Required: Required
Value: application/json

Authorization​

Type: String
Required: Required
Value: Bearer {YOUR_ACCESS_TOKEN}

Query Parameters​

page​

Type: Number
Required: No

Page number for pagination (default: 1).

limit​

Type: Number
Required: No

Number of records per page (default: 10, max: 100).

project​

Type: String
Required: No

Filter by project ID.

status​

Type: String
Required: No

Filter by status: new, sent, validated, failed.

type​

Type: String
Required: No

Filter by type: validation, login, onboarding.

countryCode​

Type: String
Required: No

Filter by country code.

phone​

Type: String
Required: No

Filter by phone number.

populates[]​

Type: String
Required: No

Optional array of related data to include. Available options: client, project, projectFlow.

Request​

import axios from 'axios';

const options = {
method: 'GET',
url: 'https://api.verifik.co/v2/phone-validations',
params: {
page: 1,
limit: 10,
status: 'validated',
type: 'validation',
countryCode: '+1',
'populates[]': ['client', 'project']
},
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​

{
"success": true,
"data": [
{
"_id": "phone_validation_123456789",
"client": {
"_id": "client_123456789",
"name": "Example Client",
"email": "client@example.com"
},
"project": {
"_id": "project_123456789",
"name": "Example Project",
"description": "Example project description"
},
"status": "validated",
"countryCode": "+1",
"phone": "1234567890",
"type": "validation",
"validationMethod": "verificationCode",
"expiresAt": "2024-01-15T11:30:00Z",
"attempts": 1,
"maxAttempts": 3,
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:32:00Z",
"validatedAt": "2024-01-15T10:32:00Z"
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 1,
"pages": 1
},
"signature": {
"dateTime": "April 11, 2023 12:25 PM",
"message": "Certified by Verifik.co"
}
}

Features​

  • Complete Listing: Retrieves all phone validations from your account
  • Pagination: Support for pagination with page and limit control
  • Advanced Filtering: Filter by project, status, type, country code and phone number
  • Data Population: Include related information such as client and project data
  • Multiple States: Filter by status (new, sent, validated, failed)
  • Country Codes: Specific filtering by international country code
  • Multiple Languages: Support for JavaScript, Python, PHP and Swift
  • Detailed Information: Includes attempts, limits and validation timestamps