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

# Get a contact

> The contact and its latest 20 events. Useful when checking an integration.



## OpenAPI

````yaml /openapi.yaml get /contacts/{userId}
openapi: 3.1.0
info:
  title: Frictionless Context API
  version: '1.0'
  description: >-
    Send who your customers are and what just happened to them, so agents see it
    beside the chat.
servers:
  - url: https://api.usefrictionless.com/api/v1
security:
  - apiKey: []
tags:
  - name: Contacts
  - name: Events
paths:
  /contacts/{userId}:
    parameters:
      - $ref: '#/components/parameters/userId'
    get:
      tags:
        - Contacts
      summary: Get a contact
      description: >-
        The contact and its latest 20 events. Useful when checking an
        integration.
      operationId: getContact
      responses:
        '200':
          description: The contact, its chat count and its latest events.
          content:
            application/json:
              schema:
                type: object
                properties:
                  contact:
                    $ref: '#/components/schemas/Contact'
                  linkedChats:
                    type: integer
                    example: 1
                  events:
                    type: array
                    items:
                      $ref: '#/components/schemas/StoredEvent'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PlanRequired'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    userId:
      name: userId
      in: path
      required: true
      description: 'Your own ID for this user. 1 to 128 letters, numbers or `_ . : @ + -`.'
      schema:
        type: string
        example: user_42
  schemas:
    Contact:
      type: object
      properties:
        userId:
          type: string
          example: user_42
        name:
          type:
            - string
            - 'null'
          example: Ada Obi
        email:
          type:
            - string
            - 'null'
          example: ada@example.com
        phone:
          type:
            - string
            - 'null'
          example: '+2348012345678'
        attributes:
          type: object
          additionalProperties: true
        createdAt:
          type: string
          format: date-time
          example: '2026-10-15T09:30:00Z'
        updatedAt:
          type: string
          format: date-time
          example: '2026-10-15T09:30:00Z'
    StoredEvent:
      type: object
      properties:
        id:
          type: string
        event:
          type: string
          example: Transfer failed
        properties:
          type: object
          additionalProperties: true
        level:
          type: string
          enum:
            - problem
            - info
        source:
          type: string
          enum:
            - server
            - website
          description: '"server" for the REST API, "website" for track() in the chat.'
        occurredAt:
          type: string
          format: date-time
          example: '2026-10-15T09:30:00Z'
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
              description: Says what to fix.
  responses:
    Unauthorized:
      description: '`missing_key` or `invalid_key`: no API key, or one that was rotated.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    PlanRequired:
      description: '`plan_required`: the Context API is on the Pro plan and above.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: '`contact_not_found`: no contact with this userId.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: '`rate_limited`: over 300 requests a minute. Wait and retry.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: Your API key (`fk_live_…`) from Settings → Developers.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.