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β
- Node.js
- Python
- PHP
- Go
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);
}
import http.client
conn = http.client.HTTPSConnection("api.verifik.co")
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer <your_token>'
}
conn.request("GET", "/v2/phone-validations?page=1&limit=10&status=validated&type=validation&countryCode=%2B1&populates[]=client&populates[]=project", 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/phone-validations', [
'headers' => [
'Content-Type' => 'application/json',
'Authorization' => 'Bearer <your_token>',
],
'query' => [
'page' => 1,
'limit' => 10,
'status' => 'validated',
'type' => 'validation',
'countryCode' => '+1',
'populates[]' => ['client', 'project']
]
]);
echo $response->getBody();
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
url := "https://api.verifik.co/v2/phone-validations?page=1&limit=10&status=validated&type=validation&countryCode=%2B1&populates[]=client&populates[]=project"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Authorization", "Bearer <your_token>")
client := &http.Client{}
res, _ := client.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Responseβ
- 200
- 400
{
"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"
}
}
{
"success": false,
"error": "Invalid query parameters",
"code": "INVALID_PARAMETERS"
}
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