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

# List an employer’s events

> The employer’s OSHA timeline, newest first: Form 300A filings, severe injury reports, inspections, citations and investigated accidents. Each event has a severity and the path of the OSHA row behind it. Citations OSHA deleted are left out. Needs the OSHA dataset enabled for your organization. Read-only; private, no-store. 



## OpenAPI

````yaml /openapi.json get /insurance/employers/{employerId}/events
openapi: 3.0.3
info:
  title: Effective API
  version: 2.0.0
  description: The public Effective REST API. Authenticate using an Effective API key.
servers:
  - url: https://api.canary.effectiveai.app/api/v2
    description: Canary
security:
  - bearerAuth: []
paths:
  /insurance/employers/{employerId}/events:
    get:
      tags:
        - OSHA
      summary: List an employer’s events
      description: >-
        The employer’s OSHA timeline, newest first: Form 300A filings, severe
        injury reports, inspections, citations and investigated accidents. Each
        event has a severity and the path of the OSHA row behind it. Citations
        OSHA deleted are left out. Needs the OSHA dataset enabled for your
        organization. Read-only; private, no-store. 
      operationId: listEmployerEvents
      parameters:
        - schema:
            type: string
            pattern: ^emp_[0-9a-f]{20}$
            description: 'Effective employer ID: emp_ followed by 20 hex characters.'
          required: true
          description: 'Effective employer ID: emp_ followed by 20 hex characters.'
          name: employerId
          in: path
        - schema:
            type: string
            pattern: ^[a-z_]+(,[a-z_]+)*$
            description: >-
              Comma-separated event types: annual_summary, severe_injury,
              inspection, citation, accident.
          required: false
          description: >-
            Comma-separated event types: annual_summary, severe_injury,
            inspection, citation, accident.
          name: types
          in: query
        - schema:
            type: string
            format: date
            description: Earliest event date, inclusive.
          required: false
          description: Earliest event date, inclusive.
          name: since
          in: query
        - schema:
            type: string
            format: date
            description: Latest event date, inclusive.
          required: false
          description: Latest event date, inclusive.
          name: until
          in: query
        - schema:
            type: string
            pattern: ^site_[0-9a-f]{20}$
            description: 'Effective site ID: site_ followed by 20 hex characters.'
          required: false
          description: 'Effective site ID: site_ followed by 20 hex characters.'
          name: siteId
          in: query
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
            description: Maximum number of items to return (1-100).
          required: false
          description: Maximum number of items to return (1-100).
          name: limit
          in: query
        - schema:
            type: string
            minLength: 1
            maxLength: 8192
            description: >-
              Opaque nextCursor from this operation. Repeat every other query
              parameter unchanged; a cursor from a different query returns
              invalid_cursor.
          required: false
          description: >-
            Opaque nextCursor from this operation. Repeat every other query
            parameter unchanged; a cursor from a different query returns
            invalid_cursor.
          name: cursor
          in: query
      responses:
        '200':
          description: One page of events.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2EmployerEvents'
        '400':
          description: >-
            invalid_request for invalid, unknown or repeated inputs;
            invalid_cursor means restart the list.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '401':
          description: Authentication required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '403':
          description: >-
            dataset_not_enabled: the OSHA dataset is not enabled for this
            organization. Other credential restrictions use forbidden.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '404':
          description: 'not_found: no such employer, site or OSHA row.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '500':
          description: Unexpected server failure.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '503':
          description: A dependency is unavailable; respect Retry-After.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
      security:
        - bearerAuth: []
components:
  schemas:
    V2EmployerEvents:
      type: object
      properties:
        events:
          type: array
          items:
            $ref: '#/components/schemas/V2EmployerEvent'
        nextCursor:
          type: string
          nullable: true
          description: Cursor for the next page, or null on the last page.
      required:
        - events
        - nextCursor
    V2CodedError:
      allOf:
        - $ref: '#/components/schemas/V2Error'
        - type: object
          properties:
            code:
              type: string
              minLength: 1
              description: Stable error code. Clients must tolerate unknown future codes.
            details:
              type: array
              items:
                type: object
                properties:
                  location:
                    type: string
                    enum:
                      - path
                      - query
                      - header
                      - body
                  path:
                    type: array
                    items:
                      type: string
                      maxLength: 64
                    maxItems: 12
                  code:
                    type: string
                    enum:
                      - required
                      - invalid_type
                      - invalid_value
                      - unknown_field
                  message:
                    type: string
                    minLength: 1
                    maxLength: 200
                required:
                  - location
                  - path
                  - code
                  - message
              minItems: 1
              maxItems: 20
              description: Bounded safe validation issues; may omit some invalid fields.
            requestId:
              type: string
              minLength: 1
              maxLength: 128
              description: >-
                Existing server correlation for this HTTP attempt, when
                available.
            dataset:
              type: string
              enum:
                - naic
                - osha
              description: Dataset needed for dataset_not_enabled.
            accessUrl:
              type: string
              nullable: true
              format: uri
              description: >-
                Where to add the product to your account, for
                product_access_required.
          required:
            - code
    V2EmployerEvent:
      type: object
      properties:
        type:
          type: string
          enum:
            - annual_summary
            - severe_injury
            - inspection
            - citation
            - accident
          description: >-
            annual_summary: a Form 300A filing. severe_injury: a severe injury
            report. inspection: an OSHA inspection opened. citation: a violation
            OSHA cited. accident: an accident OSHA investigated. More types may
            be added.
        source:
          type: string
          enum:
            - osha
          description: Dataset the event comes from. More may be added.
        date:
          type: string
          description: Event date, YYYY-MM-DD. For a 300A, December 31 of the year.
        siteId:
          type: string
          pattern: ^site_[0-9a-f]{20}$
          description: 'Effective site ID: site_ followed by 20 hex characters.'
        title:
          type: string
          description: Short plain-language description.
        severity:
          type: string
          enum:
            - fatal
            - severe
            - serious
            - other
          description: >-
            fatal: a death, a fatality inspection or a fatal accident. severe: a
            severe injury report or nonfatal accident. serious: a serious,
            willful or repeat citation. other: everything else.
        path:
          type: string
          description: >-
            API path, relative to /api/v2, that lists or reads the OSHA rows
            behind this value. MCP clients can read it as effective://api
            followed by the path.
      required:
        - type
        - source
        - date
        - siteId
        - title
        - severity
        - path
    V2Error:
      type: object
      properties:
        error:
          type: string
          minLength: 1
          description: Human-readable explanation of the failure.
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Effective API key. Send Authorization: Bearer sk-eai-...'

````

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