---
title: "Execute NLP query against a dataset"
method: POST
path: "/api/2.0/nlp/{objectId}/run"
tags: ["Natural Language Processing Management API"]
---

# Execute NLP query against a dataset

`POST /api/2.0/nlp/{objectId}/run`

## Request

- Base URL: `https://app.agenticbi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.agenticbi.com/api/2.0/nlp/{objectId}/run`
- Auth: HTTP bearer

## Path parameters

- `objectId` integer, required

## Request body

- NlpQuery: NLP query.
  - `query` string: Query string.

## Response `200`

Success

- NlpData: Data from an NLP query
  - `datasetId` integer: Dataset id for the matching dataset from the NLP query.
  - `datasetName` string: Dataset id for the matching dataset from the NLP query.
  - `data` object[]

## Other responses

- `400`: Bad request
- `401`: User is not authenticated
- `403`: User is not allowed to access this resource
- `500`: Error during processing

---

[API](https://skmtc.dev/agenticbi/apis/user-management-api.md) · [All operations](https://skmtc.dev/agenticbi/apis/user-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agenticbi/apis/user-management-api/revisions/62c42a99830e?raw)
