---
title: "Retrieve AttributeType by ID"
method: GET
path: "/v3/attributeTypes/{uniqueId}"
tags: ["Attribute Types"]
---

# Retrieve AttributeType by ID

`GET /v3/attributeTypes/{uniqueId}`

Returns a single AttributeType corresponding to provided uniqueId

## Path parameters

- `uniqueId` '1' | '2' | '3', required — param ID of the AttributeType that needs to be fetched

## Query parameters

- `fields` string[]
- `count` string

## Response `200`

The AttributeType

- AttributeType
  - `id` integer
  - `name` string
  - `description` string
  - `maxSize` integer
  - `allowMarkdown` boolean
  - `errorMessage` string
  - `autoGenerated` boolean
  - `validationRule` ValidationRule
    - `id` integer
    - `name` string
    - `text` string
    - `type` string
    - `description` string
    - `version` string
  - `attributeTypeMappings` AttributeTypeMapping[]
    - `id` integer
    - `type` string
    - `maxAllowed` integer
    - `ownerName` string
  - `settings` AttributeTypeSettings[]
    - `id` integer
    - `typeName` string
    - `displayed` boolean
    - `message` string
    - `sortOrder` integer
    - `ownerName` string
    - `pinnedByDefault` boolean
    - `associable` boolean

---

[API](https://skmtc.dev/threatconnect/apis/threatconnect-api.md) · [All operations](https://skmtc.dev/threatconnect/apis/threatconnect-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/threatconnect/threatconnect-api/revisions/730b8a350ae7/schema)
