---
title: "Resolve a user query"
method: POST
path: "/ai/resolve"
tags: ["AI"]
---

# Resolve a user query

`POST /ai/resolve`

## Request

- Base URL: `https://api.morningconsult.com/v1`
- URL: `https://api.morningconsult.com/v1/ai/resolve`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/morningconsult/apis/morning-consult-api/docs/ai/resolve/post.ts> (a function with typed inputs; its response is checked against the schema)

Given a query about Morning Consult's syndicated public opinion data sets, pull data from respondent interviews and produce a summary of the data. The query should be a standalone question, as conversation history is not preserved between calls to the endpoint.
Responses will typically take around 10 seconds, with more complex queries taking upwards of 20 seconds.

## Request body

- PostAIResolveInput
  - `text` string, required: Query text.

## Response `200`

The response for resolving a query to a summary.

- object
  - `summary` string, required: A summary of the data used to answer a query.

## Other responses

- `400`: Bad Request
- `500`: Internal Server Error

---

[API](https://skmtc.dev/morningconsult/apis/morning-consult-api.md) - [All operations](https://skmtc.dev/morningconsult/apis/morning-consult-api/llms.txt) - [OpenAPI document](https://skmtc.dev/morningconsult/apis/morning-consult-api/revisions/70d621a9c59c?raw)
