# Get a conversation attribute

`GET /conversations/attributes/{id}`

> This is a subset of the full specification, limited to the `GET /conversations/attributes/{id}` operation.
>
> You can find the full specification here: /_bundle/docs/references/@2.18/rest-api/api.intercom.io.yaml

```yaml
openapi: 3.0.1
info:
  title: Intercom API
  version: '2.18'
  description: This is a subset of the full specification, limited to the `GET /conversations/attributes/{id}` operation.
  contact:
    name: Intercom Developer Hub
    url: https://developers.intercom.com
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
servers:
  - url: https://api.intercom.io
    description: The production API server
  - url: https://api.eu.intercom.io
    description: The european API server
  - url: https://api.au.intercom.io
    description: The australian API server
security:
  - bearerAuth: []
tags:
  - name: Conversations Attributes
    description: Manage custom attributes for conversations
paths:
  /conversations/attributes/{id}:
    get:
      summary: Get a conversation attribute
      parameters:
        - name: Intercom-Version
          in: header
          schema:
            $ref: '#/components/schemas/intercom_version'
        - name: id
          in: path
          required: true
          description: The conversation attribute id
          example: 3
          schema:
            type: integer
      tags:
        - Conversations Attributes
      operationId: getConversationAttribute
      description: Retrieve a single conversation attribute by ID.
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              examples:
                Successful response:
                  value:
                    type: conversation_attribute
                    id: 3
                    name: test 2
                    description: ''
                    data_type: string
                    required: false
                    visible_to_team_ids: []
                    archived: false
                    created_at: 1777473061
                    updated_at: 1777473061
                    admin_id: '16'
                    multiline: false
              schema:
                $ref: '#/components/schemas/conversation_attribute'
        '401':
          description: Unauthorized
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    type: error.list
                    request_id: 310f55b0-2660-43e8-bed4-7e82b2f40920
                    errors:
                      - code: unauthorized
                        message: Access Token Invalid
              schema:
                $ref: '#/components/schemas/error'
        '404':
          description: Conversation attribute not found
          content:
            application/json:
              examples:
                Not found:
                  value:
                    type: error.list
                    request_id: null
                    errors:
                      - code: conversation_attribute_not_found
                        message: Conversation attribute not found
              schema:
                $ref: '#/components/schemas/error'
components:
  schemas:
    conversation_attribute_base:
      title: Conversation Attribute Base
      type: object
      properties:
        type:
          type: string
          description: Value is `conversation_attribute`.
          enum:
            - conversation_attribute
          example: conversation_attribute
        id:
          type: integer
          description: The unique identifier for the conversation attribute.
          example: 8
        name:
          type: string
          description: Name of the attribute.
          example: api_test_attr
        description:
          type: string
          description: Readable description of the attribute.
          example: Created via API test
        data_type:
          type: string
          description: 'The data type of the attribute. Allowed types: string, integer, list, decimal, boolean, datetime, relationship, files.'
          enum:
            - string
            - integer
            - list
            - decimal
            - boolean
            - datetime
            - relationship
            - files
          example: string
        required:
          type: boolean
          description: Whether this attribute is required.
          example: false
        visible_to_team_ids:
          type: array
          description: Team IDs that can see this attribute. Empty array means all teams.
          items:
            type: string
          example: []
        archived:
          type: boolean
          description: Whether this attribute is archived.
          example: false
        created_at:
          type: integer
          format: date-time
          description: The time the attribute was created as a UTC Unix timestamp.
          example: 1778239701
        updated_at:
          type: integer
          format: date-time
          description: The time the attribute was last updated as a UTC Unix timestamp.
          example: 1778239701
        admin_id:
          type: string
          nullable: true
          description: ID of the admin who created the attribute, or `null` if there isn't one.
          example: '16'
    conversation_attribute_string_type:
      title: Conversation Attribute (String)
      allOf:
        - $ref: '#/components/schemas/conversation_attribute_base'
        - type: object
          properties:
            data_type:
              type: string
              enum:
                - string
            multiline:
              type: boolean
              description: Whether this string attribute is multiline.
              example: false
    conversation_attribute_integer_type:
      title: Conversation Attribute (Integer)
      allOf:
        - $ref: '#/components/schemas/conversation_attribute_base'
        - type: object
          properties:
            data_type:
              type: string
              enum:
                - integer
    conversation_attribute_list_type:
      title: Conversation Attribute (List)
      allOf:
        - $ref: '#/components/schemas/conversation_attribute_base'
        - type: object
          properties:
            data_type:
              type: string
              enum:
                - list
            options:
              type: array
              description: Predefined options for this attribute. Each option has a unique UUID used to identify it in the options management endpoints.
              items:
                $ref: '#/components/schemas/conversation_attribute_option'
    conversation_attribute_decimal_type:
      title: Conversation Attribute (Decimal)
      allOf:
        - $ref: '#/components/schemas/conversation_attribute_base'
        - type: object
          properties:
            data_type:
              type: string
              enum:
                - decimal
    conversation_attribute_boolean_type:
      title: Conversation Attribute (Boolean)
      allOf:
        - $ref: '#/components/schemas/conversation_attribute_base'
        - type: object
          properties:
            data_type:
              type: string
              enum:
                - boolean
    conversation_attribute_datetime_type:
      title: Conversation Attribute (Datetime)
      allOf:
        - $ref: '#/components/schemas/conversation_attribute_base'
        - type: object
          properties:
            data_type:
              type: string
              enum:
                - datetime
    conversation_attribute_relationship_type:
      title: Conversation Attribute (Relationship)
      allOf:
        - $ref: '#/components/schemas/conversation_attribute_base'
        - type: object
          properties:
            data_type:
              type: string
              enum:
                - relationship
            reference:
              type: object
              description: Reference configuration for related objects.
              properties:
                type:
                  type: string
                  description: 'The cardinality of the relationship: `one` or `many`.'
                  enum:
                    - one
                    - many
                  example: many
                object_type_id:
                  type: string
                  description: The ID of the related custom object type.
                  example: Test_Object
    conversation_attribute_files_type:
      title: Conversation Attribute (Files)
      allOf:
        - $ref: '#/components/schemas/conversation_attribute_base'
        - type: object
          properties:
            data_type:
              type: string
              enum:
                - files
    conversation_attribute:
      title: Conversation Attribute
      x-tags:
        - Conversations Attributes
      description: 'Conversation Attributes represent custom metadata fields for conversations. They support type-specific properties: strings (multiline), lists (options), and relationships (reference).'
      discriminator:
        propertyName: data_type
        mapping:
          string: '#/components/schemas/conversation_attribute_string_type'
          integer: '#/components/schemas/conversation_attribute_integer_type'
          list: '#/components/schemas/conversation_attribute_list_type'
          decimal: '#/components/schemas/conversation_attribute_decimal_type'
          boolean: '#/components/schemas/conversation_attribute_boolean_type'
          datetime: '#/components/schemas/conversation_attribute_datetime_type'
          relationship: '#/components/schemas/conversation_attribute_relationship_type'
          files: '#/components/schemas/conversation_attribute_files_type'
      oneOf:
        - $ref: '#/components/schemas/conversation_attribute_string_type'
        - $ref: '#/components/schemas/conversation_attribute_integer_type'
        - $ref: '#/components/schemas/conversation_attribute_list_type'
        - $ref: '#/components/schemas/conversation_attribute_decimal_type'
        - $ref: '#/components/schemas/conversation_attribute_boolean_type'
        - $ref: '#/components/schemas/conversation_attribute_datetime_type'
        - $ref: '#/components/schemas/conversation_attribute_relationship_type'
        - $ref: '#/components/schemas/conversation_attribute_files_type'
    conversation_attribute_option:
      title: Conversation Attribute Option
      type: object
      description: A single option on a list-type conversation attribute.
      properties:
        id:
          type: string
          description: The unique UUID identifier for this option. Use this value as `option_id` in the options management endpoints.
          example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
        label:
          type: string
          description: The display label for the option.
          example: High
        archived:
          type: boolean
          description: Whether this option is archived (soft-deleted).
          example: false
    error:
      type: object
      title: Error
      description: The API will return an Error List for a failed request, which will contain one or more Error objects.
      properties:
        type:
          type: string
          description: The type is error.list
          example: error.list
        request_id:
          type: string
          nullable: true
          format: uuid
          description: ''
          example: f93ecfa8-d08a-4325-8694-89aeb89c8f85
        errors:
          type: array
          description: An array of one or more error objects
          items:
            properties:
              code:
                type: string
                description: A string indicating the kind of error, used to further qualify the HTTP response code.
                example: unauthorized
              message:
                type: string
                nullable: true
                description: Optional. Human readable description of the error.
                example: Access Token Invalid
              data:
                type: object
                nullable: true
                additionalProperties: true
                description: Optional. Extra detail about the error, for example `required_permissions` on a 403 `action_forbidden` error.
                example:
                  required_permissions:
                    - read_conversations
            required:
              - code
      required:
        - type
        - errors
    intercom_version:
      description: Intercom API version.</br>If you omit the header, the API uses the version set in your app package, and 1.0 if none is set.
      type: string
      example: '2.18'
      enum:
        - '1.0'
        - '1.1'
        - '1.2'
        - '1.3'
        - '1.4'
        - '2.0'
        - '2.1'
        - '2.2'
        - '2.3'
        - '2.4'
        - '2.5'
        - '2.6'
        - '2.7'
        - '2.8'
        - '2.9'
        - '2.10'
        - '2.11'
        - '2.12'
        - '2.13'
        - '2.14'
        - '2.15'
        - '2.16'
        - '2.17'
        - '2.18'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
```
