Skip to content

dashboard ​

← All modules

2 endpoints.

GET /api/v1/dashboard/stats ​

Get Dashboard Stats

200 — Successful Response

json
{}

GET /api/v1/dashboard/lead-form-leads ​

Get Lead Form Leads

Meta lead-form lead count for the active account, windowed by days.

Its own endpoint because it pulls leads live from Meta (a few seconds for accounts with many forms), so the dashboard loads it separately and shows a spinner while it resolves. Returns {"count": int|None, "error": str|None}; applicable: false for an account with no linked company.

Parameters

NameInRequiredTypeDescription
daysquerynointeger

200 — Successful Response

json
{}

422 — Validation Error

json
{
  "properties": {
    "detail": {
      "items": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "type": "array",
      "title": "Detail"
    }
  },
  "type": "object",
  "title": "HTTPValidationError"
}

Lubb One Documentation