---
title: "List attributes"
url: "https://developers.vzconnect.com/apis/attribute-api/versions/5171af26-732a-43bc-84a1-1d89d361a339/operations/getAttributesList"
---

> Full API specification: https://developers.vzconnect.com/apis/attribute-api/versions/5171af26-732a-43bc-84a1-1d89d361a339.md

# List attributes

`GET` `/attribute/v1/attributes`

Operation ID: `getAttributesList`

Retrieves a paginated list of attributes for the authenticated account.

## Query parameters

- `q` (string, optional) - Optional case-insensitive partial match filter on attribute names and string values. An attribute is returned when its name or at least one of its string values matches.
- `limit` (integer, int32, optional) - Maximum number of distinct attributes to return. Defaults to 100.
- `offset` (integer, int32, optional) - Zero-based pagination offset. Defaults to 0.
- `total_required` (boolean, optional) - When true, the response includes the total count of matching attributes.

## Responses

- `200` - Attributes retrieved successfully.
- `400` - Invalid query parameters.
- `401` - Unauthorized
- `403` - Forbidden
- `415` - Unsupported Media Type
- `429` - Too Many Requests
- `default` - Error

## OpenAPI definition

```yaml
openapi: 3.0.4
info:
  title: Attribute Api
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /attribute/v1/attributes:
    get:
      tags:
        - Attribute API
      summary: List attributes
      description: Retrieves a paginated list of attributes for the authenticated account.
      operationId: getAttributesList
      parameters:
        - name: q
          in: query
          description: "Optional case-insensitive partial match filter on attribute names
            and string values.\r

            An attribute is returned when its name or at least one of its string
            values matches."
          schema:
            maxLength: 100
            minLength: 0
            pattern: ^.{0,}$
            type: string
            example: Fleet
          example: Fleet
        - name: limit
          in: query
          description: Maximum number of distinct attributes to return. Defaults to 100.
          schema:
            maximum: 1000
            minimum: 1
            type: integer
            format: int32
            example: 25
          example: 25
        - name: offset
          in: query
          description: Zero-based pagination offset. Defaults to 0.
          schema:
            maximum: 2147483647
            minimum: 0
            type: integer
            format: int32
            example: 0
          example: 0
        - name: total_required
          in: query
          description: When true, the response includes the total count of matching
            attributes.
          schema:
            type: boolean
            example: true
          example: true
      responses:
        "200":
          description: Attributes retrieved successfully.
          content:
            text/plain:
              schema:
                $ref: "#/components/schemas/GetAttributesListOutputDto"
            application/json:
              schema:
                $ref: "#/components/schemas/GetAttributesListOutputDto"
            text/json:
              schema:
                $ref: "#/components/schemas/GetAttributesListOutputDto"
        "400":
          description: Invalid query parameters.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/VerizonProblemDetails"
        "401":
          description: Unauthorized
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/VerizonProblemDetails"
        "403":
          description: Forbidden
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/VerizonProblemDetails"
        "415":
          description: Unsupported Media Type
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/VerizonProblemDetails"
        "429":
          description: Too Many Requests
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/VerizonProblemDetails"
        default:
          description: Error
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/VerizonProblemDetails"
security:
  - STS: []
components:
  schemas:
    GetAttributesListOutputDto:
      required:
        - items
      type: object
      properties:
        totalPages:
          type: integer
          description: The number of pages available based on the total count and query
            limit.
          format: int32
          nullable: true
          example: 4
        totalCount:
          type: integer
          description: Total count of matching items. Populated only when TotalRequired is
            true.
          format: int32
          nullable: true
          example: 87
        items:
          maxItems: 1000
          minItems: 0
          type: array
          items:
            $ref: "#/components/schemas/GetAttributesListItemDto"
          description: The paginated list of attributes.
      additionalProperties: false
      description: Output DTO for the get attributes list endpoint.
    VerizonProblemDetails:
      type: object
      properties:
        type:
          maxLength: 65519
          minLength: 0
          pattern: ^.{0,}$
          type: string
          description: A URI reference that identifies the problem type.
          format: uri-reference
          nullable: true
          example: string
        title:
          maxLength: 65519
          minLength: 0
          pattern: ^.{0,}$
          type: string
          description: A short, human-readable summary of the problem type.
          nullable: true
          example: string
        status:
          maximum: 599
          minimum: 300
          type: integer
          description: The HTTP status code generated by the origin server for this
            occurrence of the problem.
          format: int32
          nullable: true
        detail:
          maxLength: 65519
          minLength: 0
          pattern: ^.{0,}$
          type: string
          description: A human-readable explanation specific to this occurrence of the
            problem.
          nullable: true
          example: string
        instance:
          maxLength: 65519
          minLength: 0
          pattern: ^.{0,}$
          type: string
          description: A URI reference that identifies the specific occurrence of the
            problem. It may or may not yield further information if
            dereferenced.
          nullable: true
          example: string
        debugId:
          maxLength: 2048
          minLength: 3
          pattern: ^.{0,}$
          type: string
          description: A unique error identifier string generated on the service-side and
            logged for correlation purposes. Verizon extension to RFC 9457.
          nullable: true
          example: string
        errors:
          maxItems: 1000
          minItems: 0
          type: array
          items:
            $ref: "#/components/schemas/ProblemError"
          description: List of errors. Verizon extension to RFC 9457.
          nullable: true
      additionalProperties: false
      description: A machine-readable format for specifying errors in HTTP API
        responses based on RFC 9457. Responses include the Verizon extension
        field 'debugId' — a unique error identifier generated server-side and
        logged for correlation (maps to x-request-id / Correlation-Id header).
    GetAttributesListItemDto:
      required:
        - attributeId
        - externalIds
        - name
        - stringValues
      type: object
      properties:
        attributeId:
          maxLength: 36
          minLength: 0
          pattern: ^.{0,}$
          type: string
          description: Unique identifier for the attribute (UUID v7).
          example: 019462a1-b7c3-7def-8a12-4e5f6a7b8c9d
        name:
          maxLength: 30
          minLength: 0
          pattern: ^.{0,}$
          type: string
          description: The name of the attribute.
          example: Fleet Region
        description:
          maxLength: 1000
          minLength: 0
          pattern: ^.{0,}$
          type: string
          description: Description of the attribute (nullable).
          nullable: true
          example: Geographical region assigned to fleet vehicles
        stringValues:
          maxItems: 100
          minItems: 0
          type: array
          items:
            maxLength: 0
            minLength: 0
            pattern: ^.{0,}$
            type: string
          description: Allowed string values for this attribute.
          example:
            - North
            - South
            - East
            - West
        externalIds:
          maxItems: 1
          minItems: 0
          type: array
          items:
            maxLength: 120
            minLength: 0
            pattern: ^[^\n]{1,120}$
            type: string
          description: External identifiers associated with this attribute.
          example:
            - erp-system:region-001
      additionalProperties: false
      description: Represents a single attribute item in the get attributes list response.
    ProblemError:
      type: object
      properties:
        detail:
          maxLength: 65519
          minLength: 0
          pattern: ^.{0,}$
          type: string
          description: A human-readable explanation of this error.
          nullable: true
          example: string
        pointer:
          maxLength: 2048
          minLength: 1
          pattern: ^.{0,}$
          type: string
          description: A pointer to locate the problem within the request's content using
            a JSON Pointer. Verizon extension to RFC 9457.
          nullable: true
          example: string
        debugId:
          maxLength: 2048
          minLength: 3
          pattern: ^.{0,}$
          type: string
          description: A unique error identifier string generated on the service-side and
            logged for correlation purposes. Verizon extension to RFC 9457.
          nullable: true
          example: string
      additionalProperties: false
  securitySchemes:
    STS:
      type: http
      description: Please enter '{token}'
      scheme: bearer
      bearerFormat: JWT
```
