List Messages For Step

List messages for a given step.

Path parameters

step_idstringRequired

Headers

AuthorizationstringRequired

Header authentication of the form Bearer <token>

Query parameters

beforestring or nullOptional
Message ID cursor for pagination. Returns messages that come before this message ID in the specified sort order
afterstring or nullOptional
Message ID cursor for pagination. Returns messages that come after this message ID in the specified sort order
limitinteger or nullOptionalDefaults to 100
Maximum number of messages to return
orderenumOptionalDefaults to asc
Sort order for messages by creation time. 'asc' for oldest first, 'desc' for newest first
Allowed values:
order_by"created_at"OptionalDefaults to created_at
Sort by field

Response

Successful Response
SystemMessageobject
OR
UserMessageobject
OR
ReasoningMessageobject
OR
HiddenReasoningMessageobject
OR
ToolCallMessageobject
OR
ToolReturnMessageobject
OR
AssistantMessageobject
OR
ApprovalRequestMessageobject
OR
ApprovalResponseMessageobject

Errors