Filter email account stats
curl --request POST \
--url https://api.reply.io/v3/email-accounts/stats \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "connected",
"emailAccountType": "Gmail",
"domains": [
"company.com"
],
"tags": [
"Marketing"
]
}
'import requests
url = "https://api.reply.io/v3/email-accounts/stats"
payload = {
"status": "connected",
"emailAccountType": "Gmail",
"domains": ["company.com"],
"tags": ["Marketing"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
status: 'connected',
emailAccountType: 'Gmail',
domains: ['company.com'],
tags: ['Marketing']
})
};
fetch('https://api.reply.io/v3/email-accounts/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.reply.io/v3/email-accounts/stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'status' => 'connected',
'emailAccountType' => 'Gmail',
'domains' => [
'company.com'
],
'tags' => [
'Marketing'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.reply.io/v3/email-accounts/stats"
payload := strings.NewReader("{\n \"status\": \"connected\",\n \"emailAccountType\": \"Gmail\",\n \"domains\": [\n \"company.com\"\n ],\n \"tags\": [\n \"Marketing\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.reply.io/v3/email-accounts/stats")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"status\": \"connected\",\n \"emailAccountType\": \"Gmail\",\n \"domains\": [\n \"company.com\"\n ],\n \"tags\": [\n \"Marketing\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reply.io/v3/email-accounts/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"status\": \"connected\",\n \"emailAccountType\": \"Gmail\",\n \"domains\": [\n \"company.com\"\n ],\n \"tags\": [\n \"Marketing\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"id": 12345,
"emailsSentToday": 42,
"totalEmailsSent": 1580,
"dailySendingLimit": 500
}
],
"hasMore": true
}Email Accounts
Filter email account stats
Requires the
channels:read scope (or a broader one that includes it).
Get sending stats for a set of email accounts at once — handy for spotting email accounts near their daily limit.
POST
/
v3
/
email-accounts
/
stats
Filter email account stats
curl --request POST \
--url https://api.reply.io/v3/email-accounts/stats \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "connected",
"emailAccountType": "Gmail",
"domains": [
"company.com"
],
"tags": [
"Marketing"
]
}
'import requests
url = "https://api.reply.io/v3/email-accounts/stats"
payload = {
"status": "connected",
"emailAccountType": "Gmail",
"domains": ["company.com"],
"tags": ["Marketing"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
status: 'connected',
emailAccountType: 'Gmail',
domains: ['company.com'],
tags: ['Marketing']
})
};
fetch('https://api.reply.io/v3/email-accounts/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.reply.io/v3/email-accounts/stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'status' => 'connected',
'emailAccountType' => 'Gmail',
'domains' => [
'company.com'
],
'tags' => [
'Marketing'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.reply.io/v3/email-accounts/stats"
payload := strings.NewReader("{\n \"status\": \"connected\",\n \"emailAccountType\": \"Gmail\",\n \"domains\": [\n \"company.com\"\n ],\n \"tags\": [\n \"Marketing\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.reply.io/v3/email-accounts/stats")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"status\": \"connected\",\n \"emailAccountType\": \"Gmail\",\n \"domains\": [\n \"company.com\"\n ],\n \"tags\": [\n \"Marketing\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reply.io/v3/email-accounts/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"status\": \"connected\",\n \"emailAccountType\": \"Gmail\",\n \"domains\": [\n \"company.com\"\n ],\n \"tags\": [\n \"Marketing\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"id": 12345,
"emailsSentToday": 42,
"totalEmailsSent": 1580,
"dailySendingLimit": 500
}
],
"hasMore": true
}Authorizations
Query Parameters
Body
application/json
Filter criteria for searching email accounts. All provided filters are combined with AND logic — an account must match every specified filter to be included. Omitted (null) filters are ignored.