My App
API ReferenceMessages

List Messages

Browse messages across all conversations.

Find specific messages by filtering on role, time range, or hallucination status. Use has_hallucination=true to quickly find flagged messages.

Embedding options:

  • embed=(evaluations) — include hallucination evaluation results
  • embed=(evaluations(annotations)) — include span-level annotations for highlighting or further analysis
GET
/v1/messages

Query Parameters

limit?integer

Maximum number of items to return

Default50
Range0 < value <= 100
cursor?|

Pagination cursor

embed?|

Embed resources: (evaluations) or (evaluations(annotations))

role?|

Filter by role: system, user, assistant, tool

filter[created_at][gt]?|
filter[created_at][gte]?|
filter[created_at][lt]?|
filter[created_at][lte]?|
filter[hallucination_count][gt]?|
filter[hallucination_count][gte]?|
filter[hallucination_count][lt]?|
filter[hallucination_count][lte]?|
filter[hallucination_count][eq]?|

Header Parameters

x-workspace-id?|

Workspace UUID to operate within. Required for session auth and user-scoped API keys. Optional for workspace-scoped API keys (uses key's workspace if omitted).

Response Body

application/json

application/json

curl -X GET "https://loading/v1/messages"
{
  "next_page_cursor": "string",
  "query": {},
  "has_more": true,
  "items": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "conversation_id": "cc71b11a-25cd-4c2d-9950-df2cc38e3407",
      "role": "string",
      "parts": [
        {}
      ],
      "sequence_number": 0,
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z",
      "generation": {
        "model": "string",
        "input_tokens": 0,
        "output_tokens": 0,
        "cost_usd": 0,
        "response_id": "string",
        "provider": "string",
        "finish_reasons": [
          "string"
        ],
        "agent_description": "string",
        "agent_id": "string",
        "agent_name": "string"
      },
      "evaluation": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",
        "status": "string",
        "model": "string",
        "input_tokens": 0,
        "output_tokens": 0,
        "config_version": "string",
        "error_message": "string",
        "created_at": "2019-08-24T14:15:22Z",
        "updated_at": "2019-08-24T14:15:22Z",
        "annotations": [
          {
            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
            "text": "string",
            "label": "string",
            "explanation": "string",
            "message_part_index": 0,
            "start_offset": 0,
            "end_offset": 0,
            "created_at": "2019-08-24T14:15:22Z"
          }
        ]
      }
    }
  ]
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}