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

# Retrieve a contact

> Retrieve detailed information about a specific contact, including their attributes and conversation history.



## OpenAPI

````yaml get /api/v2/contacts/{contactId}
openapi: 3.0.1
info:
  title: LiveChatAI API v2
  description: >-
    LiveChatAI API v2 - Build powerful AI-powered customer support experiences.
    This API follows REST principles with predictable, resource-oriented URLs,
    JSON responses, and standard HTTP methods.
  version: 2.0.0
servers:
  - url: https://app.livechatai.com
    description: Production server
security:
  - bearerAuth: []
paths:
  /api/v2/contacts/{contactId}:
    get:
      tags:
        - Contacts
      summary: Retrieve a contact
      description: >-
        Retrieve detailed information about a specific contact, including their
        attributes and conversation history.
      parameters:
        - in: path
          name: contactId
          schema:
            type: string
            example: contact_1234567890
          required: true
          description: Unique identifier of the contact
      responses:
        '200':
          description: Successfully retrieved contact details
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: contact_1234567890
                  chatSource:
                    type: string
                    nullable: true
                    example: website
                  email:
                    type: string
                    nullable: true
                    example: john@example.com
                  agentId:
                    type: string
                    example: clx1234567890abcdef
                  distinctId:
                    type: string
                    nullable: true
                    example: user_12345
                  name:
                    type: string
                    nullable: true
                    example: John Doe
                  phone:
                    type: string
                    nullable: true
                    example: '+1234567890'
                  threadId:
                    type: string
                    nullable: true
                    example: thread_12345
                  ip:
                    type: string
                    nullable: true
                    example: 192.168.1.1
                  country:
                    type: string
                    nullable: true
                    example: US
                  attributes:
                    type: array
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                          example: planType
                        value:
                          type: string
                          example: premium
                  createdAt:
                    type: string
                    format: date-time
                    example: '2024-01-15T10:30:00Z'
                  updatedAt:
                    type: string
                    format: date-time
                    example: '2024-01-20T14:45:00Z'
        '401':
          description: Unauthorized access
        '404':
          description: Contact not found
        '500':
          description: An internal server error occurred.
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````