POST
/
tools
/
question-prompts
curl --request POST \
  --url https://api.{environment}.corti.app/v2/tools/question-prompts \
  --header 'Content-Type: application/json' \
  --data '{
  "context": [
    "<string>"
  ],
  "query": "<string>"
}'
{
  "prompts": [
    "<string>"
  ]
}

Headers

Tenant-Name
string

Identifies a distinct entity within Corti's multi-tenant system. Ensures correct routing and authentication of the request.

Example:

"copiloteu"

Body

application/json
context
string[]
required

The context in which the query is being made.

query
string

The query for which the questions are being generated (optional).

Response

200
application/json
Returns an array of suggested questions.
prompts
string[]

An array of suggested questions.