Consultar relatório de escala
curl --request GET \
--url https://api.ephra.io/v1/reports/scale \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ephra.io/v1/reports/scale"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ephra.io/v1/reports/scale', 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.ephra.io/v1/reports/scale",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ephra.io/v1/reports/scale"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ephra.io/v1/reports/scale")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ephra.io/v1/reports/scale")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"estimatedLtv": {
"value": 87400,
"trend": "up",
"changeVsPreviousPeriod": 6.2
},
"retention6Months": {
"rate": 41.3,
"activeCustomers": 312,
"changeVsPreviousPeriod": 2.4
},
"repurchaseRate": {
"rate": 27.8,
"recurringCustomers": 118,
"changeVsPreviousPeriod": 1.9
},
"mrr": {
"value": 1284000,
"changeVsPreviousPeriod": 8.1
},
"ltvOverTime": {
"changeOverPeriod": 6.2,
"points": [
{
"date": "2026-09-01T00:00:00.000Z",
"ltv": 87400,
"customers": 312
}
]
},
"retentionCurve": {
"points": [
{
"month": "M1",
"percentage": 100
},
{
"month": "M6",
"percentage": 41.3
}
]
},
"repurchaseDistribution": {
"recurringRate": 27.8,
"buckets": [
{
"label": "1 compra",
"customers": 306,
"revenue": 15269400,
"percentage": 72.2
}
]
},
"revenueByCustomer": {
"points": [
{
"date": "2026-09-01T00:00:00.000Z",
"newRevenue": 984200,
"recurringRevenue": 299800
}
]
},
"mrrEvolution": {
"changeOverPeriod": 8.1,
"points": [
{
"date": "2026-09-01T00:00:00.000Z",
"mrr": 1284000
}
]
}
}
}{
"success": false,
"message": "Token inválido ou expirado"
}{
"success": false,
"message": "name: Nome é obrigatório"
}{
"success": false,
"message": "Muitas requisições. Tente novamente em breve."
}{
"success": false,
"message": "Erro interno do servidor"
}Crescimento
Consultar relatório de escala
Devolve como a base de clientes da empresa autenticada cresce no período: LTV estimado, retenção em 6 meses, taxa de recompra, receita recorrente mensal e a divisão entre receita nova e recorrente. Use para saber se o crescimento vem de cliente novo ou de cliente que volta.
GET
/
v1
/
reports
/
scale
Consultar relatório de escala
curl --request GET \
--url https://api.ephra.io/v1/reports/scale \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ephra.io/v1/reports/scale"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ephra.io/v1/reports/scale', 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.ephra.io/v1/reports/scale",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ephra.io/v1/reports/scale"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ephra.io/v1/reports/scale")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ephra.io/v1/reports/scale")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"estimatedLtv": {
"value": 87400,
"trend": "up",
"changeVsPreviousPeriod": 6.2
},
"retention6Months": {
"rate": 41.3,
"activeCustomers": 312,
"changeVsPreviousPeriod": 2.4
},
"repurchaseRate": {
"rate": 27.8,
"recurringCustomers": 118,
"changeVsPreviousPeriod": 1.9
},
"mrr": {
"value": 1284000,
"changeVsPreviousPeriod": 8.1
},
"ltvOverTime": {
"changeOverPeriod": 6.2,
"points": [
{
"date": "2026-09-01T00:00:00.000Z",
"ltv": 87400,
"customers": 312
}
]
},
"retentionCurve": {
"points": [
{
"month": "M1",
"percentage": 100
},
{
"month": "M6",
"percentage": 41.3
}
]
},
"repurchaseDistribution": {
"recurringRate": 27.8,
"buckets": [
{
"label": "1 compra",
"customers": 306,
"revenue": 15269400,
"percentage": 72.2
}
]
},
"revenueByCustomer": {
"points": [
{
"date": "2026-09-01T00:00:00.000Z",
"newRevenue": 984200,
"recurringRevenue": 299800
}
]
},
"mrrEvolution": {
"changeOverPeriod": 8.1,
"points": [
{
"date": "2026-09-01T00:00:00.000Z",
"mrr": 1284000
}
]
}
}
}{
"success": false,
"message": "Token inválido ou expirado"
}{
"success": false,
"message": "name: Nome é obrigatório"
}{
"success": false,
"message": "Muitas requisições. Tente novamente em breve."
}{
"success": false,
"message": "Erro interno do servidor"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Início do período, em ISO 8601. Sem período, vale a janela padrão.
Fim do período, em ISO 8601.
⌘I
