Skip to main content
POST
Send a message to the granted deployment and stream the answer

Authorizations

x-paygent-connect-app-key
string
header
required

A Connect app key (pgc_app_…), identifying the registered third-party app. Always presented together with connectGrant — the pair is one credential, and either half alone is refused. Accepted on the /connect/* surface only.

x-paygent-connect-grant
string
header
required

A Connect grant token (pgc_grant_…): one user's consent for the presenting app to reach one deployment. Every failure mode — missing, malformed, revoked, expired, or paired with the wrong app key — answers the same 401 invalid_connect_credentials.

Body

application/json
userInput
string
required
Minimum string length: 1
sessionId
string | null

Reuse across turns to thread conversation history.

sessionOwnerLabel
string | null

Display name for the end user; defaults to the caller's email.

sessionAttributes
object | null

Extra per-call attributes merged into the ones derived from the stored configuration. Configuration wins on a key collision, so a caller cannot override a stored bank token from the request body.

analysisMode
enum<string> | null
Available options:
fast,
deep

Response

The customer's agent's event stream

The response is of type string.