> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kintra.io/llms.txt
> Use this file to discover all available pages before exploring further.

# List attribute values for a customer

> Returns the attribute values held against one customer. The response `data` is an array of entries carrying `definition_id`, `key`, `type` and `value`, where `value` is `null` for an attribute the customer has no value for. Returns 404 when the customer does not belong to your tenant.



## OpenAPI

````yaml /openapi/kintra-app.json get /tenant/{tenantId}/customers/{customer_id}/attributes
openapi: 3.0.0
info:
  description: >-
    Tenant portal API for the Kintra loyalty platform. Requests are
    authenticated with an Auth0 bearer token and address a tenant by id in the
    path.
  title: Kintra Portal API
  version: 1.0.0
servers:
  - description: Production environment
    url: https://api.kintra.io/api/v1
security: []
paths:
  /tenant/{tenantId}/customers/{customer_id}/attributes:
    get:
      tags:
        - Customer attributes
      summary: List attribute values for a customer
      description: >-
        Returns the attribute values held against one customer. The response
        `data` is an array of entries carrying `definition_id`, `key`, `type`
        and `value`, where `value` is `null` for an attribute the customer has
        no value for. Returns 404 when the customer does not belong to your
        tenant.
      operationId: ListCustomerAttributes
      parameters:
        - in: path
          name: tenantId
          required: true
          schema:
            type: string
        - in: path
          name: customer_id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/ApiResponse_ICustomerAttributeValue-Array_
          description: ''
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_null_'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_null_'
          description: Feature disabled or insufficient permissions
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_null_'
          description: Tenant or customer not found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_null_'
          description: Internal server error
      security:
        - auth0_jwt: []
components:
  schemas:
    ApiResponse_ICustomerAttributeValue-Array_:
      additionalProperties: false
      properties:
        data:
          items:
            $ref: '#/components/schemas/ICustomerAttributeValue'
          type: array
        errors:
          items:
            properties:
              message:
                type: string
              path:
                type: string
            required:
              - path
              - message
            type: object
          type: array
        message:
          type: string
        success:
          type: boolean
      required:
        - success
      type: object
    ApiResponse_null_:
      additionalProperties: false
      properties:
        data:
          enum:
            - null
          nullable: true
          type: number
        errors:
          items:
            properties:
              message:
                type: string
              path:
                type: string
            required:
              - path
              - message
            type: object
          type: array
        message:
          type: string
        success:
          type: boolean
      required:
        - success
      type: object
    ICustomerAttributeValue:
      additionalProperties: false
      properties:
        definition_id:
          type: string
        key:
          type: string
        type:
          type: string
        value:
          allOf:
            - $ref: '#/components/schemas/AttributeValue'
          nullable: true
      required:
        - definition_id
        - key
        - type
        - value
      type: object
    AttributeValue:
      anyOf:
        - type: string
        - format: double
          type: number
        - items:
            type: string
          type: array
      description: >-
        Value types accepted by `_mapValueToColumns` and
        `bulkUpsertForCustomer`.
  securitySchemes:
    auth0_jwt:
      bearerFormat: JWT
      description: Auth0 access token
      scheme: bearer
      type: http

````