Generate a completion from a DumplingAI agent with streaming or sync support.
application/json<API_KEY> (required)messages: An array of message objects, each containing:
role: Either “user” or “assistant”content: The content of the messageagentId: The unique identifier of the agent to use for processingparseJson: Whether to try and parse the JSON in the response into a JSON objectthreadId: (Optional) The ID of an existing thread to continue the conversationBearer authentication header of the form Bearer <token>, where <token> is your auth token.
Parameters required to request an agent completion.
Identifier of the agent to run.
Ordered conversation history sent to the agent.
Optional thread identifier for continuing a previous conversation.
When true, attempt to parse the final response as JSON.
Optional identifier describing where the API request originated.
API, WEB, MAKE_DOT_COM, ZAPIER, N8N, PLAYGROUND, DEFAULT_AUTOMATION, AGENT_PREVIEW, AGENT_LIVE, AUTOPILOT, STUDIO Agent completion returned.
Flexible JSON structure; fields differ per endpoint.