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

# List sends for an email template

> List sends for an email template — List outbound emails sent using this template, newest first.



## OpenAPI

````yaml get /email-templates/{id}/activity
openapi: 3.1.0
info:
  title: OpenCX API
  description: >

    OpenCX is an AI-powered, all-in-one platform for customer support and
    outbound communications.


    Use this API to manage your OpenCX organization's AI agents, actions,
    conversations, contacts, and more.


    To get started, generate a new API key from the dashboard.


    ## Authentication

    All API endpoints require authentication using a Bearer token. You can
    generate an API key from your OpenCX dashboard.


    ## Rate Limiting

    API requests are rate limited to ensure fair usage. The current limits are:

    - 100 requests per minute for standard endpoints

    - 1000 requests per minute for streaming endpoints


    ## Error Handling

    The API uses standard HTTP status codes and returns detailed error messages
    in the response body.
  version: 1.0-beta
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: http://localhost:8080
    description: Development
  - url: https://api.open.cx
    description: Production
security:
  - bearerAuth: []
paths:
  /email-templates/{id}/activity:
    get:
      summary: List sends for an email template
      description: >-
        List outbound emails sent using this template, newest first. Useful for
        auditing template usage.
      operationId: getEmailTemplateActivity
      parameters:
        - schema:
            default: 0
            type: number
            minimum: 0
          in: query
          name: offset
          required: false
        - schema:
            default: 20
            type: number
            minimum: 1
            maximum: 100
          in: query
          name: limit
          required: false
        - schema:
            type: string
          in: path
          name: id
          required: true
          description: Email template ID
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailTemplateActivityResponseDto'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDto'
components:
  schemas:
    EmailTemplateActivityResponseDto:
      $schema: https://json-schema.org/draft/2020-12/schema
      $id: '#/components/schemas/EmailTemplateActivityResponseDto'
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/EmailTemplateActivityItemDto'
        total:
          type: number
      required:
        - items
        - total
      additionalProperties: false
    ErrorDto:
      type: object
      properties:
        statusCode:
          type: integer
        message:
          type: string
        error:
          type: string
    EmailTemplateActivityItemDto:
      $schema: https://json-schema.org/draft/2020-12/schema
      $id: '#/components/schemas/EmailTemplateActivityItemDto'
      type: object
      properties:
        id:
          type: string
        from_email:
          type: string
        email_subject:
          type: string
        email_sender_name:
          type:
            - string
            - 'null'
        email_body:
          type: string
        inserted_at:
          type: string
          format: date-time
        sent_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
        resend_error:
          type:
            - string
            - 'null'
        to_email:
          type:
            - string
            - 'null'
        to_id:
          type: string
        to_name:
          type:
            - string
            - 'null'
      required:
        - id
        - from_email
        - email_subject
        - email_sender_name
        - email_body
        - inserted_at
        - sent_at
        - resend_error
        - to_email
        - to_id
        - to_name
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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