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

# Get email metrics

> Returns email sending metrics including sent, delivered, opened, clicked, bounced, and complained counts with daily chart data. Supports date range and domain filtering.



## OpenAPI

````yaml GET /metrics
openapi: 3.1.0
info:
  title: SendKit API
  description: The SendKit API allows you to send transactional emails programmatically.
  version: 1.0.0
servers:
  - url: https://api.sendkit.dev
security:
  - bearerAuth: []
paths:
  /metrics:
    get:
      tags:
        - Metrics
      summary: Get email metrics
      description: >-
        Returns email sending metrics including sent, delivered, opened,
        clicked, bounced, and complained counts with daily chart data. Supports
        date range and domain filtering.
      operationId: getMetrics
      parameters:
        - name: start_date
          in: query
          description: >-
            Start date for the metrics range (YYYY-MM-DD). Defaults to 14 days
            ago.
          schema:
            type: string
            format: date
            example: '2026-03-01'
        - name: end_date
          in: query
          description: End date for the metrics range (YYYY-MM-DD). Defaults to today.
          schema:
            type: string
            format: date
            example: '2026-03-10'
        - name: domain_id
          in: query
          description: Filter metrics by a specific domain ID.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Metrics retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      stats:
                        type: object
                        properties:
                          sent:
                            type: integer
                            example: 1250
                          delivered:
                            type: integer
                            example: 1200
                          opened:
                            type: integer
                            example: 480
                          clicked:
                            type: integer
                            example: 120
                          bounced:
                            type: integer
                            example: 30
                          complained:
                            type: integer
                            example: 2
                          delivery_rate:
                            type: number
                            example: 96
                          open_rate:
                            type: number
                            example: 40
                          click_rate:
                            type: number
                            example: 10
                          bounce_rate:
                            type: number
                            example: 2.4
                          complaint_rate:
                            type: number
                            example: 0.16
                      chart_data:
                        type: array
                        items:
                          type: object
                          properties:
                            date:
                              type: string
                              example: '2026-03-01'
                            sent:
                              type: integer
                              example: 89
                            delivered:
                              type: integer
                              example: 85
                            opened:
                              type: integer
                              example: 34
                            clicked:
                              type: integer
                              example: 8
                            bounced:
                              type: integer
                              example: 2
                            complained:
                              type: integer
                              example: 0
                      filters:
                        type: object
                        properties:
                          start_date:
                            type: string
                            example: '2026-03-01'
                          end_date:
                            type: string
                            example: '2026-03-10'
                          domain_id:
                            type: string
                            nullable: true
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  responses:
    Unauthorized:
      description: Unauthorized — missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            message: Invalid API key.
  schemas:
    ErrorResponse:
      type: object
      properties:
        name:
          type: string
          description: Error type identifier.
          example: validation_error
        message:
          type: string
          description: Human-readable error message.
          example: The from address domain is not verified.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key from your SendKit dashboard. Pass it as a Bearer token in the
        Authorization header.

````