Skip to navigation

Send message

Sends a message to ChrtGPT and streams its reply, starting a new conversation when no conversation_id is given. In the background, retitles the conversation after each of its first 3 turns and updates its summary and order identifiers after every turn. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | (ChrtGPTReq) -> (stream[ChrtGPTEvent])

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
messagestringRequired1-272000 characters

Can’t start with <speech>, <object_upload>, which mark what was said on a voice call and uploaded files.

conversation_idstring or nullOptional
Omit to start a new conversation.
reasoning_effortenumOptionalDefaults to low
How much ChrtGPT reasons before answering this message. Higher is slower and more thorough.
Allowed values:
verbosityenumOptionalDefaults to low
How long and detailed ChrtGPT's reply is.
Allowed values:

Response

Successful Response
completedobject
Last event of a successful stream.
OR
errorobject
Last event of a failed stream.
OR
startedobject
First event of every stream.
OR
text_deltaobject
OR
tool_calledobject

ChrtGPT called a chrt-mcp tool; its tool_output event follows.

OR
tool_outputobject
OR

Errors

422
Unprocessable Entity Error