Autocomplete business names and addresses
The Business Identities Autocomplete API returns real-time, structured autocomplete suggestions based on partial business names. Use it to help users quickly find and select their business during onboarding.
End-to-end flow
- A user types a partial business name in your application (for example, “dunder”).
- Your frontend sends a request to Middesk’s
POST /v1/identities/autocompleteendpoint using a Publishable API key. - Middesk returns a list of structured business identity suggestions including names, addresses, people, and entity type.
- Your frontend renders the results in the user’s UI.
- Once a user selects the correct business, send a Smart populate request or Business enrichment Order request to Middesk to retrieve additional business attributes.
Security requirements
To ensure the integrity and appropriate use of this API:
- Publishable API key authentication: Each request must include a Middesk Publishable API key via the
Authorization: Bearerheader. - KYC enforcement: Perform KYC checks prior to querying Middesk when possible.
- Abuse prevention: Prevent automated abuse or excessive velocity and volume (for example, bots or scraping).
Integrate the Autocomplete API
Locate your Publishable API key
Publishable API keys are available in the Middesk Dashboard:
- Use the Publishable Test API Key for sandbox testing
- Use the Publishable Live API Key for Production
Include the Publishable API key in the Authorization header using Bearer authorization:
Make an autocomplete request
Send a POST request to the autocomplete endpoint with the business name and optional address or entity type:
A successful request returns a 200 OK with a list of business identity suggestions in the response body.
Send a follow-up request for additional data
Once a user selects a business from the autocomplete results, retrieve additional business attributes to pre-populate onboarding fields:
- Use Smart populate for a synchronous response
- Use Business enrichment Orders for higher coverage on attributes like web analysis and industry classification
Latency benchmarks
Performance is monitored, and alerts trigger if p95 latency exceeds 300ms over sustained periods.
API reference
Method: POST
URL: https://api.middesk.com/v1/identities/autocomplete
Headers: Include the API key in the Authorization header using Bearer authorization