Grounded Responses API Reference
Responses API requests grounded in your Data Engine content, with citations.
Guide: Grounded Responses
Error Reference: Grounded Responses
Authorizations
Bearer authentication header of the form Bearer <api-key>, where <api-key> is your API key.
Body
Responses API request body extended with retrieval-augmented generation: retrieved publisher content is injected into the prompt before the model is called. Takes the same grounding parameters as the grounded Chat Completions endpoint.
Maximum output, in tokens. On a reasoning model it holds the reasoning as well as the answer, and it is sent as you set it, so leave room for both. With no value, most reasoning models get their full output allowance (up to 65,536). A response that reached the limit has status: "incomplete". See Set your output limit for reasoning models.
Response
Successful grounded Responses API result. If stream is false or omitted, the response is JSON and includes sources_returned. If stream=true, the response is a named Server-Sent Events stream and X-Sources-Returned reports whether retrieval returned sources.
A non-streaming grounded Responses API result.
Items generated by the model, such as assistant messages, images, function calls, or reasoning summaries.
An assistant message produced by the model.
- Message
- Image Generation
- Function Call
- Reasoning
Parameters that were ignored or not applied as sent. The request still succeeds. Entries are name=value: sampling parameters the selected model does not accept and, on Direct Responses, reasoning removed from input (input.reasoning=<n> reasoning items, input.reasoning_paired=<n> other items removed with them) and stateful parameters that have no effect (previous_response_id, conversation, store=True, background=True). On a stream, the parameter names are in the X-Ignored-Params header instead.
What happened to the reasoning items in the request's input. Present only when input contained at least one reasoning item, or the request asked for include: ["reasoning.encrypted_content"]; otherwise absent. Gloo does not carry reasoning from one request to the next: reasoning state sent back in input is removed before any model is called, and the request still succeeds. Returned by the guarded Responses and Grounded Responses endpoints. On a stream, the counts are in the X-Gloo-Reasoning-Carryover header and this object is a top-level field of the final response.completed or response.incomplete event's data; a stream that fails before either event ends without it. Direct Responses does not return this object or the header: it reports removed reasoning as input.reasoning=<n> and input.reasoning_paired=<n> in ignored_params (X-Ignored-Params on a stream).

