The Smart populate API (/prefill/businesses) returns real-time data about a business that you can use to pre-fill fields during the onboarding process. This synchronous API provides instant responses with business names, addresses, people, entity type, TIN, website, and industry classifications.
POST /v1/prefill/businesses endpoint. If the user selected a result from Autocomplete, pass the autocomplete_result_id for consistent business resolution.To search for a business, provide one of:
autocomplete_result_id from a previous Autocomplete API response (recommended when the user selected a result from autocomplete), ORnames and addresses, ORtinIf you provide autocomplete_result_id, the API performs a direct lookup using the selected identity. If you provide names, addresses, and TIN together, the API only searches by names and addresses.
Send a POST request to the prefill endpoint with the business name and address:
A successful request returns a 200 OK with business data in the response body:
null if no business is found.Map the returned data to the appropriate fields in your onboarding forms:
names for the business name fieldaddresses for address fieldsformation.entity_type for entity type selectionpeople to pre-populate owner or officer fieldstin.last_four to verify TIN inputMethod: POST
URL: https://api.middesk.com/v1/prefill/businesses
Headers: Include the API key in the Authorization header using Bearer authorization