Ask Request
POST/ask
Interact with the WordLift Agent to process a message and receive an AI-driven response.
Request
- application/json
Body
required
message Message (string)required
model Model (string)
Default value: gpt-4o
security Security (boolean)
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
response Response (string)required
{
"response": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}