Skip to main content
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>'
{
  "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
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

Path Parameters

account_id
string<uuid>
required

Query Parameters

chart_days
integer
default:30
Required range: 7 <= x <= 365

Response

success
boolean
required
data
object
required