Skip to main content
POST
/
tools
/
question-prompts
/
Predictive Prompt
curl --request POST \
  --url https://api.{environment}.corti.app/v2/tools/question-prompts/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Tenant-Name: <tenant-name>' \
  --data '{
  "context": [
    "<string>"
  ],
  "query": "<string>"
}'
{
  "prompts": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Input your token

Headers

Tenant-Name
string
required

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

Returns an array of suggested questions.

prompts
string[]

An array of suggested questions.

I