---
title: endpointPath query | Wartiva GraphQL API
description: Retrieves an EndpointPath by its graph object id: the files a configured PathSensor found under its path on one endpoint, with each file's stat record.
url: https://wartiva.com/api-docs/queries/endpoint-path.html
updated: 2026-10-07
---

File path sensors · GraphQL query

# `endpointPath` query

Retrieves an [EndpointPath](https://wartiva.com/api-docs/types/endpoint-path.html) by its graph object id: the files a configured [PathSensor](https://wartiva.com/api-docs/types/path-sensor.html) found under its path on one endpoint, with each file's stat record, checksum, ACLs, and collected contents. One exists per endpoint and path sensor that has reported data, reachable through the [Endpoint](https://wartiva.com/api-docs/types/endpoint.html)'s `paths` field. To check for one exact file across every sensor on an endpoint, use [endpointPathEntrySearch](https://wartiva.com/api-docs/queries/endpoint-path-entry-search.html). Returns a not-found error when no object has the id, and an error when the id belongs to another object type.

## Response

Returns an [`EndpointPathPayload!`](https://wartiva.com/api-docs/types/endpoint-path-payload.html)

## Arguments

| Name | Description |
|---|---|
| `id` - [`ID!`](https://wartiva.com/api-docs/types/id.html) | The EndpointPath identifier. |
| `mockOptions` - [`MockDataInput`](https://wartiva.com/api-docs/types/mock-data-input.html) | Options for mock data generation. Options supported: key: "PLATFORM", value: OsPlatform example: "mockOptions": { "options": [ { "key": "PLATFORM", "value": "WINDOWS" } ] } |

## Example

### Query

```graphql
query endpointPath(
  $id: ID!,
  $mockOptions: MockDataInput
) {
  endpointPath(
    id: $id,
    mockOptions: $mockOptions
  ) {
    node {
      id
      orgId
      objectType
      objectTypeLabel
      displayName
      firstSeen
      lastSeen
      seen {
        ...SeenOnlineFragment
      }
      createdAt
      updatedAt
      snapshotInfo {
        ...GraphObjectSnapshotInfoFragment
      }
      endpoint {
        ...EndpointFragment
      }
      pathSensor {
        ...PathSensorFragment
      }
      path
      entriesUpdatedAt
      entries {
        ...EndpointPathEntriesPayloadFragment
      }
      entry {
        ...EndpointPathEntryFragment
      }
      findings {
        ...FindingsPayloadFragment
      }
      issues {
        ...IssuesPayloadFragment
      }
      issuesSummary {
        ...IssuesSummaryFragment
      }
    }
  }
}

```

### Variables

```json
{"id": 4, "mockOptions": MockDataInput}

```

### Response

```json
{"data": {"endpointPath": {"node": EndpointPath}}}

```

---

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