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

# Get Saved Views

> Returns all saved views (filter presets) for a specific website. Each saved view captures a named set of filters that can be reused across the dashboard.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/saved-views
openapi: 3.1.0
info:
  title: AthenaHQ API
  description: >-
    AthenaHQ API provides programmatic access to manage your websites and
    prompts for AI-powered content optimization.
  version: 1.0.0
  contact:
    email: support@athenahq.ai
servers:
  - url: https://api.athenahq.ai
    description: Production server
security:
  - apiKey: []
tags:
  - name: Basics
    description: Core API operations for managing websites and prompts
  - name: Metrics
    description: Metrics and analytics endpoints for tracking AI visibility
  - name: Billing
    description: Billing and credits endpoints for managing usage
  - name: Team Management
    description: Endpoints for managing team members and invitations
  - name: Groups
    description: Endpoints for managing groups of websites
  - name: Content
    description: >-
      Endpoints for accessing Content Hub data — tabs, tracked URLs, and per-URL
      prompt breakdowns.
  - name: Pitch Workspace
    description: >-
      Endpoints for accessing pitch workspace reports — org-scoped pitch runs
      with competitors, prompts, attributes, and aggregate metrics.
  - name: Knowledge Base
    description: >-
      Endpoints for reading the brand Knowledge Base — approved brand facts and
      the pillars that organize them.
paths:
  /api/v1/saved-views:
    get:
      tags:
        - Basics
      summary: Get Saved Views
      description: >-
        Returns all saved views (filter presets) for a specific website. Each
        saved view captures a named set of filters that can be reused across the
        dashboard.
      operationId: getSavedViews
      parameters:
        - name: website_id
          in: query
          description: The ID of the website to retrieve saved views for
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response with list of saved views
          content:
            application/json:
              schema:
                type: object
                properties:
                  saved_views:
                    type: array
                    items:
                      $ref: '#/components/schemas/SavedView'
                required:
                  - saved_views
        '400':
          description: Bad request - Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                missing_website_id:
                  value:
                    error: website_id is required
                invalid_website_id:
                  value:
                    error: website_id must be a uuid
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden - You don't have access to this website
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Unauthorized access to this website
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - apiKey: []
components:
  schemas:
    SavedView:
      type: object
      description: A saved view (filter preset) for a website
      required:
        - id
        - name
        - icon
        - website_id
        - user_id
        - filters
        - created_at
        - updated_at
        - created_by
      properties:
        id:
          type: string
          description: Unique identifier for the saved view
          example: 123e4567-e89b-12d3-a456-426614174000
        name:
          type: string
          description: Display name of the saved view
          example: Branded queries — last 30 days
        icon:
          type: string
          nullable: true
          description: Optional icon identifier
          example: star
        website_id:
          type: string
          format: uuid
          description: The website this saved view belongs to
          example: 987e6543-e21b-12d3-a456-426614174000
        user_id:
          type: string
          nullable: true
          description: >-
            The ID of the user who created the saved view. Null when the view
            was created via the API (api-key sessions carry no user identity);
            such views can only be edited or deleted by website admins.
          example: 456e7890-e89b-12d3-a456-426614174000
        filters:
          type: object
          description: Filter preset payload. Shape mirrors the dashboard filter state.
          additionalProperties: true
        created_at:
          type: string
          format: date-time
          nullable: true
          description: Timestamp when the saved view was created (UTC)
          example: '2026-04-01T10:30:00.000Z'
        updated_at:
          type: string
          format: date-time
          nullable: true
          description: Timestamp when the saved view was last updated (UTC)
          example: '2026-04-15T12:00:00.000Z'
        created_by:
          type: object
          nullable: true
          description: User who created the saved view
          required:
            - id
            - email
            - first_name
            - last_name
            - display_name
          properties:
            id:
              type: string
              description: User ID
            email:
              type: string
              format: email
              description: User email
            first_name:
              type: string
              nullable: true
              description: User first name
            last_name:
              type: string
              nullable: true
              description: User last name
            display_name:
              type: string
              description: >-
                Computed display name (full name when available, otherwise
                email)
    Error:
      type: object
      description: Error response object
      required:
        - error
      properties:
        error:
          type: string
          description: Error message describing what went wrong
          example: Unauthorized
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key for authentication. You can create one
        [here](https://app.athenahq.ai/organization?tab=api).

````