Skip to main content

End session

POST 

/rest/v1/:organisationId/:environmentId/agents/:agentId/sessions/:sessionId/end

Mark the session complete and return it under data.session. Every body field is optional, but a body is required, so send {} to end the session without a summary or score. endedAt is in Unix seconds and defaults to now. Requires the agentic-runtime-service:session:update scope.

Request​