---
title: positionSeen query | Wartiva GraphQL API
description: Retrieves a PositionSeen by its graph object id: a geographic coordinate where endpoints, and the devices and networks they see, were observed.
url: https://wartiva.com/api-docs/queries/position-seen.html
updated: 2026-10-07
---

Location · GraphQL query

# `positionSeen` query

Retrieves a [PositionSeen](https://wartiva.com/api-docs/types/position-seen.html) by its graph object id: a geographic coordinate where endpoints, and the devices and networks they see, were observed, with when they were seen there. An [Endpoint](https://wartiva.com/api-docs/types/endpoint.html) lists its positions through `positions`, `lastPosition`, and `primaryPosition`; find them across the organization with [graphSearch](https://wartiva.com/api-docs/queries/graph-search.html) on the POSITION_SEEN object type. Returns a not-found error when no object has the id, and an error when the id belongs to another object type.

## Response

Returns a [`PositionSeenPayload!`](https://wartiva.com/api-docs/types/position-seen-payload.html)

## Arguments

| Name | Description |
|---|---|
| `id` - [`ID!`](https://wartiva.com/api-docs/types/id.html) | The PositionSeen identifier. |
| `mockOptions` - [`MockDataInput`](https://wartiva.com/api-docs/types/mock-data-input.html) | Options for mock data generation. Options supported: none. |

## Example

### Query

```graphql
query positionSeen(
  $id: ID!,
  $mockOptions: MockDataInput
) {
  positionSeen(
    id: $id,
    mockOptions: $mockOptions
  ) {
    node {
      id
      orgId
      seen {
        ...SeenOnlineFragment
      }
      objectType
      objectTypeLabel
      displayName
      firstSeen
      lastSeen
      createdAt
      updatedAt
      snapshotInfo {
        ...GraphObjectSnapshotInfoFragment
      }
      position {
        ...PositionFragment
      }
      location {
        ...LocationFragment
      }
      networks {
        ...NetworkConnectionFragment
      }
      devices {
        ...DeviceConnectionFragment
      }
      primaryLocationOfDevices {
        ...DeviceConnectionFragment
      }
      devicesSeenAt {
        ...DeviceConnectionFragment
      }
      endpoints {
        ...EndpointConnectionFragment
      }
      primaryLocationOfEndpoints {
        ...EndpointConnectionFragment
      }
      endpointsSeenAt {
        ...EndpointConnectionFragment
      }
      findings {
        ...FindingsPayloadFragment
      }
      issues {
        ...IssuesPayloadFragment
      }
      issuesSummary {
        ...IssuesSummaryFragment
      }
    }
  }
}

```

### Variables

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

```

### Response

```json
{"data": {"positionSeen": {"node": PositionSeen}}}

```

---

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