---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.ru/dev/metrika/en/management/openapi/schema/getAttributes.md
  - https://yandex.ru/dev/metrika/ru/management/openapi/schema/getAttributes.md
  - href: en/management/openapi/schema/getAttributes.md
    type: text/markdown
    title: Markdown version
  - href: ../../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/dev/metrika/en/llms.txt

<!-- source: en/management-src/Managing-customer-and-order-data-from-the-CRM/getAttributes.md -->
<div class="openapi">

# Information about all attributes

<!-- markdownlint-disable-file -->

Returns information about system and custom attributes.

## Request

<div class="openapi__requests">

<div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-get);margin-bottom: 12px">

<div class="openapi__request">

GET {.openapi__method}
```text translate=no
https://api-metrika.yandex.net/cdp/api/v1/counter/{counterId}/schema/attributes
```

</div>

</div>

</div>

### Path parameters

#|
|| **Name** | **Description** ||
||

_counterId_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer

Tag ID.
{.table-cell}
||
|#{.json-schema-properties}

### Query parameters

#|
|| **Name** | **Description** ||
||

_entity_type_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Attribute ownership.
Possible values:
- `CONTACT`: Attributes belong to contacts.
- `COMPANY`: Attributes belong to companies.
- `ORDER`: Attributes belong to orders.
- `SIMPLE_ORDER`: Attributes belong to simple orders.


_Example:_{.json-schema-reset .json-schema-example} `CONTACT`
{.table-cell}
||
|#{.json-schema-properties}

## Responses

<div class="openapi__response__code__200">

## 200 OK

OK

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "system_attributes": [
    {
      "name": "example",
      "type_humanized": "example",
      "multivalued": true,
      "humanized": "example"
    }
  ],
  "custom_attributes": [
    null
  ]
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_custom_attributes_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: [Attribute](#entity-Attribute)[]

List of custom attributes.

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "name": "example",
    "type_humanized": "example",
    "multivalued": true,
    "humanized": "example"
  }
]
```

{% endcut %}
{.table-cell}
||
||

_system_attributes_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: [Attribute](#entity-Attribute)[]

List of system attributes.

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "name": "example",
    "type_humanized": "example",
    "multivalued": true,
    "humanized": "example"
  }
]
```

{% endcut %}
{.table-cell}
||
|#{.json-schema-properties}

</div>

<div class="openapi-entity">

### Attribute {#entity-Attribute}

Description of the `Attribute` object.

#|
|| **Name** | **Description** ||
||

_multivalued_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: boolean

Determines whether the attribute can have multiple values.
{.table-cell}
||
||

_name_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Attribute ID.

_Min length:_{.json-schema-reset .json-schema-assertion} `1`

_Max length:_{.json-schema-reset .json-schema-assertion} `255`

_Pattern:_{.json-schema-reset .json-schema-assertion} `^[\w-:]+$`

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_humanized_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

Attribute name.

_Min length:_{.json-schema-reset .json-schema-assertion} `0`

_Max length:_{.json-schema-reset .json-schema-assertion} `4096`

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_type_humanized_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

Attribute type name.

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "name": "example",
  "type_humanized": "example",
  "multivalued": true,
  "humanized": "example"
}
```

{% endcut %}

</div>

</div>

</div>
<!-- endsource: en/management-src/Managing-customer-and-order-data-from-the-CRM/getAttributes.md -->

[*Deprecated]: No longer supported, please use an alternative and newer version.