> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apigene.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Activity Timeline

> Histogram of interaction counts over a rolling window, grouped by time bucket and HTTP status class.
Uses the first action's status_code in actions_result. Members see only their own interactions.



## OpenAPI

````yaml post /api/interaction/activity-timeline
openapi: 3.1.0
info:
  title: Apigene
  description: Apigene API
  version: 1.0.0
  contact:
    name: Apigene Support
    url: https://app.apigene.ai
    email: support@apigene.ai
servers:
  - url: https://app.apigene.ai
security:
  - BearerAuth: []
paths:
  /api/interaction/activity-timeline:
    post:
      tags:
        - Interaction
      summary: Get Activity Timeline
      description: >-
        Histogram of interaction counts over a rolling window, grouped by time
        bucket and HTTP status class.

        Uses the first action's status_code in actions_result. Members see only
        their own interactions.
      operationId: get_activity_timeline
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ActivityTimelineRequest'
              default:
                hours: 24
                bucket_minutes: 15
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActivityTimelineResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    ActivityTimelineRequest:
      properties:
        hours:
          type: integer
          maximum: 168
          minimum: 1
          title: Hours
          description: Rolling window in hours (default 24, max 7d).
          default: 24
        bucket_minutes:
          type: integer
          maximum: 60
          minimum: 1
          title: Bucket Minutes
          description: Histogram bin width in minutes (default 15).
          default: 15
      type: object
      title: ActivityTimelineRequest
      description: Query params for POST /interaction/activity-timeline (body).
    ActivityTimelineResponse:
      properties:
        start:
          type: string
          title: Start
          description: Range start (ISO-8601 UTC).
        end:
          type: string
          title: End
          description: Range end (ISO-8601 UTC).
        bucket_minutes:
          type: integer
          title: Bucket Minutes
        series:
          items:
            $ref: '#/components/schemas/ActivityTimelineBucket'
          type: array
          title: Series
      type: object
      required:
        - start
        - end
        - bucket_minutes
      title: ActivityTimelineResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ActivityTimelineBucket:
      properties:
        t:
          type: string
          title: T
          description: Bucket start (ISO-8601 UTC).
        ok:
          type: integer
          title: Ok
          description: Count of 2xx responses.
          default: 0
        client_err:
          type: integer
          title: Client Err
          description: Count of 4xx responses.
          default: 0
        server_err:
          type: integer
          title: Server Err
          description: Count of 5xx responses.
          default: 0
        other:
          type: integer
          title: Other
          description: All other status codes.
          default: 0
      type: object
      required:
        - t
      title: ActivityTimelineBucket
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT Authorization header using the Bearer scheme. Example:
        'Authorization: Bearer {token}'

````