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

# Get filter dropdown options (users, automations, departments)

> Returns the option lists used to populate the dashboard's filter dropdowns: in-scope users, automations that have escalation configured, and (for ADMIN/SUPERADMIN only) all departments in the organization.



## OpenAPI

````yaml /api-reference/openapi.yaml get /api/escalation-dashboard/filters
openapi: 3.0.3
info:
  title: Tether Relay and Tether API
  version: 1.0.0
  description: >-
    Route-derived OpenAPI contract generated from tether-relay backend sources.
    Regenerate with scripts/sync-openapi-from-backend.mjs.
servers:
  - url: https://your-instance.example.com
    description: Production
  - url: http://localhost:2212
    description: Local API service
security: []
tags:
  - name: AI
  - name: Applications
  - name: Approval
  - name: Auth
  - name: Automations
  - name: Calls
  - name: Campaigns
  - name: Contact Analytics
  - name: Contact Metrics
  - name: Contact Notes
  - name: Contacts
  - name: Conversation Monitor
  - name: Conversations
  - name: Departments
  - name: Email
  - name: Escalation Dashboard
  - name: Event Logs
  - name: Google Sheets
  - name: Marketplace
  - name: Messages
  - name: Notification Sounds
  - name: Notifications
  - name: Org Snapshots
  - name: Organizations
  - name: Outreach
  - name: Outreach Metrics
  - name: Outreach Sources
  - name: Pipelines
  - name: Processes
  - name: Prompts
  - name: Reminders
  - name: Sms
  - name: Templates
  - name: Traces
  - name: Training
  - name: Upload
  - name: User Snapshots
  - name: Users
  - name: Vertical
  - name: Webchats
  - name: Webhook
paths:
  /api/escalation-dashboard/filters:
    get:
      tags:
        - Escalation Dashboard
      summary: Get filter dropdown options (users, automations, departments)
      description: >-
        Returns the option lists used to populate the dashboard's filter
        dropdowns: in-scope users, automations that have escalation configured,
        and (for ADMIN/SUPERADMIN only) all departments in the organization.
      operationId: get_filter_options
      parameters:
        - in: query
          name: departmentId
          required: false
          schema:
            type: string
          description: >-
            Optional department filter. ADMIN/SUPERADMIN may pass any
            departmentId; DEPARTMENT_HEAD is implicitly scoped to their own
            department and any other value is ignored.
      responses:
        '200':
          description: Filter options returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FilterOptionsResponse'
        '403':
          description: Access denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EscalationDashboardError'
        '500':
          description: Error fetching filter options
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EscalationDashboardError'
      security:
        - bearerAuth: []
components:
  schemas:
    FilterOptionsResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        data:
          type: object
          properties:
            users:
              type: array
              items:
                type: object
                properties:
                  _id:
                    type: string
                  fullName:
                    type: string
                required:
                  - _id
                  - fullName
                additionalProperties: false
            automations:
              type: array
              items:
                type: object
                properties:
                  _id:
                    type: string
                  name:
                    type: string
                required:
                  - _id
                  - name
                additionalProperties: false
            departments:
              type: array
              description: Empty for non-ADMIN/SUPERADMIN callers.
              items:
                type: object
                properties:
                  _id:
                    type: string
                  name:
                    type: string
                required:
                  - _id
                  - name
                additionalProperties: false
          required:
            - users
            - automations
            - departments
          additionalProperties: false
      required:
        - success
        - data
      additionalProperties: false
      example:
        success: true
        data:
          users:
            - _id: 5f7b1c2e8a1d4e0012c3b4a5
              fullName: Sam Patel
          automations:
            - _id: 5f7b1c2e8a1d4e0012c3b4a5
              name: Inbound Support
          departments:
            - _id: 6a8c2d3f9b1e5a0023d4c5b6
              name: Customer Success
    EscalationDashboardError:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - false
        message:
          type: string
        error:
          type: string
      required:
        - success
        - message
      additionalProperties: true
      example:
        success: false
        message: Access denied
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````