Partner Analytics

The Partner API provides aggregate analytics across all your sub-organizations. Use these metrics to monitor portfolio performance, track identification volume, and manage credit usage.

Overview

Partner analytics aggregate data from every sub-organization under your partner account. You can filter by date range to analyze usage over specific periods. These endpoints are intended for reporting, dashboards, and operational monitoring.

Available Endpoints

EndpointPurpose
GET /partner/analyticsAggregate analytics across all sub-organizations
GET /partner/usageUsage summary for a date range

Analytics Response

GET /partner/analytics returns aggregate metrics. Query parameters:

ParameterTypeDescription
startDatedate (ISO)Start of the analytics period (default: 30 days ago)
endDatedate (ISO)End of the analytics period (default: today)

Response Fields

FieldDescription
partnerIdYour partner account ID
startDateStart date of the analytics period
endDateEnd date of the analytics period
totalOrganizationsTotal number of sub-organizations
activeOrganizationsNumber of active sub-organizations
totalIdentificationsTotal visitor identifications in the period
creditsRemainingCredits remaining in your pool
creditsUsedCredits consumed in the period

Example Request

GET https://api.app.bullseye.so/api/v1/partner/analytics?startDate=2024-01-01&endDate=2024-01-31
X-Partner-API-Key: <your-api-key>

Example Response

{
  "partnerId": "550e8400-e29b-41d4-a716-446655440000",
  "startDate": "2024-01-01",
  "endDate": "2024-01-31",
  "totalOrganizations": 12,
  "activeOrganizations": 10,
  "totalIdentifications": 4523,
  "creditsRemaining": 5477,
  "creditsUsed": 4523
}

Usage Summary

GET /partner/usage returns a usage summary for a date range. Query parameters:

ParameterTypeDescription
startDatedate (ISO)Start date (default: start of current month)
endDatedate (ISO)End date (default: today)

Response Fields

FieldDescription
totalQuantityTotal usage quantity in the period
totalEventsTotal number of events

Use this endpoint for billing reconciliation and usage reporting when you need event-level or quantity-level summaries.

Date Range Filtering

Both endpoints accept ISO 8601 date format (e.g., 2024-01-01). The date range is inclusive: both the start and end dates are included in the results.

  • Analytics - Defaults to the last 30 days if no parameters are provided
  • Usage - Defaults to the start of the current month through today

Use Cases

Use CaseEndpointNotes
Portfolio overview/partner/analyticsTotal orgs, identifications, credits
Monthly reporting/partner/analyticsSet startDate and endDate to month boundaries
Billing reconciliation/partner/usageAlign with your billing period
Credit monitoring/partner/analyticsTrack creditsRemaining and creditsUsed
Growth tracking/partner/analyticsCompare periods to measure growth

For organization-level or billing-specific data:

  • GET /partner/billing - Billing configuration and credit pool info
  • GET /partner/billing/usage - Current billing period usage
  • GET /partner/organizations - List sub-organizations (filter by status, search, externalId)