Returns comprehensive conversation data including user details, agent information, usage metrics, and tool invocations.
Authentication
This endpoint requires a valid JWT token from Clerk authentication. The token must include organization membership.
Query Parameters
Start date for the query range (ISO 8601 format, e.g., “2024-01-01T00:00:00.000Z”)
End date for the query range (ISO 8601 format, e.g., “2024-12-31T23:59:59.999Z”)
Whether to include conversations for all users in the organization. Requires org:admin role.
Filter results to a specific user ID (admin only when allInOrg is true)
Filter by a specific metadata key in user’s organization-scoped metadata
Filter by a specific metadata value. Can be used with or without metadataKey. Only searches within the current organization.
Response
Returns an array of conversation objects, organized hierarchically with sub-conversations nested under their parent conversations.
Unique conversation identifier
ID of the agent used in this conversation
Parent conversation ID if this is a sub-conversation
ISO 8601 timestamp when conversation was created
ISO 8601 timestamp when conversation was last updated
Display name of the agent
AI model used by the agent (e.g., “gpt-4”, “claude-3-sonnet”)
URL to the agent’s logo/avatar image
Clerk user ID of the conversation participant
Email address of the user
Organization-scoped user metadata (isolated per organization)
Text content of the first message in the conversation
Number of messages sent by the user
Number of messages sent by the assistant
Total number of messages in the conversation
Conversation duration in seconds
Total token usage for this conversation
Input tokens (user messages and system prompts) for this conversation
Output tokens (assistant responses) for this conversation
Number of file attachments in the conversation
Array of all tool invocations made during the conversation
Name of the tool that was invoked
Arguments passed to the tool
Result returned by the tool
Reason the last message generation finished (e.g., “stop”, “length”, “tool_calls”)
Total number of feedback responses for this conversation
Number of positive feedback responses
Number of negative feedback responses
Detailed feedback data with timestamps and comments
Array of nested sub-conversations (same structure as parent)
Examples
curl -X GET "https://asteragents.com/api/dashboard/getInteractions?from=2024-01-01T00:00:00.000Z&to=2024-12-31T23:59:59.999Z&allInOrg=true" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
Error Codes
Forbidden - User lacks required permissions (e.g., non-admin trying to use allInOrg=true)
Internal Server Error - Server encountered an unexpected condition
Notes
- Results are ordered by
updatedAt in descending order (most recent first)
- Conversations marked as deleted (
deletedAt is not null) are excluded from results
- Sub-conversations are nested under their parent conversation in the
subConversations array
- Tool calls include the complete invocation data with arguments and results
- Metadata filtering is organization-scoped: Only searches within the current organization’s user metadata
- Metadata filtering supports flexible querying across user’s publicMetadata JSON field
- All dates are returned in ISO 8601 format
- When
allInOrg=true, only users with org:admin role can access organization-wide data