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

# Search Clerk Chat Users

> Adds a new user to the Clerk chat system



## OpenAPI

````yaml /swagger.yml get /public/admin/users
openapi: 3.0.0
info:
  title: Public API Docs
  description: Clerk Public API
  version: '1.0'
  contact: {}
servers:
  - url: https://web-api.clerk.chat
    description: Production server
  - url: http://localhost:3000
    description: Production server
security: []
tags: []
paths:
  /public/admin/users:
    get:
      tags:
        - Admin
      summary: Search Clerk Chat Users
      description: Adds a new user to the Clerk chat system
      operationId: PublicAdminController_searchClerkChatUsers
      parameters:
        - name: emails
          in: query
          required: false
          description: Email of the user to search
          schema:
            type: array
            description: Emails to search for
            items:
              type: string
            example:
              - '+1415456789'
      responses:
        '201':
          description: The created Clerk chat user
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedClerkChatUsersResponse'
        '400':
          description: Invalid request body
        '401':
          description: Unauthorized request
        '403':
          description: You do not have permission to access this resource
        '404':
          description: Resource not found
        '422':
          description: Invalid request parameters
        '429':
          description: Too many requests for this resource
        '500':
          description: Internal server error
      security:
        - api_key: []
components:
  schemas:
    PaginatedClerkChatUsersResponse:
      type: object
      required:
        - data
        - total
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/ClerkChatUserResponse'
        links:
          type: object
          properties:
            next:
              type: string
              description: The URL for the next page
            prev:
              type: string
              description: The URL for the previous page
            self:
              type: string
              description: The URL for the current page
        total:
          type: number
          description: The total number of users
          example: 1
    ClerkChatUserResponse:
      type: object
      description: Response containing Clerk chat user information
      properties:
        id:
          type: string
          description: The ID of the created user
        email:
          type: string
          description: The email of the created user
        firstName:
          type: string
          description: The first name of the created user
        lastName:
          type: string
          description: The first name of the created user
        role:
          type: string
          description: The role of the created user
      required:
        - id
        - email
        - name
        - role
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: apiKey

````