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

# My Queries

<Info>Available only for authenticated users.</Info>

![](https://github.com/urldna/docs/blob/main/images/docs/new_query.png?raw=true)

## Overview

The **My Query** feature in urlDNA allows authenticated users to save and recover custom queries. This enables users to efficiently store frequently used search filters and retrieve them later without re-entering the criteria manually.

## Creating a My Query

Users can create a My Query by defining the following parameters:

* **Query Name**: A unique name to identify the saved query.

* **Filters**: Users can add one or more filters to define complex search criteria.

### Filter Structure

Each filter consists of:

* **Attribute**: A selectable list of all searchable attributes (e.g., domain, IP, technology).

* **Operator**: Defines the matching condition:
  * `=` (equals)
  * `!=` (not equals)
  * `LIKE` (contains)
  * `!LIKE` (does not contain)

* **Value**: The input value to match against the selected attribute.

* **Logical Operator**: Used to chain multiple filters together.
  * **First Filter**: This acts as the base condition and does not require a logical operator.
  * **Subsequent Filters**: Must be joined using **AND** or **OR**.

### Understanding Logic

* **AND**: Both conditions must be true. Use this to narrow down results (e.g., `domain LIKE paypal` **AND** `malicious = true`).
* **OR**: Either condition can be true. Use this to expand results (e.g., `country = US` **OR** `country = CA`).

## Managing My Queries

Users have full control over their saved search logic:

* **Add/Edit Filters**: Insert new conditions or modify existing ones. When adding a second filter, ensure a logical operator is selected.
* **Reorder Logic**: Change the relationship between conditions by toggling between `AND` and `OR`.
* **Rename**: Update the query name for better organization.
* **Delete**: Permanently remove queries that are no longer needed.

## Quick Action: Save Search as My Query

A quick way to generate a My Query is from the **Search** page. After performing a search, users can save the current search filters as a new My Query. The system will automatically format the filters and logical operators based on your search criteria.
