Skip to main content
POST
/
v1
/
query
Create Saved Query
curl --request POST \
  --url https://api.urldna.io/v1/query \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "query_filters": [
    {
      "attribute": "id",
      "operator": "=",
      "value": "<string>"
    }
  ]
}
'
[
  {
    "name": "<string>",
    "query_filters": [
      {
        "attribute": "id",
        "operator": "=",
        "value": "<string>"
      }
    ],
    "id": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Body

application/json
name
string
required

Descriptive name for identifying the query.

query_filters
object[]
required

Array of filter conditions. All filters are combined with logical AND.

Response

Query created successfully.

name
string
required

User-defined query name for easy identification.

query_filters
object[]
required

Array of filter conditions combined with logical AND.

id
string

Unique query identifier.