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

# Get account contact events

> Get all contact events for the account



## OpenAPI

````yaml /openapi.json get /api/contact/events
openapi: 3.0.0
info:
  description: >-
    Public REST API for Benchmark Email.


    Authenticate every request by including your API key in the `X-API-Key`
    header.

    Each key is issued with one or more scopes that control which endpoints it
    may call.


    Rate limits: 60 requests per minute per account.

    Monthly quota: determined by your subscription plan.
  title: Benchmark Email API
  version: 1.0.0
servers:
  - description: >-
      Your account's API base URL. Copy the full URL shown on Settings > API
      Keys in your Benchmark Email account and paste it here.
    url: '{apiBaseUrl}'
    variables:
      apiBaseUrl:
        default: ''
        description: >-
          Your account's API base URL. Copy it from Settings > API Keys in your
          Benchmark Email account.
security:
  - apiKeyAuth: []
tags:
  - description: Contact related endpoints
    name: contact
  - description: Contact structure related endpoints
    name: contact-structure
  - description: List related endpoints
    name: lists
  - description: Email domain related endpoints
    name: email-domain
  - description: Email campaign related endpoints
    name: email-campaign
  - description: Email template related endpoints
    name: email-template
  - description: Report related endpoints
    name: reports
paths:
  /api/contact/events:
    get:
      tags:
        - contact
      summary: Get account contact events
      description: Get all contact events for the account
      operationId: get_api_contact_events
      parameters:
        - description: Filter events by type
          example:
            - contact-created
            - contact-updated
          explode: false
          in: query
          name: types
          schema:
            items:
              enum:
                - contact-created
                - contact-updated
                - contact-update-failed
                - contact-unsubscribed
                - contact-reactivated
                - email-sent
                - email-bounced
                - email-delivered
                - email-delayed
                - email-rejected
                - email-complaint
                - email-opened
                - email-clicked
                - email-skipped
              type: string
            type: array
        - description: >-
            Filter events from the last N days (1-90). Defaults to 30 when
            omitted
          example: 30
          in: query
          name: pastDays
          required: false
          schema:
            default: 30
            maximum: 90
            minimum: 1
            type: integer
        - description: page number
          in: query
          name: page
          schema:
            minimum: 1
            type: integer
        - description: page size
          in: query
          name: size
          schema:
            minimum: 1
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  records:
                    items:
                      properties:
                        contactId:
                          type: string
                        emailBounceDiagCode:
                          type: string
                        emailBounceSubType:
                          type: string
                        emailBounceType:
                          type: string
                        emailCampaignId:
                          type: string
                        emailCampaignName:
                          type: string
                        emailComplaintFeedbackType:
                          type: string
                        emailDelayType:
                          type: string
                        emailLinkId:
                          type: string
                        emailRejectReason:
                          type: string
                        emailSender:
                          type: string
                        emailSenderName:
                          type: string
                        emailSmtpResponse:
                          type: string
                        emailSubject:
                          type: string
                        emailTargetUrl:
                          type: string
                        emailTo:
                          type: string
                        importId:
                          type: string
                        importOriginalFileName:
                          type: string
                        source:
                          type: string
                        timestamp:
                          format: date-time
                          type: string
                        triggeredBy:
                          description: >-
                            Present on contact-created/contact-updated events
                            when a triggering user is recorded. The type and
                            userId fields come from the event index.
                          properties:
                            type:
                              description: >-
                                The type of actor that triggered the event (e.g.
                                'user', 'admin')
                              type: string
                            userId:
                              description: The ID of the user who triggered the event
                              type: string
                          type: object
                        type:
                          type: string
                      type: object
                    type: array
                  total:
                    type: integer
                type: object
          description: Contact events for the account
        '400':
          description: Bad request
        '401':
          description: Unauthorized
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      description: API key authentication
      in: header
      name: X-API-Key
      type: apiKey

````