---
title: deviceModel query | Wartiva GraphQL API
description: Retrieves a DeviceModel by its graph object id: a specific product model of discovered devices. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/queries/device-model.html
updated: 2026-10-07
---

Networks, devices, and sensors · GraphQL query

# `deviceModel` query

Retrieves a [DeviceModel](https://wartiva.com/api-docs/types/device-model.html) by its graph object id: a specific product model of discovered devices, known only when a device identifies its exact product through UPnP, mDNS, IPP, or DHCP fingerprinting. Its `devices` field lists the [Device](https://wartiva.com/api-docs/types/device.html) objects of that model; find models with [graphSearch](https://wartiva.com/api-docs/queries/graph-search.html) on the DEVICE_MODEL 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 [`DeviceModelPayload!`](https://wartiva.com/api-docs/types/device-model-payload.html)

## Arguments

| Name | Description |
|---|---|
| `id` - [`ID!`](https://wartiva.com/api-docs/types/id.html) | The [DeviceModel](https://wartiva.com/api-docs/types/device-model.html) 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 deviceModel(
  $id: ID!,
  $mockOptions: MockDataInput
) {
  deviceModel(
    id: $id,
    mockOptions: $mockOptions
  ) {
    node {
      id
      orgId
      objectType
      objectTypeLabel
      displayName
      firstSeen
      lastSeen
      seen {
        ...SeenOnlineFragment
      }
      createdAt
      updatedAt
      snapshotInfo {
        ...GraphObjectSnapshotInfoFragment
      }
      manufacturer {
        ...DeviceManufacturerFragment
      }
      name
      friendlyName
      description
      number
      url
      devices {
        ...DeviceConnectionFragment
      }
      findings {
        ...FindingsPayloadFragment
      }
      issues {
        ...IssuesPayloadFragment
      }
      issuesSummary {
        ...IssuesSummaryFragment
      }
    }
  }
}

```

### Variables

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

```

### Response

```json
{"data": {"deviceModel": {"node": DeviceModel}}}

```

---

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