Skip to main content
POST
Generate next user message

Authorizations

Authorization
string
header
required

API key authorization. Pass your API key in the Authorization header as a Bearer token. Both new (gsk_*) and legacy (gsk-) API keys are accepted, e.g. Authorization: Bearer gsk_... or Authorization: Bearer gsk-....

Body

application/json
scenario
string
Example:

"Customer support"

turns
object[]

Response

Next user message generated successfully

message
string

The generated next user message