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

# Get view service

> Gets a view by ID



## OpenAPI

````yaml openapi_v5.yaml get /data-exploration/views/v1/views/{id}
openapi: 3.0.0
info:
  title: ''
  version: 1.0.0
servers:
  - url: https://api.coralogix.com/mgmt/openapi/5
  - url: https://api.eu2.coralogix.com/mgmt/openapi/5
  - url: https://api.coralogix.us/mgmt/openapi/5
  - url: https://api.cx498.coralogix.com/mgmt/openapi/5
  - url: https://api.coralogix.in/mgmt/openapi/5
  - url: https://api.coralogixsg.com/mgmt/openapi/5
  - url: https://api.ap3.coralogix.com/mgmt/openapi/5
security:
  - apiKeyAuth: []
tags:
  - name: AI Applications Service
    description: Manage the catalog of AI applications discovered from spans.
    externalDocs:
      url: ''
  - name: AI Evaluations Service
    description: >-
      Manage AI evaluations and the custom evaluation catalog for AI
      applications.
    externalDocs:
      url: ''
  - name: API Keys Admin Service
    description: Administrative operations for API Keys management.
    externalDocs:
      url: ''
  - name: API Keys Service
    description: Manage your API Keys.
    externalDocs:
      url: ''
  - name: Actions Service
    description: View and manage your Actions.
    externalDocs:
      url: ''
  - name: Alert Scheduler Rule service
    description: Manage your alert scheduler rules.
    externalDocs:
      url: ''
  - name: Alert definitions service
    description: >-
      View and manage your alerts using alert definitions - data structures that
      contain the configuration required to create an alert.
    externalDocs:
      description: Learn more about alerts in our documentation
      url: https://coralogix.com/docs/user-guides/alerting/introduction-to-alerts/
  - name: Alert events service
    description: >-
      Get information regarding your alert events - instances of alerts being
      triggered.
    externalDocs:
      description: Learn more about alert events and incidents in our documentation.
      url: https://coralogix.com/docs/user-guides/alerting/incidents/
  - name: Case Events service
    description: Manage case events, comments, and external thread synchronization.
    externalDocs:
      url: ''
  - name: Case Settings service
    description: Manage case settings team configurations.
    externalDocs:
      url: ''
  - name: Cases notification service
    description: Track notification adjacent data for cases.
    externalDocs:
      url: ''
  - name: Cases service
    description: >-
      Manage cases throughout their lifecycle. Create, view, assign,
      acknowledge, unacknowledge, resolve, and close cases to streamline
      investigations and follow-ups.
    externalDocs:
      description: Learn more about Cases in our documentation
      url: https://coralogix.com/docs/user-guides/cases/
  - name: Connector Schema service
    description: Retrieve connector schemas for notification center integrations
    externalDocs:
      description: Learn more about connectors in our documentation
      url: >-
        https://coralogix.com/docs/user-guides/notification-center/connectors/introduction/
  - name: Connectors service
    description: >-
      View and manage your connectors - integration instances for notification
      destinations
    externalDocs:
      description: Lean more about connectors in our documentation
      url: >-
        https://coralogix.com/docs/user-guides/notification-center/connectors/introduction/
  - name: Contextual data integration service
    description: Query for contextual data integration information.
    externalDocs:
      url: ''
  - name: Custom Enrichments Service
    description: Manage your enrichments.
    externalDocs:
      url: ''
  - name: Dashboard folders service
    description: Manage your dashboard folders.
    externalDocs:
      url: ''
  - name: Dashboard service
    description: Get information about the Coralogix Dashboard catalog.
    externalDocs:
      url: ''
  - name: Data Usage Query service
    description: >-
      Query billable data usage through the public Coralogix API using daily or
      hourly bucketed aggregations over supported labels.
    externalDocs:
      url: ''
  - name: Data Usage Service
    description: A service to manage data usage metrics.
    externalDocs:
      url: ''
  - name: Enrichments Service
    description: Manage your enrichments.
    externalDocs:
      url: ''
  - name: Entities service
    description: Query information about registered entities in the notification center
    externalDocs:
      description: Lean more about the notification center in our documentation
      url: https://coralogix.com/docs/user-guides/notification-center/introduction/
  - name: Events Service
    description: A service for querying events.
    externalDocs:
      description: Learn more about alerts in our documentation
      url: https://coralogix.com/docs/user-guides/alerting/introduction-to-alerts/
  - name: Events2Metrics Service
    description: Manage your events2metrics.
    externalDocs:
      url: ''
  - name: Extension deployment service
    description: A service that enables querying for extension deployment information.
    externalDocs:
      description: Find out more about extensions in our documentation.
      url: https://coralogix.com/docs/integrations/extensions/
  - name: Extension service
    description: A service that enables querying for extension information.
    externalDocs:
      description: Learn more about extensions in our documentation.
      url: https://coralogix.com/docs/integrations/extensions/
  - name: Folders for views service
    description: Create and manage view folders.
    externalDocs:
      url: ''
  - name: Global routers service
    description: >-
      View and manage your global routers - entities that direct notifications
      to configured destinations based on conditions
    externalDocs:
      description: Lean more about global routers in our documentation
      url: >-
        https://coralogix.com/docs/user-guides/notification-center/routing/introduction/
  - name: IP access service
    description: >-
      IP access service provides the API for managing company IP access
      settings.
    externalDocs:
      url: ''
  - name: Incidents service
    description: >-
      Handle all operations related to incident management within Coralogix.
      Identify, manage, and resolve incidents efficiently through automated
      workflows and team collaboration.
    externalDocs:
      description: Find out more about incident management in our documentation
      url: https://coralogix.com/docs/user-guides/alerting/incidents/
  - name: Integration service
    description: A service that enables querying for integration information.
    externalDocs:
      description: Find out more about integrations in our documentation.
      url: https://coralogix.com/docs/integrations/getting-started/
  - name: Metrics Data Archive Service
    description: View and manage your storage targets for metrics.
    externalDocs:
      description: Find out more about archives
      url: >-
        https://coralogix.com/docs/user-guides/data-flow/s3-archive/connect-s3-archive/
  - name: Notifications testing service
    description: >-
      Test your notification center configurations including connectors,
      presets, and templates
    externalDocs:
      description: Lean more about the notification center in our documentation
      url: https://coralogix.com/docs/user-guides/notification-center/introduction/
  - name: Outgoing webhooks service
    externalDocs:
      description: Find out more about outbound webhooks in our documentation.
      url: >-
        https://coralogix.com/docs/user-guides/alerting/outbound-webhooks/generic-outbound-webhooks-alert-webhooks/
  - name: Policies Service
    description: View and manage your TCO policies
    externalDocs:
      url: ''
  - name: Presets service
    description: >-
      View and manage your presets - pre-configured templates for notification
      content rendering
    externalDocs:
      description: Lean more about presets in our documentation
      url: >-
        https://coralogix.com/docs/user-guides/notification-center/presets/introduction/
  - name: Quota Allocation Rule Set service
    description: Manage quota allocation rules for different entity types.
    externalDocs:
      url: ''
  - name: Recording Rules Service
    description: A service to manage recording rules.
    externalDocs:
      url: ''
  - name: Retentions Service
    description: View and manage retentions
    externalDocs:
      url: ''
  - name: Role Management Service
    description: Service for managing system and custom roles.
    externalDocs:
      url: ''
  - name: Rule Groups Service
    description: A service to manage rule groups.
    externalDocs:
      url: ''
  - name: SAML Configuration Service
    description: Manage your SAML configuration
    externalDocs:
      url: ''
  - name: Scopes Service
    description: A service to manage scopes
    externalDocs:
      url: ''
  - name: Slos Service
    description: A service for managing Service Level Objectives (SLOs).
    externalDocs:
      url: ''
  - name: Target Service
    description: View and manage your storage targets for logs.
    externalDocs:
      description: Find out more about archives
      url: >-
        https://coralogix.com/docs/user-guides/data-flow/s3-archive/connect-s3-archive/
  - name: Team Groups Management Service
    description: Manage Team Groups.
    externalDocs:
      url: ''
  - name: Users Management Service
    description: >-
      Manage team members (users) including creation, updates, search, and
      status management.
    externalDocs:
      url: ''
  - name: Views service
    description: Create and manage views.
    externalDocs:
      url: ''
paths:
  /data-exploration/views/v1/views/{id}:
    parameters:
      - name: id
        in: path
        description: id
        required: true
        schema:
          maximum: 2147483647
          minimum: 1
          type: integer
          description: id
          format: int32
          example: 52
    get:
      tags:
        - Views service
      summary: Get view service
      description: Gets a view by ID
      operationId: ViewsService_GetView
      responses:
        '200':
          content:
            application/json:
              example:
                filters:
                  filters:
                    - name: applicationName
                      selectedValues:
                        demo: true
                    - name: subsystemName
                      selectedValues:
                        demo: true
                    - name: operationName
                      selectedValues:
                        demo: true
                    - name: serviceName
                      selectedValues:
                        demo: true
                    - name: severity
                      selectedValues:
                        demo: true
                id: 52
                name: Logs view
                searchQuery:
                  query: logs
                timeSelection:
                  customSelection:
                    fromTime: '2024-01-25T11:31:43.152Z'
                    toTime: '2024-01-25T11:37:13.238Z'
              schema:
                $ref: '#/components/schemas/View'
          description: ''
      externalDocs:
        url: ''
components:
  schemas:
    View:
      title: View
      required:
        - name
        - id
        - timeSelection
      type: object
      properties:
        filters:
          $ref: '#/components/schemas/SelectedFilters'
        folderId:
          maxLength: 36
          minLength: 36
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
          description: Unique identifier for folders
          example: 3dc02998-0b50-4ea8-b68a-4779d716fa1f
        id:
          maximum: 2147483647
          minimum: 1
          type: integer
          description: id
          format: int32
          example: 52
        isCompactMode:
          type: boolean
          description: The is compact mode.
        name:
          maxLength: 250
          minLength: 1
          pattern: ^[\s\S]*$
          type: string
          description: View name
          example: Logs view
        searchQuery:
          $ref: '#/components/schemas/SearchQuery'
        timeSelection:
          $ref: '#/components/schemas/TimeSelection'
        viewType:
          $ref: '#/components/schemas/ViewType'
      description: Response for views.
      externalDocs:
        url: ''
    SelectedFilters:
      type: object
      properties:
        filters:
          maxItems: 1000
          minItems: 1
          type: array
          items:
            $ref: '#/components/schemas/views.v1.Filter'
          description: List of filters.
      description: Selected filters.
      externalDocs:
        url: ''
    SearchQuery:
      title: SearchQuery
      required:
        - query
      type: object
      properties:
        query:
          maxLength: 65535
          minLength: 1
          pattern: ^[\s\S]*$
          type: string
          description: Query string.
        syntaxType:
          $ref: '#/components/schemas/SyntaxType'
      description: Search query.
      externalDocs:
        url: ''
    TimeSelection:
      type: object
      oneOf:
        - required:
            - quickSelection
          type: object
        - required:
            - customSelection
          type: object
        - type: object
          not:
            anyOf:
              - required:
                  - quickSelection
                type: object
              - required:
                  - customSelection
                type: object
      properties:
        customSelection:
          $ref: '#/components/schemas/CustomTimeSelection'
        quickSelection:
          $ref: '#/components/schemas/QuickTimeSelection'
      description: Time selection.
      externalDocs:
        url: ''
    ViewType:
      enum:
        - VIEW_TYPE_UNSPECIFIED
        - VIEW_TYPE_LOGS
        - VIEW_TYPE_TEMPLATES
        - VIEW_TYPE_ARCHIVE_LOGS
        - VIEW_TYPE_ARCHIVE_TEMPLATES
      type: string
      description: View type.
    views.v1.Filter:
      title: ViewFolder
      required:
        - name
        - selectedValues
      type: object
      properties:
        name:
          maxLength: 65535
          minLength: 1
          pattern: ^[\s\S]*$
          type: string
          description: Filter name
          example: applicationName
        selectedValues:
          type: object
          additionalProperties:
            type: boolean
          description: Filter selected values
      description: View folder.
      externalDocs:
        url: ''
    SyntaxType:
      enum:
        - SYNTAX_TYPE_UNSPECIFIED
        - SYNTAX_TYPE_LUCENE
        - SYNTAX_TYPE_DATAPRIME
      type: string
      description: Syntax type.
    CustomTimeSelection:
      required:
        - fromTime
        - toTime
      type: object
      properties:
        fromTime:
          maxLength: 35
          minLength: 1
          type: string
          description: The from time.
          format: date-time
          example: '2024-01-25T11:31:43.152Z'
        toTime:
          maxLength: 35
          minLength: 1
          type: string
          description: The to time.
          format: date-time
          example: '2024-01-25T11:35:43.152Z'
      description: Custom time selection.
      externalDocs:
        url: ''
    QuickTimeSelection:
      required:
        - seconds
      type: object
      properties:
        caption:
          maxLength: 100
          minLength: 1
          pattern: ^[\s\S]*$
          type: string
          description: Folder name
          example: Last Hour
          deprecated: true
        seconds:
          maximum: 4294967295
          minimum: 0
          type: integer
          description: Folder name
          format: int64
          example: 3600
      description: Quick time selection.
      externalDocs:
        url: ''
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: API key authentication

````