Documentation Index
Fetch the complete documentation index at: https://mintlify.com/everruns/everruns/llms.txt
Use this file to discover all available pages before exploring further.
POST /v1/sessions//messages
Create a new message in a session. This triggers the agent workflow execution.Path Parameters
The unique identifier of the session
Request Body
The message object to create
Array of content parts. Each part can be text or an image file.Text content part:Image content part:
Optional control parameters for the message
Maximum tokens to generate in response
Optional arbitrary metadata for the message
Response
Returns the created message object with generated ID and timestamp.Message identifier (UUID v7)
Message role:
user, agent, or toolArray of content parts
Control parameters (if provided)
Message metadata (if provided)
ISO 8601 timestamp
Example Request
Example with Image
Example Response
Workflow Execution
Creating a message triggers the agent workflow:- Message Storage: The user message is persisted and an
input.messageevent is emitted - Turn Execution: A new turn begins with
turn.startedevent - Session Activation:
session.activatedevent signals the session is active - Agent Processing: The agent processes the message through its reasoning and action loop
- Response: Agent emits
output.message.started,output.message.delta(streaming), andoutput.message.completedevents - Session Idle:
session.idledevent signals turn completion
Event Streaming
To receive real-time updates during workflow execution, connect to the SSE endpoint before sending the message:Error Responses
Error message
HTTP status code
Common Errors
- 400 Bad Request: Invalid message format or missing required fields
- 404 Not Found: Session does not exist
- 422 Unprocessable Entity: Message validation failed
- 500 Internal Server Error: Server error during processing