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

# Autocomplete search by identifier

> Search for users by identifier (email or phone) within the current app



## OpenAPI

````yaml /swagger.json get /v1/verify/{app_id}/autocomplete
openapi: 3.0.1
info:
  title: Scute API
  version: v1
  description: API for managing users in Scute applications
servers:
  - url: https://{defaultHost}
    variables:
      defaultHost:
        default: api.scute.io
  - url: http://localhost:3333
    description: Development server
security:
  - apiSecret: []
    userAccess: []
paths:
  /v1/verify/{app_id}/autocomplete:
    parameters:
      - name: app_id
        in: path
        description: Application ID
        required: true
        schema:
          type: string
    get:
      tags:
        - Verification
      summary: Autocomplete search by identifier
      description: Search for users by identifier (email or phone) within the current app
      operationId: searchUsersAutocomplete
      parameters:
        - name: query
          in: query
          required: true
          description: Search query (partial email or phone, minimum 2 characters)
          schema:
            type: string
        - name: limit
          in: query
          required: false
          description: 'Maximum number of results (default: 10, max: 50)'
          schema:
            type: integer
      responses:
        '200':
          description: successful
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: App user ID
                        type:
                          type: string
                          enum:
                            - email
                            - phone
                          description: Identifier type that matched
                        value:
                          type: string
                          description: Matched identifier value
                        verified:
                          type: boolean
                          description: Whether the identifier is verified
                        last_verified_at:
                          type: string
                          format: date-time
                          nullable: true
                          description: Last verification timestamp
                        user:
                          type: object
                          properties:
                            id:
                              type: string
                              description: User ID
                            name:
                              type: string
                              description: User name
                            email:
                              type: string
                              format: email
                              description: User email
                            phone:
                              type: string
                              description: User phone number
                            status:
                              type: string
                              description: User status in app
                            created_at:
                              type: string
                              format: date-time
                              description: User creation timestamp
                  query:
                    type: string
                    description: Search query used
                  count:
                    type: integer
                    description: Number of results returned
        '400':
          description: bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message
                  error_code:
                    type: string
                    description: Error code
        '401':
          description: unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message
        '500':
          description: internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message
                  error_code:
                    type: string
                    description: Error code
      security:
        - apiSecret: []
          userAccess: []
components:
  securitySchemes:
    apiSecret:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: API Secret token
    userAccess:
      type: apiKey
      name: X-Authorization
      in: header
      description: User Access token

````