Get dashboard data
curl --request GET \
--url https://www.useroulette.com/api/v1/accounts/{account_id}/dashboard \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.useroulette.com/api/v1/accounts/{account_id}/dashboard"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.useroulette.com/api/v1/accounts/{account_id}/dashboard', 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://www.useroulette.com/api/v1/accounts/{account_id}/dashboard",
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://www.useroulette.com/api/v1/accounts/{account_id}/dashboard"
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://www.useroulette.com/api/v1/accounts/{account_id}/dashboard")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.useroulette.com/api/v1/accounts/{account_id}/dashboard")
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": {
"stats": {
"total_companies": 150,
"companies_this_month": 12,
"active_deals": 45,
"meetings_this_week": 8
},
"pipeline_summary": [
{
"status_id": "uuid-1",
"status_name": "Initial Review",
"color": "#6B7280",
"count": 45
},
{
"status_id": "uuid-2",
"status_name": "Due Diligence",
"color": "#3B82F6",
"count": 23
},
{
"status_id": "uuid-3",
"status_name": "Partner Meeting",
"color": "#8B5CF6",
"count": 15
}
],
"recent_activity": [
{
"id": "activity-1",
"type": "company_added",
"description": "TechStartup Inc was added to pipeline",
"company_id": "company-uuid",
"company_name": "TechStartup Inc",
"created_at": "2024-01-20T14:30:00Z"
},
{
"id": "activity-2",
"type": "status_changed",
"description": "AI Platform moved to Due Diligence",
"company_id": "company-uuid-2",
"company_name": "AI Platform",
"created_at": "2024-01-20T10:15:00Z"
}
],
"charts": {
"companies_over_time": [
{
"date": "2024-01-20",
"count": 3
},
{
"date": "2024-01-19",
"count": 5
},
{
"date": "2024-01-18",
"count": 2
}
],
"source_breakdown": [
{
"source": "email",
"count": 45
},
{
"source": "referral",
"count": 38
},
{
"source": "form",
"count": 25
}
]
}
}
}{
"success": false,
"error": "Invalid or expired API key",
"data": null
}{
"success": false,
"error": "Resource not found",
"data": null
}Dashboard
Get dashboard data
Retrieve aggregated dashboard data including statistics, pipeline summary, recent activity, and charts.
This endpoint is optimized for performance and returns pre-computed metrics where possible.
GET
/
accounts
/
{account_id}
/
dashboard
Get dashboard data
curl --request GET \
--url https://www.useroulette.com/api/v1/accounts/{account_id}/dashboard \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.useroulette.com/api/v1/accounts/{account_id}/dashboard"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.useroulette.com/api/v1/accounts/{account_id}/dashboard', 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://www.useroulette.com/api/v1/accounts/{account_id}/dashboard",
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://www.useroulette.com/api/v1/accounts/{account_id}/dashboard"
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://www.useroulette.com/api/v1/accounts/{account_id}/dashboard")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.useroulette.com/api/v1/accounts/{account_id}/dashboard")
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": {
"stats": {
"total_companies": 150,
"companies_this_month": 12,
"active_deals": 45,
"meetings_this_week": 8
},
"pipeline_summary": [
{
"status_id": "uuid-1",
"status_name": "Initial Review",
"color": "#6B7280",
"count": 45
},
{
"status_id": "uuid-2",
"status_name": "Due Diligence",
"color": "#3B82F6",
"count": 23
},
{
"status_id": "uuid-3",
"status_name": "Partner Meeting",
"color": "#8B5CF6",
"count": 15
}
],
"recent_activity": [
{
"id": "activity-1",
"type": "company_added",
"description": "TechStartup Inc was added to pipeline",
"company_id": "company-uuid",
"company_name": "TechStartup Inc",
"created_at": "2024-01-20T14:30:00Z"
},
{
"id": "activity-2",
"type": "status_changed",
"description": "AI Platform moved to Due Diligence",
"company_id": "company-uuid-2",
"company_name": "AI Platform",
"created_at": "2024-01-20T10:15:00Z"
}
],
"charts": {
"companies_over_time": [
{
"date": "2024-01-20",
"count": 3
},
{
"date": "2024-01-19",
"count": 5
},
{
"date": "2024-01-18",
"count": 2
}
],
"source_breakdown": [
{
"source": "email",
"count": 45
},
{
"source": "referral",
"count": 38
},
{
"source": "form",
"count": 25
}
]
}
}
}{
"success": false,
"error": "Invalid or expired API key",
"data": null
}{
"success": false,
"error": "Resource not found",
"data": null
}Authorizations
API key authentication. Generate keys from your account settings.
Include in header: Authorization: Bearer YOUR_API_KEY
Path Parameters
The unique identifier of the account/team
Query Parameters
Number of days to include in chart data
Required range:
7 <= x <= 365⌘I

