> ## Documentation Index
> Fetch the complete documentation index at: https://docs.asteragents.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ShipHero Query

> Query ShipHero warehouse data without modifying records.

Requires a [ShipHero connection](/integrations/shiphero). Supply `query`, optional JSON `variables`, and optional `instance` (otherwise the organization's default).

Use **ShipHero Get Schema** to inspect types before building a query. Only one query operation is allowed, without fragments. Mutations and subscriptions are rejected. Supported roots include account, me, user\_quota, products, product, warehouse\_products, purchase\_orders, purchase\_order, inventory\_changes, inbound\_shipments, expiration\_lots, item\_locations, work\_orders, orders, and order.

```graphql theme={null}
query Products($after: String) {
  products {
    request_id
    complexity
    data(first: 20, after: $after) {
      pageInfo { hasNextPage endCursor }
      edges { node { id sku name } }
    }
  }
}
```

Results include the resolved instance and ShipHero data. Continue every connection using its cursor; a page is not a full inventory or demand total. `first` and `last` must be between 1 and 100. Select only needed fields. Oversized responses and partial GraphQL failures return an error, never truncated results.
