Get completions
Returns prefix-guaranteed inline autocomplete completions for query inputs. Use this for ghost text while a user is typing. Every returned text starts with the requested prefix case-insensitively.
suggestions, which
returns follow-up prompts after a query is submitted.prefix. Abort in-flight requests when the prefix changes. Use the returned
suffix to render ghost text after the user’s typed text.
Pass previous_completions when you want to avoid repeating completions already
shown to the user. When is_private_session is true, the API returns an empty
completion set.Body
User-typed prefix. Internal whitespace runs are normalized server-side.
"How is"
"a1c2d3e4-1111-2222-3333-444455556666"
"YOUR_COMPANY"
Runtime package pointer. Omit this field or use published for production traffic. Use unpublished only when testing an unpublished runtime package.
published, unpublished Maximum number of completions to return. Capped at 10.
0 <= x <= 105
Exact completions to exclude from results.
["How is pricing structured?"]"1f7c5f74-7b9e-4a0a-9b7d-4e3e2a5e3b60"
When true, returns an empty completion set.