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

# Retrieve A User

> Retrieves a user object.




## OpenAPI

````yaml get /v2/users/{id}
openapi: 3.0.0
info:
  title: Users API
  version: 1.0.0
  description: |
    API for managing users. Users connect their payroll accounts using Link.
servers:
  - url: https://api-sandbox.argyle.com
    description: Sandbox
  - url: https://api.argyle.com
    description: Production
security:
  - basicAuth: []
paths:
  /v2/users/{id}:
    get:
      summary: Retrieve a user
      description: Retrieves a user object.
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
            format: uuid
          description: ID of the user object to be retrieved.
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
components:
  schemas:
    User:
      type: object
      example:
        id: 018051aa-f7a9-a0db-2f38-6cfa325e9d69
        created_at: '2023-01-30T22:25:38.971Z'
        items_connected:
          - item_123456789
          - item_987654321
        employers_connected:
          - Whole Goods
          - Bullseye
        external_metadata:
          notes: Moved to stage 2 of loan approval.
          category: Summer Initiative
        external_id: July_Connection
        first_name: Sarah
        last_name: Longfield
        email: sarah@email.com
        phone_number: '+12125555555'
        ssn: 522-09-1191
        address:
          city: New York
          line1: 852 North W St
          line2: Apt 221
          state: NY
          country: US
          postal_code: '10014'
        birth_date:
          year: 1980
          month: 10
          day: 30
      properties:
        id:
          type: string
          format: uuid
          description: Unique ID of the user.
          example: 018051aa-f7a9-a0db-2f38-6cfa325e9d69
        created_at:
          type: string
          format: date-time
          description: Timestamp (ISO 8601) when the user object was created.
          example: '2023-01-30T22:25:38.971Z'
        items_connected:
          type: array
          items:
            type: string
          description: >-
            Items the user has connected through Link. Typically employers or
            payroll platforms.
          example:
            - item_123456789
            - item_987654321
        employers_connected:
          type: array
          items:
            type: string
          description: Individual employers associated with the connected Items.
          example:
            - Whole Goods
            - Bullseye
        external_metadata:
          type: object
          description: >
            Free-text field where additional context for the user can be added.

            - Can be any valid JSON, such as a string or object.


            **Note:** Using `external_id` (see below) is recommended when the
            ability to filter users by an external value is needed.
          properties:
            broker:
              $ref: '#/components/schemas/Broker'
          example:
            notes: Moved to stage 2 of loan approval.
            category: Summer Initiative
        external_id:
          type: string
          description: >
            Free-text field where [additional
            context](/overview/data-structure/users#external-identifiers) for
            the user can be added.

            - Can be any string of 100 characters or less.

            - Multiple users can have the same `external_id`.


            Often used to group users, or associate your internal ID's to users.

            - Can be attached to
            [invites](/console/flows/email-sms-templates#inviting-new-users) or
            [shareable URLs](/console/flows/shareable-urls#customizations).

            - Can be used as a query parameter when [listing
            users](/api-reference/users#list). (Only exact matches are
            supported)

            - Can be used to search for specific users within the
            [Connections](https://console.argyle.com/connections) section of
            Console.

            - Will appear on billing CSVs if associated with a user.
          example: July_Connection
        first_name:
          type: string
          description: First name of the user.
          example: Sarah
        last_name:
          type: string
          description: Last name of the user.
          example: Longfield
        email:
          type: string
          description: Email of the user.
          example: sarah@email.com
        phone_number:
          type: string
          description: Phone number of the user. E.164 international format.
          example: '+12125555555'
        ssn:
          type: string
          description: Social Security number of the user.
          example: 522-09-1191
        address:
          type: object
          description: Address of the user.
          properties:
            city:
              type: string
              description: Name of the city, town, district, or similar regional entity.
              example: New York
            line1:
              type: string
              description: Address-Line 1, usually street address or P.O. Box information.
              example: 852 North W St
            line2:
              type: string
              description: Address-Line 2, usually the apartment or unit number.
              example: Apt 221
            state:
              type: string
              description: State, county, province, region, or equivalent.
              example: NY
            country:
              type: string
              description: Two-letter country code (ISO 3166-1 alpha-2 format).
              example: US
            postal_code:
              type: string
              description: Zip code, or equivalent.
              example: '10014'
        birth_date:
          type: object
          description: Date of birth of the user.
          properties:
            year:
              type: integer
              description: Birth year (1900 or later).
              example: 1980
            month:
              type: integer
              description: Birth month (between 1 and 12).
              example: 10
            day:
              type: integer
              description: Birth day (between 1 and 31).
              example: 30
    Broker:
      type: object
      description: >
        **Note:** Only for wholesale mortgage integrations.


        Contains information about the user's mortgage broker for
        [broker-branded invites](/verifications/wholesale-mortgage).
      properties:
        name:
          type: string
          description: Name of the mortgage broker.
        company_name:
          type: string
          nullable: true
          description: >-
            Name of the mortgage broker's company. Used by the
            `[Broker_company]` variable in [wholesale email/SMS
            templates](/console/flows/email-sms-templates#wholesale-mortgage-templates).
        phone_number:
          type: string
          description: >-
            Phone number of the mortgage broker.
            [E.164](https://en.wikipedia.org/wiki/E.164) international format.
        email:
          type: string
          description: Email address of the mortgage broker.
        nmls:
          type: string
          description: NMLS ID of the mortgage broker.
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: Username = api_key_id, Password = api_key_secret

````