The Autocomplete endpoint supports the nearly all of the same options as the search endpoint, but performs prefix matches on fields rather than token matching. See the Searching documentation for details on search options.
Note: The search-related API endpoints accept both the GET and POST verbs in order to accommodate HTTP clients that do not allow request bodies to be sent with GET requests. If your client will not send a request body on GET, then simply POST the request instead and the API will respond identically.
Autocomplete within an Engine (across all Document_types)
Autocomplete within a Document_Type
Enginefor the prefix query "act"
curl -X GET 'https://search-api.swiftype.com/api/v1/engines/bookstore/suggest?q=act&auth_token=YOUR_API_KEY'
curl -X GET 'https://search-api.swiftype.com/api/v1/engines/bookstore/document_types/books/suggest?q=action&auth_token=YOUR_API_KEY'