Prompt Logs
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
Conversation entity UUID (canonical identifier across all modalities — voice, text/web, sms, sim). Resolves text conversations through the durable world.conversations row, then falls back to the voice/call entity projection. Mutually exclusive with the call_sid query parameter.
Direct conversation identifier as stored on the prompt-log event: Twilio CA-SID for voice calls, session_id UUID for text/sim sessions. Most callers should use conversation_id instead — this is kept for legacy callers and external systems that hold the SID directly. Mutually exclusive with conversation_id.
Filter by prompt_type (e.g. engage_user, navigation, tool)
Filter by HSM state_name at render time
Inclusive lower bound on effective_at
Exclusive upper bound on effective_at
Max rows to return (default 20, max 200)
20Offset for pagination (max 10000)
0Prompt log entries (newest first)
Pass back as offset to fetch the next page; null when has_more is false
Auto-applied time bound (in days) when no call_sid/from_ts/to_ts was passed. Null when the caller supplied an explicit selectivity-bearing filter.
When conversation_id was supplied, this is the underlying call_sid that the lookup resolved to. Useful for callers that want to drill into per-call surfaces afterward without re-querying world.entities_synced. Null when the caller filtered by call_sid directly or did not filter by conversation.
entity_type of the conversation entity when conversation_id was supplied (call for voice/sim, conversation for text/sms/whatsapp/email). Null otherwise.
Mutually exclusive filters supplied
Caller is not admin/owner
conversation_id does not match any conversation in this workspace
Validation Error
Raw world event reads disabled or warehouse unavailable
GET /v1/{workspace_id}/prompt-logs HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"event_id": "123e4567-e89b-12d3-a456-426614174000",
"call_sid": "text",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000",
"effective_at": "2026-01-01T00:00:00.000Z",
"ingested_at": "2026-01-01T00:00:00.000Z",
"source": "text",
"source_system": "text",
"prompt_type": "text",
"turn_index": 1,
"system_prompt": "text",
"history": [
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"full_prompt": "text",
"llm_model": "text",
"llm_response": "text",
"state_name": "text",
"action": "text",
"tool_names": [
"text"
],
"has_tools": true,
"service_id": "123e4567-e89b-12d3-a456-426614174000",
"session_id": "text",
"data_parse_error": false
}
],
"count": 1,
"has_more": true,
"next_offset": 1,
"applied_time_window_days": 1,
"resolved_call_sid": "text",
"resolved_conversation_kind": "call"
}Last updated
Was this helpful?

