---
title: Fetch Line Attributes
slug: fetch-line-attributes
docTags: 
createdAt: 2026-09-12T00:59:20.521Z
---

Read Line Attribute definitions with GraphQL.

```javascript
POST /async/graphql
```

Query the `LineAttribute` type:

```bash
curl -X POST '{baseUrl}/async/graphql' \
  -H 'nue-api-key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"query":"query { LineAttribute { id name isActive scope mappedFieldApiName } }"}'
```

```json
{ "data": { "LineAttribute": [
  { "id": "a1Sa...", "name": "Overage Rate", "isActive": true, "scope": ["Line Editor"], "mappedFieldApiName": "Overage_Rate__c" }
] } }
```

## Filtering

Use a `where` clause to narrow results — for example, only active attributes:

```bash
curl -X POST '{baseUrl}/async/graphql' \
  -H 'nue-api-key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"query":"query { LineAttribute(where:{ isActive:{ _eq:true } }) { id name scope mappedFieldApiName } }"}'
```

For more on querying — relationship traversal, aggregations, and operators — see [Query Nue Objects using GraphQL](<Guides and Examples/Nue Platform/Query Nue Objects using GraphQL.mdx>).
