curl --request GET \
--url https://apigcp.trynia.ai/v2/oracle/sessions/{session_id}/messages \
--header 'Authorization: Bearer <token>'{
"session_id": "<string>",
"messages": [
{
"role": "user",
"content": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"is_original": true,
"message_id": "<string>",
"citations": [
{
"source_id": 123,
"tool": "<string>",
"args": {},
"summary": "<string>"
}
]
}
],
"total": 123
}Get chat messages for an Oracle research session, including the original query/report and follow-up messages.
curl --request GET \
--url https://apigcp.trynia.ai/v2/oracle/sessions/{session_id}/messages \
--header 'Authorization: Bearer <token>'{
"session_id": "<string>",
"messages": [
{
"role": "user",
"content": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"is_original": true,
"message_id": "<string>",
"citations": [
{
"source_id": 123,
"tool": "<string>",
"args": {},
"summary": "<string>"
}
]
}
],
"total": 123
}API key must be provided in the Authorization header
Session ID to retrieve messages for
Maximum number of stored messages to include
1 <= x <= 500Was this page helpful?