---
title: pathSensors query | Wartiva GraphQL API
description: Lists a page of the enabled PathSensor configurations in an organization, including the default sensors Wartiva provides; total counts enabled sensors only.
url: https://wartiva.com/api-docs/queries/path-sensors.html
updated: 2026-10-07
---

Organizations and users · GraphQL query

# `pathSensors` query

Lists a page of the enabled [PathSensor](https://wartiva.com/api-docs/types/path-sensor.html) configurations in an organization, including the default sensors Wartiva provides; `total` counts enabled sensors only. Disabled sensors are not listed, though [pathSensor](https://wartiva.com/api-docs/queries/path-sensor.html) still returns one by id. Create and change sensors with [createPathSensor](https://wartiva.com/api-docs/mutations/create-path-sensor.html) and [updatePathSensor](https://wartiva.com/api-docs/mutations/update-path-sensor.html). Restricted to organization administrators.

## Response

Returns a [`PathSensorsPayload!`](https://wartiva.com/api-docs/types/path-sensors-payload.html)

## Arguments

| Name | Description |
|---|---|
| `orgId` - [`OrganizationId!`](https://wartiva.com/api-docs/types/organization-id.html) | The id of the Organization to retrieve PathSensors for. |
| `input` - [`PathSensorsInput!`](https://wartiva.com/api-docs/types/path-sensors-input.html) | Pagination input. |

## Example

### Query

```graphql
query pathSensors(
  $orgId: OrganizationId!,
  $input: PathSensorsInput!
) {
  pathSensors(
    orgId: $orgId,
    input: $input
  ) {
    nodes {
      id
      orgId
      name
      description
      path
      inclusions
      exclusions
      recursive
      interval
      collectChecksum
      checksumMaxBytes
      collectContents
      collectAcls
      contentMaxBytes
      isDefault
      enabled
      osTarget {
        ...PathSensorOsTargetFragment
      }
    }
    total
  }
}

```

### Variables

```json
{
  "orgId": "615f3b3b28284380e28a7342",
  "input": PathSensorsInput
}

```

### Response

```json
{
  "data": {
    "pathSensors": {"nodes": [PathSensor], "total": 123}
  }
}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
