User and Org Insights API Reference

These APIs can be called from the backend using your PropelAuth API Key. These APIs are used to fetch the raw data used in the User Insights reports and charts.


GET/api/backend/v1/user/<userId>/signup_query_parameters

Fetch User Signup Query Parameters

Fetches the signup query parameters for the user. See the docs here for more information.

Properties

  • Name
    userId *
    Type
    string
    Description
    The ID of the user.

Request

auth.fetchUserSignupQueryParams("31c41c16-c281-44ae-9602-8a047e3bf33d");

Successful Response

{
    userSignupQueryParameters: {
        query_param_example: "example_value"
    }
}
{
    user_signup_query_parameters: {
        query_param_example: "example_value"
    }
}
{
    user_signup_query_parameters: {
        query_param_example: "example_value"
    }
}
{
    UserSignupQueryParameters: {
        query_param_example: "example_value"
    }
}
{
    "user_signup_query_parameters": {
        "query_param_example": "example_value"
    }
}

GET/api/backend/v1/user_report/top_inviter

Fetch User Top Inviter Report

Fetches the top inviter report, a leaderboard of users with the highest number of invited users in a period of time.

Properties

  • Name
    reportInterval
    Type
    string
    Description
    The report interval to return. Options include '30', '60', and '90' days.
  • Name
    pageSize
    Type
    number
    Description
    The number of entries to return per page
  • Name
    pageNumber
    Type
    number
    Description
    The page number to return

Request

auth.fetchUserTopInviterReport(
    TopInviterReportInterval.THIRTY_DAYS,
    ReportPagination {
        pageSize: 10,
        pageNumber: 0
    }
)

Successful Response

{
  userReports: [
    {
      id: "df1940...",
      reportId: "de58c...",
      userId: "813bef...",
      userCreatedAt: 1701392700,
      username: "exampleUsername",
      firstName: "John",
      lastName: "Doe",
      email: "john@acmeinc.com",
      lastActiveAt: 1773250562,
      orgData: [
        {
            displayName: "Acme Inc",
            orgId: "4f18c3...",
            userRole: "Owner"
        },
      ],
      extraProperties: {
        numInvites: 4
      }
    },
  ],
  currentPage: 0,
  totalCount: 2,
  pageSize: 10,
  hasMoreResults: false,
  reportTime: 1773330458
}
{
  user_reports: [
    {
      id: "df1940...",
      report_id: "de58c...",
      user_id: "813bef...",
      user_created_at: 1701392700,
      username: "exampleUsername",
      first_name: "John",
      last_name: "Doe",
      email: "john@acmeinc.com",
      last_active_at: 1773250562,
      org_data: [
        {
          display_name: "Acme Inc",
          org_id: "4f18c3...",
          user_role: "Owner"
        },
      ],
      extra_properties: {
        num_invites: 4
      }
    },
  ],
  current_page: 0,
  total_count: 2,
  page_size: 10,
  has_more_results: false,
  report_time: 1773330458
}
{
  user_reports: [
    {
      id: "df1940...".to_string(),
      report_id: "de58c...".to_string(),
      user_id: "813bef...".to_string(),
      user_created_at: 1701392700,
      username: "exampleUsername".to_string(),
      first_name: "John".to_string(),
      last_name: "Doe".to_string(),
      email: "john@acmeinc.com".to_string(),
      last_active_at: 1773250562,
      org_data: [
        {
          display_name: "Acme Inc".to_string(),
          org_id: "4f18c3...".to_string(),
          user_role: "Owner".to_string()
        },
      ],
      extra_properties: {
        num_invites: 4
      }
    },
  ],
  current_page: 0,
  total_count: 2,
  page_size: 10,
  has_more_results: false,
  report_time: 1773330458
}
{
  UserReports: [
    {
      Id: "df1940...",
      ReportId: "de58c...",
      UserId: "813bef...",
      UserCreatedAt: 1701392700,
      Username: "exampleUsername",
      FirstName: "John",
      LastName: "Doe",
      Email: "john@acmeinc.com",
      LastActiveAt: 1773250562,
      OrgData: [
        {
          DisplayName: "Acme Inc",
          OrgId: "4f18c3...",
          UserRole: "Owner"
        },
      ],
      ExtraProperties: {
        num_invites: 4
      }
    },
  ],
  CurrentPage: 0,
  TotalCount: 2,
  PageSize: 10,
  HasMoreResults: false,
  ReportTime: 1773330458,
}
{
  "user_reports": [
    {
      "id": "df1940...",
      "report_id": "de58c...",
      "user_id": "813bef...",
      "user_created_at": 1701392700,
      "username": "exampleUsername",
      "first_name": "John",
      "last_name": "Doe",
      "email": "john@acmeinc.com",
      "last_active_at": 1773250562,
      "org_data": [
        {
          "display_name": "Acme Inc",
          "org_id": "4f18c3...",
          "user_role": "Owner"
        },
      ],
      "extra_properties": {
        "num_invites": 4
      }
    },
  ],
  "current_page": 0,
  "total_count": 2,
  "page_size": 10,
  "has_more_results": false,
  "report_time": 1773330458
}

GET/api/backend/v1/user_report/champion

Fetch User Champion Report

Fetches the potential champions report, a leaderboard of users with the highest amount of activity in a period of time.

Properties

  • Name
    reportInterval
    Type
    string
    Description
    The report interval to return. Options include '30', '60', and '90' days.
  • Name
    pageSize
    Type
    number
    Description
    The number of entries to return per page
  • Name
    pageNumber
    Type
    number
    Description
    The page number to return

Request

auth.fetchUserChampionReport(
    ChampionReportInterval.THIRTY_DAYS,
    ReportPagination {
        pageSize: 10,
        pageNumber: 0
    }
)

Successful Response

{
  userReports: [
    {
      id: "df1940...",
      reportId: "de58c...",
      userId: "813bef...",
      userCreatedAt: 1701392700,
      username: "exampleUsername",
      firstName: "John",
      lastName: "Doe",
      email: "john@acmeinc.com",
      lastActiveAt: 1773250562,
      orgData: [
        {
            displayName: "Acme Inc",
            orgId: "4f18c3...",
            userRole: "Owner"
        },
      ],
      extraProperties: {
        numActiveDays: 4
      },
    },
  ],
  currentPage: 0,
  totalCount: 2,
  pageSize: 10,
  hasMoreResults: false,
  reportTime: 1773330458
}
{
  user_reports: [
    {
      id: "df1940...",
      report_id: "de58c...",
      user_id: "813bef...",
      user_created_at: 1701392700,
      username: "exampleUsername",
      first_name: "John",
      last_name: "Doe",
      email: "john@acmeinc.com",
      last_active_at: 1773250562,
      org_data: [
        {
          display_name: "Acme Inc",
          org_id: "4f18c3...",
          user_role: "Owner"
        },
      ],
      extra_properties: {
        num_active_days: 4
      }
    },
  ],
  current_page: 0,
  total_count: 2,
  page_size: 10,
  has_more_results: false,
  report_time: 1773330458
}
{
  user_reports: [
    {
      id: "df1940...".to_string(),
      report_id: "de58c...".to_string(),
      user_id: "813bef...".to_string(),
      user_created_at: 1701392700,
      username: "exampleUsername".to_string(),
      first_name: "John".to_string(),
      last_name: "Doe".to_string(),
      email: "john@acmeinc.com".to_string(),
      last_active_at: 1773250562,
      org_data: [
        {
          display_name: "Acme Inc".to_string(),
          org_id: "4f18c3...".to_string(),
          user_role: "Owner".to_string()
        },
      ],
      extra_properties: {
        num_active_days: 4
      }
    },
  ],
  current_page: 0,
  total_count: 2,
  page_size: 10,
  has_more_results: false,
  report_time: 1773330458
}
{
  UserReports: [
    {
      Id: "df1940...",
      ReportId: "de58c...",
      UserId: "813bef...",
      UserCreatedAt: 1701392700,
      Username: "exampleUsername",
      FirstName: "John",
      LastName: "Doe",
      Email: "john@acmeinc.com",
      LastActiveAt: 1773250562,
      OrgData: [
        {
          DisplayName: "Acme Inc",
          OrgId: "4f18c3...",
          UserRole: "Owner"
        },
      ],
      ExtraProperties: {
        num_active_days: 4
      }
    },
  ],
  CurrentPage: 0,
  TotalCount: 2,
  PageSize: 10,
  HasMoreResults: false,
  ReportTime: 1773330458,
}
{
  "user_reports": [
    {
      "id": "df1940...",
      "report_id": "de58c...",
      "user_id": "813bef...",
      "user_created_at": 1701392700,
      "username": "exampleUsername",
      "first_name": "John",
      "last_name": "Doe",
      "email": "john@acmeinc.com",
      "last_active_at": 1773250562,
      "org_data": [
        {
          "display_name": "Acme Inc",
          "org_id": "4f18c3...",
          "user_role": "Owner"
        },
      ],
      "extra_properties": {
        "num_active_days": 4
      }
    },
  ],
  "current_page": 0,
  "total_count": 2,
  "page_size": 10,
  "has_more_results": false,
  "report_time": 1773330458
}

GET/api/backend/v1/user_report/reengagement

Fetch User Reengagement Report

Fetches the reengaged users report, a report of recently active users who were previously inactive for a period of time.

Properties

  • Name
    reportInterval
    Type
    string
    Description
    The report interval to return. Options include 'Weekly' and 'Monthly'.
  • Name
    pageSize
    Type
    number
    Description
    The number of entries to return per page
  • Name
    pageNumber
    Type
    number
    Description
    The page number to return

Request

auth.fetchUserReengagementReport(
    ReengagementReportInterval.WEEKLY,
    ReportPagination {
        pageSize: 10,
        pageNumber: 0
    }
)

Successful Response

{
  userReports: [
    {
      id: "df1940...",
      reportId: "de58c...",
      userId: "813bef...",
      userCreatedAt: 1701392700,
      username: "exampleUsername",
      firstName: "John",
      lastName: "Doe",
      email: "john@acmeinc.com",
      lastActiveAt: 1773250562,
      orgData: [
        {
            displayName: "Acme Inc",
            orgId: "4f18c3...",
            userRole: "Owner"
        },
      ],
    },
  ],
  currentPage: 0,
  totalCount: 2,
  pageSize: 10,
  hasMoreResults: false,
  reportTime: 1773330458
}
{
  user_reports: [
    {
      id: "df1940...",
      report_id: "de58c...",
      user_id: "813bef...",
      user_created_at: 1701392700,
      username: "exampleUsername",
      first_name: "John",
      last_name: "Doe",
      email: "john@acmeinc.com",
      last_active_at: 1773250562,
      org_data: [
        {
          display_name: "Acme Inc",
          org_id: "4f18c3...",
          user_role: "Owner"
        },
      ],
    },
  ],
  current_page: 0,
  total_count: 2,
  page_size: 10,
  has_more_results: false,
  report_time: 1773330458
}
{
  user_reports: [
    {
      id: "df1940...".to_string(),
      report_id: "de58c...".to_string(),
      user_id: "813bef...".to_string(),
      user_created_at: 1701392700,
      username: "exampleUsername".to_string(),
      first_name: "John".to_string(),
      last_name: "Doe".to_string(),
      email: "john@acmeinc.com".to_string(),
      last_active_at: 1773250562,
      org_data: [
        {
          display_name: "Acme Inc".to_string(),
          org_id: "4f18c3...".to_string(),
          user_role: "Owner".to_string()
        },
      ],
    },
  ],
  current_page: 0,
  total_count: 2,
  page_size: 10,
  has_more_results: false,
  report_time: 1773330458
}
{
  UserReports: [
    {
      Id: "df1940...",
      ReportId: "de58c...",
      UserId: "813bef...",
      UserCreatedAt: 1701392700,
      Username: "exampleUsername",
      FirstName: "John",
      LastName: "Doe",
      Email: "john@acmeinc.com",
      LastActiveAt: 1773250562,
      OrgData: [
        {
          DisplayName: "Acme Inc",
          OrgId: "4f18c3...",
          UserRole: "Owner"
        },
      ],
    },
  ],
  CurrentPage: 0,
  TotalCount: 2,
  PageSize: 10,
  HasMoreResults: false,
  ReportTime: 1773330458,
}
{
  "user_reports": [
    {
      "id": "df1940...",
      "report_id": "de58c...",
      "user_id": "813bef...",
      "user_created_at": 1701392700,
      "username": "exampleUsername",
      "first_name": "John",
      "last_name": "Doe",
      "email": "john@acmeinc.com",
      "last_active_at": 1773250562,
      "org_data": [
        {
          "display_name": "Acme Inc",
          "org_id": "4f18c3...",
          "user_role": "Owner"
        },
      ],
    },
  ],
  "current_page": 0,
  "total_count": 2,
  "page_size": 10,
  "has_more_results": false,
  "report_time": 1773330458
}

GET/api/backend/v1/user_report/churn

Fetch User Churn Report

Fetches the churned users report, a report of users who have not been active in a certain amount of days.

Properties

  • Name
    reportInterval
    Type
    string
    Description
    The report interval to return. Options include '7' and '14', and '30' days
  • Name
    pageSize
    Type
    number
    Description
    The number of entries to return per page
  • Name
    pageNumber
    Type
    number
    Description
    The page number to return

Request

auth.fetchUserChurnReport(
    ChurnReportInterval.SEVEN_DAYS,
    ReportPagination {
        pageSize: 10,
        pageNumber: 0
    }
)

Successful Response

{
  userReports: [
    {
      id: "df1940...",
      reportId: "de58c...",
      userId: "813bef...",
      userCreatedAt: 1701392700,
      username: "exampleUsername",
      firstName: "John",
      lastName: "Doe",
      email: "john@acmeinc.com",
      lastActiveAt: 1773250562,
      orgData: [
        {
            displayName: "Acme Inc",
            orgId: "4f18c3...",
            userRole: "Owner"
        },
      ],
    },
  ],
  currentPage: 0,
  totalCount: 2,
  pageSize: 10,
  hasMoreResults: false,
  reportTime: 1773330458
}
{
  user_reports: [
    {
      id: "df1940...",
      report_id: "de58c...",
      user_id: "813bef...",
      user_created_at: 1701392700,
      username: "exampleUsername",
      first_name: "John",
      last_name: "Doe",
      email: "john@acmeinc.com",
      last_active_at: 1773250562,
      org_data: [
        {
          display_name: "Acme Inc",
          org_id: "4f18c3...",
          user_role: "Owner"
        },
      ],
    },
  ],
  current_page: 0,
  total_count: 2,
  page_size: 10,
  has_more_results: false,
  report_time: 1773330458
}
{
  user_reports: [
    {
      id: "df1940...".to_string(),
      report_id: "de58c...".to_string(),
      user_id: "813bef...".to_string(),
      user_created_at: 1701392700,
      username: "exampleUsername".to_string(),
      first_name: "John".to_string(),
      last_name: "Doe".to_string(),
      email: "john@acmeinc.com".to_string(),
      last_active_at: 1773250562,
      org_data: [
        {
          display_name: "Acme Inc".to_string(),
          org_id: "4f18c3...".to_string(),
          user_role: "Owner".to_string()
        },
      ],
    },
  ],
  current_page: 0,
  total_count: 2,
  page_size: 10,
  has_more_results: false,
  report_time: 1773330458
}
{
  UserReports: [
    {
      Id: "df1940...",
      ReportId: "de58c...",
      UserId: "813bef...",
      UserCreatedAt: 1701392700,
      Username: "exampleUsername",
      FirstName: "John",
      LastName: "Doe",
      Email: "john@acmeinc.com",
      LastActiveAt: 1773250562,
      OrgData: [
        {
          DisplayName: "Acme Inc",
          OrgId: "4f18c3...",
          UserRole: "Owner"
        },
      ],
    },
  ],
  CurrentPage: 0,
  TotalCount: 2,
  PageSize: 10,
  HasMoreResults: false,
  ReportTime: 1773330458,
}
{
  "user_reports": [
    {
      "id": "df1940...",
      "report_id": "de58c...",
      "user_id": "813bef...",
      "user_created_at": 1701392700,
      "username": "exampleUsername",
      "first_name": "John",
      "last_name": "Doe",
      "email": "john@acmeinc.com",
      "last_active_at": 1773250562,
      "org_data": [
        {
          "display_name": "Acme Inc",
          "org_id": "4f18c3...",
          "user_role": "Owner"
        },
      ],
    },
  ],
  "current_page": 0,
  "total_count": 2,
  "page_size": 10,
  "has_more_results": false,
  "report_time": 1773330458
}

GET/api/backend/v1/org_report/reengagement

Fetch Org Reengagement Report

Fetches the reengaged org report, a report of organizations with recently active users who had no active users in a period of time.

Properties

  • Name
    reportInterval
    Type
    string
    Description
    The report interval to return. Options include 'Weekly' and 'Monthly'
  • Name
    pageSize
    Type
    number
    Description
    The number of entries to return per page
  • Name
    pageNumber
    Type
    number
    Description
    The page number to return

Request

auth.fetchOrgReengagementReport(
    ReengagementReportInterval.WEEKLY,
    ReportPagination {
        pageSize: 10,
        pageNumber: 0
    }
)

Successful Response

{
  orgReports: [
    {
      id: "df1940...",
      reportId: "de58c...",
      orgId: "813bef...",
      name: "Acme Inc",
      numUsers: 1,
      orgCreatedAt: 1771841702
    },
  ],
  currentPage: 0,
  totalCount: 2,
  pageSize: 10,
  hasMoreResults: false,
  reportTime: 1773330458
}
{
  org_reports: [
    {
      id: "df1940...",
      report_id: "de58c...",
      org_id: "813bef...",
      name: "Acme Inc",
      num_users: 1,
      org_created_at: 1771841702
    },
  ],
  current_page: 0,
  total_count: 2,
  page_size: 10,
  has_more_results: false,
  report_time: 1773330458
}
{
  org_reports: [
    {
      id: "df1940...".to_string(),
      report_id: "de58c...".to_string(),
      org_id: "813bef...".to_string(),
      name: "Acme Inc".to_string(),
      num_users: 1,
      org_created_at: 1771841702
    },
  ],
  current_page: 0,
  total_count: 2,
  page_size: 10,
  has_more_results: false,
  report_time: 1773330458
}
{
  OrgReports: [
    {
      Id: "df1940...",
      ReportId: "de58c...",
      OrgId: "813bef...",
      Name: "Acme Inc",
      NumUsers: 1,
      OrgCreatedAt: 1771841702,
    },
  ],
  CurrentPage: 0,
  TotalCount: 2,
  PageSize: 10,
  HasMoreResults: false,
  ReportTime: 1773330458,
}
{
  "org_reports": [
    {
      "id": "df1940...",
      "report_id": "de58c...",
      "org_id": "813bef...",
      "name": "Acme Inc",
      "num_users": 1,
      "org_created_at": 1771841702
    },
  ],
  "current_page": 0,
  "total_count": 2,
  "page_size": 10,
  "has_more_results": false,
  "report_time": 1773330458
}

GET/api/backend/v1/org_report/churn

Fetch Org Churn Report

Fetches the churned org report, a report of organizations who had no active users in a period of time.

Properties

  • Name
    reportInterval
    Type
    string
    Description
    The report interval to return. Options include '7' and '14', and '30' days
  • Name
    pageSize
    Type
    number
    Description
    The number of entries to return per page
  • Name
    pageNumber
    Type
    number
    Description
    The page number to return

Request

auth.fetchOrgChurnReport(
    ChurnReportInterval.SEVEN_DAYS,
    ReportPagination {
        pageSize: 10,
        pageNumber: 0
    }
)

Successful Response

{
  orgReports: [
    {
      id: "df1940...",
      reportId: "de58c...",
      orgId: "813bef...",
      name: "Acme Inc",
      numUsers: 1,
      orgCreatedAt: 1771841702
    },
  ],
  currentPage: 0,
  totalCount: 2,
  pageSize: 10,
  hasMoreResults: false,
  reportTime: 1773330458
}
{
  org_reports: [
    {
      id: "df1940...",
      report_id: "de58c...",
      org_id: "813bef...",
      name: "Acme Inc",
      num_users: 1,
      org_created_at: 1771841702
    },
  ],
  current_page: 0,
  total_count: 2,
  page_size: 10,
  has_more_results: false,
  report_time: 1773330458
}
{
  org_reports: [
    {
      id: "df1940...".to_string(),
      report_id: "de58c...".to_string(),
      org_id: "813bef...".to_string(),
      name: "Acme Inc".to_string(),
      num_users: 1,
      org_created_at: 1771841702
    },
  ],
  current_page: 0,
  total_count: 2,
  page_size: 10,
  has_more_results: false,
  report_time: 1773330458
}
{
  OrgReports: [
    {
      Id: "df1940...",
      ReportId: "de58c...",
      OrgId: "813bef...",
      Name: "Acme Inc",
      NumUsers: 1,
      OrgCreatedAt: 1771841702,
    },
  ],
  CurrentPage: 0,
  TotalCount: 2,
  PageSize: 10,
  HasMoreResults: false,
  ReportTime: 1773330458,
}
{
  "org_reports": [
    {
      "id": "df1940...",
      "report_id": "de58c...",
      "org_id": "813bef...",
      "name": "Acme Inc",
      "num_users": 1,
      "org_created_at": 1771841702
    },
  ],
  "current_page": 0,
  "total_count": 2,
  "page_size": 10,
  "has_more_results": false,
  "report_time": 1773330458
}

GET/api/backend/v1/org_report/growth

Fetch Org Growth Report

Fetches the org growth report, a leaderboard of the organizations with the highest net growth over a period of time.

Properties

  • Name
    reportInterval
    Type
    string
    Description
    The report interval to return. Options include '30' and '60', and '90' days
  • Name
    pageSize
    Type
    number
    Description
    The number of entries to return per page
  • Name
    pageNumber
    Type
    number
    Description
    The page number to return

Request

auth.fetchOrgGrowthReport(
    GrowthReportInterval.THIRTY_DAYS,
    ReportPagination {
        pageSize: 10,
        pageNumber: 0
    }
)

Successful Response

{
  orgReports: [
    {
      id: "df1940...",
      reportId: "de58c...",
      orgId: "813bef...",
      name: "Acme Inc",
      numUsers: 1,
      orgCreatedAt: 1771841702,
      extraProperties: {
        numUsersAdded: 10,
        numUsersRemoved: 3
      }
    },
  ],
  currentPage: 0,
  totalCount: 2,
  pageSize: 10,
  hasMoreResults: false,
  reportTime: 1773330458
}
{
  org_reports: [
    {
      id: "df1940...",
      report_id: "de58c...",
      org_id: "813bef...",
      name: "Acme Inc",
      num_users: 1,
      org_created_at: 1771841702,
      extra_properties: {
        num_users_added: 10,
        num_users_removed: 3
      }
    },
  ],
  current_page: 0,
  total_count: 2,
  page_size: 10,
  has_more_results: false,
  report_time: 1773330458
}
{
  org_reports: [
    {
      id: "df1940...".to_string(),
      report_id: "de58c...".to_string(),
      org_id: "813bef...".to_string(),
      name: "Acme Inc".to_string(),
      num_users: 1,
      org_created_at: 1771841702,
      extra_properties: {
        num_users_added: 10,
        num_users_removed: 3
      }
    },
  ],
  current_page: 0,
  total_count: 2,
  page_size: 10,
  has_more_results: false,
  report_time: 1773330458
}
{
  OrgReports: [
    {
      Id: "df1940...",
      ReportId: "de58c...",
      OrgId: "813bef...",
      Name: "Acme Inc",
      NumUsers: 1,
      OrgCreatedAt: 1771841702,
      ExtraProperties: {
        num_users_added: 10,
        num_users_removed: 3,
      },
    },
  ],
  CurrentPage: 0,
  TotalCount: 2,
  PageSize: 10,
  HasMoreResults: false,
  ReportTime: 1773330458,
}
{
  "org_reports": [
    {
      "id": "df1940...",
      "report_id": "de58c...",
      "org_id": "813bef...",
      "name": "Acme Inc",
      "num_users": 1,
      "org_created_at": 1771841702,
      "extra_properties": {
        "num_users_added": 10,
        "num_users_removed": 3,
      },
    },
  ],
  "current_page": 0,
  "total_count": 2,
  "page_size": 10,
  "has_more_results": false,
  "report_time": 1773330458
}

GET/api/backend/v1/org_report/attrition

Fetch Org Attrition Report

Fetches the org attrition report, a leaderboard of the organizations with the highest number of users removed over a period of time.

Properties

  • Name
    reportInterval
    Type
    string
    Description
    The report interval to return. Options include '30' and '60', and '90' days
  • Name
    pageSize
    Type
    number
    Description
    The number of entries to return per page
  • Name
    pageNumber
    Type
    number
    Description
    The page number to return

Request

auth.fetchOrgAttritionReport(
    AttritionReportInterval.THIRTY_DAYS,
    ReportPagination {
        pageSize: 10,
        pageNumber: 0
    }
)

Successful Response

{
  orgReports: [
    {
      id: "df1940...",
      reportId: "de58c...",
      orgId: "813bef...",
      name: "Acme Inc",
      numUsers: 1,
      orgCreatedAt: 1771841702,
      extraProperties: {
        numUsersAdded: 10,
        numUsersRemoved: 3,
        netUsersChange: 7,
      }
    },
  ],
  currentPage: 0,
  totalCount: 2,
  pageSize: 10,
  hasMoreResults: false,
  reportTime: 1773330458
}
{
  org_reports: [
    {
      id: "df1940...",
      report_id: "de58c...",
      org_id: "813bef...",
      name: "Acme Inc",
      num_users: 1,
      org_created_at: 1771841702,
      extra_properties: {
        num_users_added: 10,
        num_users_removed: 3,
        net_users_change: 7,
      }
    },
  ],
  current_page: 0,
  total_count: 2,
  page_size: 10,
  has_more_results: false,
  report_time: 1773330458
}
{
  org_reports: [
    {
      id: "df1940...".to_string(),
      report_id: "de58c...".to_string(),
      org_id: "813bef...".to_string(),
      name: "Acme Inc".to_string(),
      num_users: 1,
      org_created_at: 1771841702,
      extra_properties: {
        num_users_added: 10,
        num_users_removed: 3,
        net_users_change: 7,
      }
    },
  ],
  current_page: 0,
  total_count: 2,
  page_size: 10,
  has_more_results: false,
  report_time: 1773330458
}
{
  OrgReports: [
    {
      Id: "df1940...",
      ReportId: "de58c...",
      OrgId: "813bef...",
      Name: "Acme Inc",
      NumUsers: 1,
      OrgCreatedAt: 1771841702,
      ExtraProperties: {
        num_users_added: 10,
        num_users_removed: 3,
        net_users_change: 7,
      },
    },
  ],
  CurrentPage: 0,
  TotalCount: 2,
  PageSize: 10,
  HasMoreResults: false,
  ReportTime: 1773330458,
}
{
  "org_reports": [
    {
      "id": "df1940...",
      "report_id": "de58c...",
      "org_id": "813bef...",
      "name": "Acme Inc",
      "num_users": 1,
      "org_created_at": 1771841702,
      "extra_properties": {
        "num_users_added": 10,
        "num_users_removed": 3,
        "net_users_change": 7,
      },
    },
  ],
  "current_page": 0,
  "total_count": 2,
  "page_size": 10,
  "has_more_results": false,
  "report_time": 1773330458
}

GET/api/backend/v1/chart_metric/<chartMetric>

Fetch Chart Metric Data

Returns a chart metric report for the given chart metric type and cadence.

Properties

  • Name
    chartMetric *
    Type
    string
    Description
    The type of chart metric to return. Options include 'signups', 'orgs_created', 'active_users', 'active_orgs'
  • Name
    cadence
    Type
    string
    Description
    The cadence of the chart metric to return. Options include 'Daily', 'Weekly', and 'Monthly'
  • Name
    startDate
    Type
    string
    Description
    The start date of the report period
  • Name
    endDate
    Type
    string
    Description
    The end date of the report period

Request

auth.fetchChartMetricData(
    ChartMetric.SIGNUPS,
    ChartMetricCadence.DAILY,
    Date("2026-01-01T00:00:00Z"), // start date
    Date("2026-01-31T23:59:59Z"), // end date
)

Successful Response

{
  chartType: "ActiveOrgs",
  cadence: "Daily",
  metrics: [
    {
      date: "2026-01-01",
      result: 10,
      cadenceCompleted: false
    },
    {
      date: "2026-01-02",
      result: 14,
      cadenceCompleted: false
    },
  ]
}
{
  chart_type: "ActiveOrgs",
  cadence: "Daily",
  metrics: [
    {
      date: "2026-01-01",
      result: 10,
      cadence_completed: False
    },
    {
      date: "2026-01-02",
      result: 14,
      cadence_completed: False
    },
  ]
}
{
  chart_type: "ActiveOrgs".to_string(),
  cadence: "Daily".to_string(),
  metrics: vec![
    {
      date: "2026-01-01".to_string(),
      result: 10,
      cadence_completed: false
    },
    {
      date: "2026-01-02".to_string(),
      result: 14,
      cadence_completed: false
    },
  ]
}
{
  ChartType: "ActiveOrgs",
  Cadence: "Daily",
  Metrics: [
    {
      Date: "2026-01-01",
      Result: 10,
      CadenceCompleted: false
    },
    {
      Date: "2026-01-02",
      Result: 14,
      CadenceCompleted: false
    },
  ]
}
{
  "chart_type": "ActiveOrgs",
  "cadence": "Daily",
  "metrics": [
    {
      "date": "2026-01-01",
      "result": 10,
      "cadence_completed": false
    },
    {
      "date": "2026-01-02",
      "result": 14,
      "cadence_completed": false
    },
  ]
}