v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13214471.4 KB
projects

Generates a GraphQL query based on a natural language prompt and the provided schema context. This is a stateless method; the schema is provided per request to support local development states. Streams results with real-time status and output chunks.

post/v1/{+name}:generateQuery

Path parameters

namestring required

Required. The resource name of the service in which to generate the query. Format: projects/{project}/locations/{location}/services/{service}

Request body

promptstring

Required. The natural language description of the desired query. Example: "Find all users who signed up in the last 7 days."

Response

Successful response