---
title: "POST /v1/projects/{projectsId}/locations/{locationsId}/reasoningEngines/{reasoningEnginesId}:query"
method: POST
path: "/v1/projects/{projectsId}/locations/{locationsId}/reasoningEngines/{reasoningEnginesId}:query"
tags: ["projects"]
---

# POST /v1/projects/{projectsId}/locations/{locationsId}/reasoningEngines/{reasoningEnginesId}:query

`POST /v1/projects/{projectsId}/locations/{locationsId}/reasoningEngines/{reasoningEnginesId}:query`

## Request

- Base URL: `https://aiplatform.googleapis.com`
- URL: `https://aiplatform.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/reasoningEngines/{reasoningEnginesId}:query`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Queries using a reasoning engine.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `reasoningEnginesId` string, required

## Request body

- GoogleCloudAiplatformV1QueryReasoningEngineRequest: Request message for ReasoningEngineExecutionService.QueryReasoningEngine.
  - `classMethod` string: Optional. Class method to be used for the query. It is optional and defaults to "query" if unspecified.
  - `input` object: Optional. Input content provided by users in JSON object format. Examples include text query, function calling parameters, media bytes, etc.

## Response `200`

Successful response

- GoogleCloudAiplatformV1QueryReasoningEngineResponse: Response message for ReasoningEngineExecutionService.QueryReasoningEngine.
  - `output` unknown

---

[API](https://skmtc.dev/google/apis/aiplatform.md) - [All operations](https://skmtc.dev/google/apis/aiplatform/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/aiplatform/revisions/3aca3b348f0c?raw)
