> ## Documentation Index
> Fetch the complete documentation index at: https://docs.peerlogic.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get marketing performance summary

> 

See [Analytics scope and time ranges](/concepts/analytics-scope-and-time-ranges) for shared filtering behavior.



## OpenAPI

````yaml /openapi/peerlogic-api.json get /api/marketing-analytics-summary
openapi: 3.1.0
info:
  title: Peerlogic API
  version: 1.0.0
  description: >-
    Customer-facing API reference for accessing Peerlogic calls, insights,
    conversations, tasks, opportunities, subscriptions, and events.
servers:
  - url: https://api.prod.peerlogic.com
    description: Production
security: []
tags:
  - name: Authentication
    description: Obtain an access token for authenticated API requests.
  - name: Call insights
    description: Call records and aggregate performance insights.
  - name: Transcripts
    description: Transcripts, summaries, sentiment, pauses, and call-purpose details.
  - name: Aimee
    description: Aimee activity, configuration, and performance insights.
  - name: Conversations
    description: Conversation records, messages, and conversation actions.
  - name: Tasks
    description: Customer tasks and task workflow actions.
  - name: Opportunities
    description: Opportunities and follow-up reporting.
  - name: Subscriptions and events
    description: >-
      Create and manage event subscriptions, then inspect event records and
      analytics. For the complete webhook delivery flow, see the Webhooks and
      subscriptions guide.
  - name: Organizations and practices
    description: >-
      Discover the organizations and practices available to the authenticated
      account.
  - name: Contacts and patients
    description: Find contacts and patients for caller recognition and related workflows.
  - name: Appointments
    description: Retrieve appointment history and upcoming appointments for a patient.
  - name: Messaging
    description: Send practice messages, including missed-call recovery outreach.
  - name: Call recordings
    description: Retrieve recording metadata and secure audio URLs for calls.
paths:
  /api/marketing-analytics-summary:
    parameters: []
    get:
      tags:
        - Call insights
      summary: Get marketing performance summary
      description: >-


        See [Analytics scope and time
        ranges](/concepts/analytics-scope-and-time-ranges) for shared filtering
        behavior.
      operationId: marketing-analytics-summary_list
      parameters:
        - $ref: '#/components/parameters/AnalyticsOrganizationId'
        - $ref: '#/components/parameters/AnalyticsRegionId'
        - $ref: '#/components/parameters/AnalyticsPracticeIds'
        - $ref: '#/components/parameters/AnalyticsStartDate'
        - $ref: '#/components/parameters/AnalyticsEndDate'
        - $ref: '#/components/parameters/MarketingCampaignId'
        - $ref: '#/components/parameters/OpportunityTriggerType'
      responses:
        '200':
          description: Marketing lead, booking, and revenue summary.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketingAnalyticsSummary'
              examples:
                response:
                  value:
                    leads_total: 48
                    new_leads_count: 31
                    existing_leads_count: 12
                    connected_leads_count: 37
                    new_connected_leads_count: 25
                    existing_connected_leads_count: 9
                    booked_leads_count: 16
                    new_booked_leads_count: 11
                    existing_booked_leads_count: 4
                    revenue_total: 16000
                    revenue_new: 11000
                    revenue_existing: 4000
                    other_leads: 5
                    other_connected_leads: 3
                    other_booked_leads: 1
        '400':
          description: The scope, date range, or another filter is invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
              example:
                field_error: >-
                  One of the following parameter must be provided [practice_ids,
                  organization_id or region_id]
        '401':
          description: Authentication is required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthenticationError'
              example:
                detail: '''Authorization'' header is required'
        '403':
          description: >-
            The authenticated account does not have access to the requested
            data.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PermissionError'
              example:
                message: No permissions assigned to permit access to this endpoint.
      security:
        - bearerAuth: []
components:
  parameters:
    AnalyticsOrganizationId:
      name: organization_id
      in: query
      description: Include accessible practices in this organization.
      required: false
      schema:
        type: string
    AnalyticsRegionId:
      name: region_id
      in: query
      description: Include accessible practices assigned to this region.
      required: false
      schema:
        type: string
    AnalyticsPracticeIds:
      name: practice_ids
      in: query
      description: >-
        Comma-separated practice IDs. All requested practices must be accessible
        to the authenticated account.
      required: false
      schema:
        type: string
    AnalyticsStartDate:
      name: call_start_time_after
      in: query
      description: Include calls on or after this date, in YYYY-MM-DD format.
      required: false
      schema:
        type: string
        format: date
    AnalyticsEndDate:
      name: call_start_time_before
      in: query
      description: Include calls before this date, in YYYY-MM-DD format.
      required: false
      schema:
        type: string
        format: date
    MarketingCampaignId:
      name: campaign__id
      in: query
      description: Filter results to one marketing campaign.
      required: false
      schema:
        type: string
    OpportunityTriggerType:
      name: trigger_type
      in: query
      description: Filter results by opportunity trigger type.
      required: false
      schema:
        type: string
  schemas:
    MarketingAnalyticsSummary:
      type: object
      required:
        - leads_total
        - new_leads_count
        - existing_leads_count
        - connected_leads_count
        - booked_leads_count
        - revenue_total
      additionalProperties:
        type: number
    ValidationError:
      title: Validation error
      type: object
      additionalProperties: true
      description: Validation details keyed by the invalid field or grouped under `errors`.
    AuthenticationError:
      title: Authentication error
      type: object
      additionalProperties: true
      required:
        - detail
      properties:
        detail:
          type: string
          description: Why authentication failed.
    PermissionError:
      title: Permission error
      type: object
      additionalProperties: false
      required:
        - message
      properties:
        message:
          type: string
          description: Why access was denied.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Bearer access token issued by Peerlogic.

````

## Related topics

- [Get opportunity performance overview](/peerlogic-api-reference/call-insights/get-opportunity-performance-overview.md)
- [Get Aimee performance by practice](/peerlogic-api-reference/aimee/get-aimee-performance-by-practice.md)
- [Get event follow-up performance](/peerlogic-api-reference/subscriptions-and-events/get-event-follow-up-performance.md)
- [Get Aimee performance overview](/peerlogic-api-reference/aimee/get-aimee-performance-overview.md)
- [Get missed-call follow-up performance](/peerlogic-api-reference/opportunities/get-missed-call-follow-up-performance.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.