Stats
Get current stats for verifications.
Get Account Statistics
This endpoint provides a high-level snapshot of your account's verification activity, including user registration volume, a breakdown of user statuses, and a list of the most recent user records.
This is useful for building dashboards or for periodic reporting on your verification funnel.
GET
https://{sub-domain}.trustswiftly.com/api/stats
Authentication
Authentication is handled via the Authorization
header. There are no path or query parameters for this endpoint.
Authorization
string
Yes
Your secret API key, prefixed with Bearer
.
Accept
string
Yes
Must be application/json
.
Understanding the Response Body
The response object is composed of three main sections:
users_per_month
This object provides a monthly breakdown of total user registrations for the current calendar year.
"users_per_month": {
"January": 0,
"February": 0,
"March": 1,
// ...etc
}
users_per_status
This object gives you a real-time count of users categorized by their current status within the Trust Swiftly system.
total
The total number of user records associated with your account.
new
Users who have been created but have not yet started a verification flow.
banned
Users who have been explicitly banned.
unconfirmed
Users who are in a pending or processing state.
"users_per_status": {
"total": 3,
"new": 2,
"banned": 0,
"unconfirmed": 1
}
latest_registrations
This is an array containing the full user objects for the most recently created users on your account. While the full object is returned, the most relevant fields for statistical purposes are typically:
id
The user's unique ID within the Trust Swiftly system.
first_name
The user's first name.
last_name
The user's last name.
email
The user's email address.
status
The current status of the user (e.g., "Active", "Unconfirmed").
created_at
The timestamp when the user was created.
Example Request & Full Response
Request
curl --request GET \
--url https://{sub-domain}.trustswiftly.com/api/stats \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Accept: application/json'
Full Response
Last updated