---
title: "Get suggestions with matching datasets for an NLP query"
method: POST
path: "/api/2.0/nlp/suggestions"
tags: ["Natural Language Processing Management API"]
---

# Get suggestions with matching datasets for an NLP query

`POST /api/2.0/nlp/suggestions`

## Request body

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

## Response `200`

Success

- NlpSuggestion[]
  - `datasetId` integer — Dataset ID.
  - `datasetName` string — Dataset name.
  - `query` string — Complete search term suggestion match.
  - `distance` number, double — Distance.

## 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.net/knowi/apis/user-management-api.md) · [All operations](https://skmtc.net/knowi/apis/user-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/knowi/user-management-api/revisions/6e6982573ba6/schema)
