Send message

Create and send a new message to a session, streaming the AI response.

post/session/{sessionID}/message

Path parameters

sessionIDstring required

Session ID

Query parameters

directorystring

Request body

messageIDstring
agentstring
noReplyboolean
toolsobject

@deprecated tools and permissions have been merged, you can set permissions on the session itself now

systemstring
variantstring
excludeHistoryboolean

Response

Created message

Changes

Changed in 12 of the 102 revisions of this API.914

    • added the optional property info/stuckAborted to the response with the 200 status

      response-optional-property-added

    • added the optional property info/stuckNudged to the response with the 200 status

      response-optional-property-added

    • added the optional property info/stepCapped to the response with the 200 status

      response-optional-property-added

    • added the new optional request property excludeHistory

      new-optional-request-property

    • removed the request property excludeHistory

      request-property-removed

    This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the new optional request property excludeHistory

      new-optional-request-property

    • removed the request property excludeHistory

      request-property-removed

    This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the new optional request property excludeHistory

      new-optional-request-property

    • added the new optional request property format

      new-optional-request-property

    • added the optional property info/structured to the response with the 200 status

      response-optional-property-added

    • added StructuredOutputError to the info/error response property anyOf list for the response status 200

      response-property-any-of-added

    • added the optional property info/tokens/total to the response with the 200 status

      response-optional-property-added

    • added the optional property parts/items/anyOf[StepFinishPart]/tokens/total to the response with the 200 status

      response-optional-property-added

    • added ContextOverflowError to the info/error response property anyOf list for the response status 200

      response-property-any-of-added