Create Completion
Create a completion for the specified agent.
- Normal completion request: User message -> Agent response
- Tool approval response: User approval -> Execute tool -> Agent response
- Request 1: User sends message -> Agent requests tool call -> Return approval request
- Request 2: User approves -> Execute tool -> Agent continues with result.
searchAuthorizations
Your Algolia application ID.
Your Algolia API key with the necessary permissions to make the request. Permissions are controlled through access control lists (ACL) and access restrictions. The required ACL to make a request is listed in each endpoint's reference.
Headers
The X-Algolia-Secure-User-Token.
Path Parameters
The agentId.
Query Parameters
Compatibility mode for the completion API. Support Compatibility modes for the completion API.
ai-sdk-4, ai-sdk-5 Set to false to skip analytics for this completion (default: true). Disables Agent Studio BigQuery analytics, Algolia search analytics, click analytics, and query-suggestions training. Useful for offline-eval workflows.
Use cached responses if available.
Set to false to disable memory (enabled by default).
Whether to stream the response or not.
Body
Request model for creating a completion for an assistant.
Dynamic configuration for testing agents.
Optional conversation id.
128- userMessageV4
- assistantMessageV4
Approval decisions for pending tool calls keyed by toolCallId.
Response
Successful Response.
The response is of type object.