List All Email Validations
Endpointβ
GET https://api.verifik.co/v2/email-validations
This service retrieves a list of all email validations with optional filtering and pagination. You can filter by project, status, type, and other parameters to find specific email 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, expired, failed.
typeβ
Type: String
Required: No
Filter by type: validation, login, onboarding, oneTimeLink.
emailβ
Type: String
Required: No
Filter by email address.
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/email-validations',
params: {
page: 1,
limit: 10,
status: 'validated',
type: 'validation',
'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/email-validations?page=1&limit=10&status=validated&type=validation&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/email-validations', [
'headers' => [
'Content-Type': 'application/json',
'Authorization' => 'Bearer <your_token>',
],
'query' => [
'page' => 1,
'limit' => 10,
'status' => 'validated',
'type' => 'validation',
'populates[]' => ['client', 'project']
]
]);
echo $response->getBody();
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
url := "https://api.verifik.co/v2/email-validations?page=1&limit=10&status=validated&type=validation&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": "email_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",
"email": "user@example.com",
"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"
}
Characteristicsβ
- Complete Listing: Retrieves all email validations from your account
- Pagination: Support for pagination with page and limit control
- Advanced Filtering: Filter by project, status, type and email address
- Data Population: Includes related information such as client and project data
- Multiple States: Filter by status (new, sent, validated, expired, failed)
- Multiple Languages: Support for JavaScript, Python, PHP and Swift
- Detailed Information: Includes attempts, limits and validation timestamps