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

# Suggest values for company and location filters

> Resolves free-text input to canonical company-filter values; two characters minimum. `field=company` returns company names with their `domain` when known — send `name` to `nameLike`, or `domain` to `domains`; add `orgType=investor` to search investors instead, whose `domain` is the value the `investors` filter takes. `field=location` returns fully qualified place names ("Dallas, Texas, United States") which are exactly what the `headquartersCity` filter takes — the qualification is what lets the geocoder tell six same-named cities apart, so send the whole string. Note that `officeLocationsV2` is a different filter and takes country `apiCode`s from GET /companies/filter-options, not these place names. Same vocabulary as the product's type-ahead; free.

Errors:
- `422` `VALIDATION_FAILED` — The request failed the declared schema; `param` names the offending key and `message` quotes the rule it broke.
- `429` `RATE_LIMITED` — Per-token rate limit for this bucket exhausted; retry after the window in the RateLimit-Reset header.
- `500` `UNEXPECTED_ERROR` — The request failed inside the service; nothing was billed and the request_id identifies the failure.

Requires one of the following token scopes: companies.



## OpenAPI

````yaml /openapi.json get /business/companies/autocomplete
openapi: 3.1.0
info:
  title: Fuse Business API
  version: 1.0.0
  description: >-
    External API for lists, campaigns, prospect search and contacts.
    Authenticate with your API token as HTTP Basic. All paths are under /api/v1.
servers:
  - url: https://api.tryfuse.ai/api/v1
    description: Production
security:
  - basicAuth: []
tags:
  - name: Lists
  - name: Custom columns
  - name: Smart columns
  - name: Exports
  - name: Campaigns
  - name: Knowledge hubs
  - name: Analytics
  - name: Website intent
  - name: Account
  - name: Prospect search
  - name: Campaign steps
  - name: Scheduled sends
  - name: Campaign templates
  - name: Agents
  - name: Research
  - name: Company search
  - name: Saved searches
  - name: Folders
  - name: Contacts
paths:
  /business/companies/autocomplete:
    get:
      tags:
        - Company search
      summary: Suggest values for company and location filters
      description: >-
        Resolves free-text input to canonical company-filter values; two
        characters minimum. `field=company` returns company names with their
        `domain` when known — send `name` to `nameLike`, or `domain` to
        `domains`; add `orgType=investor` to search investors instead, whose
        `domain` is the value the `investors` filter takes. `field=location`
        returns fully qualified place names ("Dallas, Texas, United States")
        which are exactly what the `headquartersCity` filter takes — the
        qualification is what lets the geocoder tell six same-named cities
        apart, so send the whole string. Note that `officeLocationsV2` is a
        different filter and takes country `apiCode`s from GET
        /companies/filter-options, not these place names. Same vocabulary as the
        product's type-ahead; free.


        Errors:

        - `422` `VALIDATION_FAILED` — The request failed the declared schema;
        `param` names the offending key and `message` quotes the rule it broke.

        - `429` `RATE_LIMITED` — Per-token rate limit for this bucket exhausted;
        retry after the window in the RateLimit-Reset header.

        - `500` `UNEXPECTED_ERROR` — The request failed inside the service;
        nothing was billed and the request_id identifies the failure.


        Requires one of the following token scopes: companies.
      operationId: autocompleteCompanySearchField
      parameters:
        - name: field
          in: query
          required: true
          description: >-
            `company` suggests company names (each with its `domain` when
            known); `location` suggests fully qualified place names (e.g.
            Dallas, Texas, United States) to send as `headquartersCity` values.
          schema:
            type: string
            enum:
              - company
              - location
            description: >-
              `company` suggests company names (each with its `domain` when
              known); `location` suggests fully qualified place names (e.g.
              Dallas, Texas, United States) to send as `headquartersCity`
              values.
        - name: q
          in: query
          required: true
          description: Text fragment to complete (2-200 chars).
          schema:
            type: string
            minLength: 2
            maxLength: 200
            description: Text fragment to complete (2-200 chars).
        - name: orgType
          in: query
          required: false
          description: >-
            `investor` narrows `field=company` to investors, for the `investors`
            filter; not allowed with `field=location`.
          schema:
            type: string
            enum:
              - investor
            description: >-
              `investor` narrows `field=company` to investors, for the
              `investors` filter; not allowed with `field=location`.
      responses:
        '200':
          description: Success
          headers:
            RateLimit-Limit:
              schema:
                type: integer
              description: Requests permitted in the current window.
            RateLimit-Remaining:
              schema:
                type: integer
              description: Requests remaining in the current window.
            RateLimit-Reset:
              schema:
                type: integer
              description: Seconds until the current window resets.
          content:
            application/json:
              schema:
                type: object
                required:
                  - field
                  - suggestions
                properties:
                  field:
                    type: string
                    enum:
                      - company
                      - location
                    description: Echo of the requested field.
                  suggestions:
                    type: array
                    items:
                      type: object
                      required:
                        - name
                      properties:
                        name:
                          type: string
                          description: >-
                            For `field=company` the company name; for
                            `field=location` the fully qualified place name to
                            send as a `headquartersCity` value.
                        domain:
                          type: string
                          description: >-
                            `field=company` only, and only when the provider has
                            one.
              example:
                field: company
                suggestions:
                  - name: BrightPay
                    domain: brightpay.in
                  - name: BrightPay
                  - name: BrightPay Health Corp.
                    domain: brightpay.org
                  - name: BrightPay Technologies Ltd.
                  - name: BRIGHT PAYROLL LIMITED
                    domain: brightstarpayroll.co.uk
                  - name: BRIGHT PAY LIMITED
                  - name: Bright Payroll Solutions Limited
                    domain: brightps.co.uk
        '400':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - basicAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            param:
              type:
                - string
                - 'null'
            doc_url:
              type:
                - string
                - 'null'
            request_id:
              type:
                - string
                - 'null'
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: >-
        Your API token (`af_…`) as the Basic-auth username, with an empty
        password.

````