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

# Get SDR Performance

> Returns call metrics grouped by SDR (user) with pagination

Returns call metrics grouped by SDR (Sales Development Representative) with pagination. Use this endpoint to analyze individual user performance.

### Query Parameters

* **start\_date** (*optional*, date): Start date for the analytics period. Accepts ISO 8601 format. If omitted, defaults to 7 days before `end_date`.
  * Examples:
    * `2024-01-01T00:00:00.000Z` - ISO 8601 with UTC timezone
    * `2024-01-01` - Simple date format (YYYY-MM-DD)
    * `2024-01-01T00:00:00-05:00` - ISO 8601 with timezone offset
* **end\_date** (*optional*, date): End date for the analytics period. Accepts ISO 8601 format. If omitted, defaults to the current date.
  * Examples:
    * `2024-01-31T23:59:59.999Z` - ISO 8601 with UTC timezone
    * `2024-01-31` - Simple date format (YYYY-MM-DD)
    * `2024-01-31T23:59:59-05:00` - ISO 8601 with timezone offset
* **user\_ids** (*optional*, array of strings): Filter by specific user IDs.
  * Example: `["64d2b3f2c4e3a6b8f2d9e1a7"]`
* **disposition\_ids** (*optional*, array of numbers): Filter by disposition IDs (1=Meeting Set, 2=No Longer With Company, 3=Not Interested, etc.).
  * Example: `[1, 2, 3]`
* **timezone** (*optional*, string): Timezone for date calculations.
  * Example: `America/New_York`
* **page** (*optional*, number): Page number (default: 1).
  * Example: `1`
* **limit** (*optional*, number): Items per page (default: 10, max: 100).
  * Example: `10`
* **search** (*optional*, string): Search by SDR name or email.
  * Example: `"john@example.com"`

### Response

Returns a paginated list of SDR performance metrics.

**Metrics per SDR:**

* `_id` - User ID
* `first_name` - SDR first name
* `last_name` - SDR last name
* `email` - SDR email
* `image` - Profile image URL
* `total_calls` - Total calls made
* `connected_calls` - Connected calls
* `connection_rate` - Ratio of connected to total calls (0-1)
* `conversations` - Meaningful conversations
* `conversation_rate` - Ratio of conversations to total calls (0-1)
* `avg_dials_day` - Average dials per active day
* `total_duration` - Total call duration in seconds
* `meetings_set` - Number of meetings set
* `data_quality` - Data quality ratio (0-1)


## OpenAPI

````yaml GET /v1/analytics/sdr-performance
openapi: 3.0.1
info:
  title: Salesfinity API
  description: API documentation for Salesfinity platform
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://client-api.salesfinity.co
security:
  - ApiKeyAuth: []
paths:
  /v1/analytics/sdr-performance:
    get:
      tags:
        - Analytics
      description: Returns call metrics grouped by SDR (user) with pagination
      operationId: get-sdr-performance
      parameters:
        - name: start_date
          in: query
          required: false
          schema:
            type: string
            format: date
          description: >-
            Start date for the analytics period (ISO 8601). Examples:
            2024-01-01, 2024-01-01T00:00:00.000Z, 2024-01-01T00:00:00-05:00. If
            omitted, defaults to 7 days before end_date.
        - name: end_date
          in: query
          required: false
          schema:
            type: string
            format: date
          description: >-
            End date for the analytics period (ISO 8601). Examples: 2024-01-31,
            2024-01-31T23:59:59.999Z, 2024-01-31T23:59:59-05:00. If omitted,
            defaults to the current date.
        - name: user_ids
          in: query
          required: false
          schema:
            type: array
            items:
              type: string
          description: Filter by specific user IDs
        - name: disposition_ids
          in: query
          required: false
          schema:
            type: array
            items:
              type: integer
          description: Filter by disposition IDs (1-14)
        - name: timezone
          in: query
          required: false
          schema:
            type: string
          description: IANA timezone for date calculations (e.g., America/New_York)
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
          description: Page number
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 10
          description: Items per page
        - name: search
          in: query
          required: false
          schema:
            type: string
          description: Search by SDR name or email
      responses:
        '200':
          description: SDR performance retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SDRPerformanceResponse'
components:
  schemas:
    SDRPerformanceResponse:
      type: object
      properties:
        totalCount:
          type: integer
        data:
          type: array
          items:
            $ref: '#/components/schemas/SDRPerformanceItem'
        page:
          type: integer
        limit:
          type: integer
        next:
          type: integer
          nullable: true
        prev:
          type: integer
          nullable: true
      required:
        - totalCount
        - data
        - page
        - limit
    SDRPerformanceItem:
      type: object
      properties:
        _id:
          type: string
        first_name:
          type: string
        last_name:
          type: string
        email:
          type: string
        image:
          type: string
        total_calls:
          type: integer
        connected_calls:
          type: integer
        connection_rate:
          type: number
        conversations:
          type: integer
        conversation_rate:
          type: number
        avg_dials_day:
          type: number
        total_duration:
          type: integer
        meetings_set:
          type: integer
        data_quality:
          type: number
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````