Lists messages from the specified personal-agent or custom-agent conversation, including the agent messages of the custom agents that the conversation started. Use this endpoint to retrieve replies after creating a thread or submitting a message. Returns not found if the thread is missing or the user cannot read it.
Authentication
AuthorizationBearerSend your token in the Authorization: Bearer <token> header. See Authentication for API keys and OAuth.
Path parameters
threadIdstringRequiredThe thread id.
Responses
200 OK
application/json
idstringOptionalThe id of the entity.
createdOnstringOptionalThe date this entity was created.
createdBystringOptionalThe id of the user who created this entity.
updatedOnstringOptionalThe date this entity was last modified.
updatedBystringOptionalThe id of the user who last modified this entity.
presetKeystring or nullOptionalThe live preset selected for this user message.
threadIdstringOptionalThe thread that owns the message.
parentThreadIdstring or nullOptionalThe parent thread for a delegated message.
rolestring or nullOptionalThe message author's role.
contentstring or nullOptionalThe user-visible message text.
clientMessageIdstring or nullOptionalThe client-generated idempotency key for a user message.
runtimeMessageIdstring or nullOptionalThe stable message reference used by the runtime provider.
modelstring or nullOptionalThe model that produced the message.
toolCallIdstring or nullOptionalThe provider tool-call identifier associated with the message.
temporaryFilesarray of object or nullOptionalThe temporary files attached to the message.
Show 5 properties
idstring or nullOptionalThe temporary file identifier. For agent output files, this is the sandbox path of the file.
namestring or nullOptionalThe display name.
mimeTypestring or nullOptionalThe file media type.
sandboxPathstring or nullOptionalThe canonical sandbox path assigned after file promotion.
downloadUrlstring or nullOptionalThe download URL, relative to the API base URL.
toolCallsarray of object or nullOptionalThe tool calls stored with this message.
Show 7 properties
idstring or nullOptionalThe provider tool call identifier.
toolNamestring or nullOptionalThe runtime tool that was called.
connectorIdstring or nullOptionalThe connector that supplied the tool, if applicable.
connectionIdstring or nullOptionalThe connector connection used by the tool, if applicable.
argumentsobject or nullOptionalThe structured arguments supplied to the tool.
Show schema
object or null
Additional properties
any
responsestring or nullOptionalThe serialized tool result.
chartBlockstring or nullOptionalThe serialized native chart block produced by code mode, when present.
reasoningarray of object or nullOptionalThe user-visible reasoning text stored with this message.
Show 2 properties
idstring or nullOptionalThe provider reasoning item id.
textstring or nullOptionalThe safe reasoning summary text.
agentIdstring or nullOptionalThe custom agent that produced the message, if applicable.
messageOrderintegerOptionalThe message order.
isStreamingbooleanOptionalWhether the message is still streaming.
streamCompletedbooleanOptionalThe stream completed.
traceIdstring or nullOptionalThe distributed trace that produced the message.
modelProviderstring or nullOptionalThe model provider selected for this message.
reasoningLevelstring or nullOptionalThe reasoning level selected for this message.
toolAccessobjectOptionalDescribes the tool access used for an agent message.
Show 4 properties
webSearchEnabledbooleanOptionalWhether web search was enabled.
aworkAccessEnabledbooleanOptionalWhether awork access was enabled.
googleGenAiAccessEnabledbooleanOptionalWhether Google image generation was enabled.
openAiImageGenerationAccessEnabledbooleanOptionalWhether OpenAI image generation was enabled.
connectorIdsarray of string or nullOptionalThe connector identifiers selected for this message.
connectorConnectionsarray of object or nullOptionalActing-user connection choices made by the requesting user for this message.
Show 2 properties
connectorIdstringOptionalThe connector identifier.
connectionIdstringOptionalThe connection identifier.
skillIdsarray of string or nullOptionalThe skill identifiers selected for this message.
404 Not Found
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.