---
title: "Get list of all attributes"
method: GET
path: "/api-offers/attributes"
tags: ["Attributes"]
---

# Get list of all attributes

`GET /api-offers/attributes`

## Request

- Base URL: `https://live.copilot.fabric.inc`
- URL: `https://live.copilot.fabric.inc/api-offers/attributes`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/fabric/apis/offers-v2/docs/api-offers/attributes/get.ts> (a function with typed inputs; its response is checked against the schema)

Using this endpoint, you can get a paginated list of attributes. By specfiying the pagination criteria, such as `offset` and `limit`, you can tailor the search results.

## Query parameters

- `limit` number
- `offset` number

## Headers

- `x-site-context` string, required

## Response `200`

OK

- ListAttributeResponse
  - `query` GenericListQueryResponse: Paging details used for selecting list
    - `limit` number: The maximum number of records per page.
    - `count` number: The total number of records.
    - `offset` number: The number of records to skip before returning records. For example, when offset is 20 and limit is 10, this endpoint returns records from 21 to 30.
  - `data` GetAttributeResponse[]: The attribute details.
    - `_id` string: A 24-character system-generated attribute ID.
    - `attributeId` number: A unique identifier of the attribute, for external use.
    - `name` string: The attribute name.
    - `values` string[]: The attribute values.
    - `deleted` boolean: A flag indicating the deletion status of the attribute. Set it to `true` to indicate the attribute is deleted and false to indicate otherwise.
    - `createdAt` string, date-time: The time of attribute creation, in UTC format.
    - `updatedAt` string, date-time: The time when the attribute was last updated, in UTC format.

## Other responses

- `400`: Bad Request
- `500`: Internal Server Error

---

[API](https://skmtc.dev/fabric/apis/offers-v2.md) - [All operations](https://skmtc.dev/fabric/apis/offers-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/fabric/apis/offers-v2/revisions/da2bd742b9bc?raw)
