---
title: "Get the list of attributes of a given reference entity"
method: GET
path: "/api/rest/v1/reference-entities/{reference_entity_code}/attributes"
tags: ["Reference entity attribute"]
---

# Get the list of attributes of a given reference entity

`GET /api/rest/v1/reference-entities/{reference_entity_code}/attributes`

This endpoint allows you to get the list of attributes of a given reference entity.

## Path parameters

- `reference_entity_code` string, required

## Response `200`

Return the attributes of the given reference entity

- object[]
  - `code` string, required — Attribute code
  - `labels` object — Attribute labels for each locale
    - `localeCode` string — Attribute label for the locale `localeCode`
  - `type` 'text' | 'image' | 'number' | 'single_option' | 'multiple_options' | 'reference_entity_single_link' | 'reference_entity_multiple_links', required — Attribute type. See <a href='/concepts/reference-entities.html#reference-entity-attribute'>type</a> section for more details.
  - `value_per_locale` boolean — Whether the attribute is localizable, i.e. can have one value by locale
  - `value_per_channel` boolean — Whether the attribute is scopable, i.e. can have one value by channel
  - `is_required_for_completeness` boolean — Whether the attribute should be part of the record's completeness calculation
  - `max_characters` integer — Maximum number of characters allowed for the value of the attribute when the attribute type is `text`
  - `is_textarea` boolean — Whether the UI should display a text area instead of a simple field when the attribute type is `text`
  - `is_rich_text_editor` boolean — Whether the UI should display a rich text editor instead of a simple text area when the attribute type is `text`
  - `validation_rule` 'email' | 'url' | 'regexp' | 'none' — Validation rule type used to validate the attribute value when the attribute type is `text`
  - `validation_regexp` string — Regexp expression used to validate the attribute value when the attribute type is `text`
  - `allowed_extensions` string[] — Extensions allowed when the attribute type is `image`
  - `max_file_size` string — Max file size in MB when the attribute type is `image`
  - `reference_entity_code` string — Code of the linked reference entity when the attribute type is `reference_entity_single_link` or `reference_entity_multiple_links`
  - `asset_family_identifier` string — Code of the linked asset family when the attribute type is `asset_collection`
  - `decimals_allowed` boolean — Whether decimals are allowed when the attribute type is `number`
  - `min_value` string — Minimum value allowed when the attribute type is `number`
  - `max_value` string — Maximum value allowed when the attribute type is `number`

## Other responses

- `401` — Authentication required
- `406` — Not Acceptable

---

[API](https://skmtc.net/akeneo/apis/akeneo-pim-rest-api.md) · [All operations](https://skmtc.net/akeneo/apis/akeneo-pim-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeneo/akeneo-pim-rest-api/versions/d8bda9b93b59/schema)
