Skip to main content

GET /v1/interactions/aggregates

GET 

/v1/interactions/aggregates

Aggregate interaction metrics over the same optional filters as the list (user_id, relationship_id, from, to). With group_by (day | week | month) returns one bucket per UTC period; without it, a single grand-total bucket (period_start null). Each bucket carries total_turns (all statuses), avg_latency_ms, unique_personalities_count and primary_emotion_distribution. Computed from the trailing-180-day detail (SPEC-14 §7.2), so user-filtered aggregates are bounded to that window.

Request

Responses

Default Response

Response Headers
    X-Request-Id

    ULID stamped on every response and propagated through error envelopes. Use it when filing support tickets — it identifies the exact request in the structured logs (requestId field).

    X-RateLimit-Limit

    Requests-per-second ceiling for the current bucket (per-organization for authenticated calls, per-IP for public ones).

    X-RateLimit-Remaining

    Tokens left in the bucket after this request.

    X-RateLimit-Reset

    ISO-8601 timestamp when the bucket will be fully refilled.