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

# Get Activity Summary



## OpenAPI

````yaml /openapi/openapi.yaml get /v1/activity/summary
openapi: 3.1.0
info:
  title: OneInbox API
  version: 1.0.0
servers:
  - url: https://api-tokyo.oneinbox.ai
    description: Production (Tokyo ap-northeast-1)
security: []
tags:
  - name: health
  - name: integrations
  - name: llm-models
  - name: tools
  - name: knowledge-bases
  - name: voices
  - name: webhooks
  - name: agents
  - name: phone-numbers
  - name: calls
  - name: workspace
  - name: usage
  - name: audit-events
  - name: activity
paths:
  /v1/activity/summary:
    get:
      tags:
        - activity
      summary: Get Activity Summary
      operationId: get_activity_summary_v1_activity_summary_get
      parameters:
        - name: since
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            description: 'Window start (default: 30d ago)'
            title: Since
          description: 'Window start (default: 30d ago)'
        - name: until
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            description: 'Window end (default: now)'
            title: Until
          description: 'Window end (default: now)'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgActivitySummary'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - API Key: []
components:
  schemas:
    OrgActivitySummary:
      properties:
        org_id:
          type: string
          format: uuid
          title: Org Id
        org_name:
          type: string
          title: Org Name
        signup_date:
          type: string
          format: date-time
          title: Signup Date
        window:
          $ref: '#/components/schemas/ActivityWindow'
        resource_counts:
          $ref: '#/components/schemas/ResourceCounts'
        audit_actions:
          items:
            $ref: '#/components/schemas/AuditActionCount'
          type: array
          title: Audit Actions
        call_summary:
          $ref: '#/components/schemas/CallSummary'
        error_signals:
          $ref: '#/components/schemas/ErrorSignals'
      type: object
      required:
        - org_id
        - org_name
        - signup_date
        - window
        - resource_counts
        - audit_actions
        - call_summary
        - error_signals
      title: OrgActivitySummary
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ActivityWindow:
      properties:
        since:
          type: string
          format: date-time
          title: Since
        until:
          type: string
          format: date-time
          title: Until
      type: object
      required:
        - since
        - until
      title: ActivityWindow
    ResourceCounts:
      properties:
        users:
          type: integer
          title: Users
        api_keys:
          type: integer
          title: Api Keys
        agents:
          type: integer
          title: Agents
        calls:
          type: integer
          title: Calls
        phone_numbers:
          type: integer
          title: Phone Numbers
        knowledge_bases:
          type: integer
          title: Knowledge Bases
        tools:
          type: integer
          title: Tools
        credentials:
          type: integer
          title: Credentials
      type: object
      required:
        - users
        - api_keys
        - agents
        - calls
        - phone_numbers
        - knowledge_bases
        - tools
        - credentials
      title: ResourceCounts
    AuditActionCount:
      properties:
        action:
          type: string
          title: Action
        resource_type:
          type: string
          title: Resource Type
        count:
          type: integer
          title: Count
      type: object
      required:
        - action
        - resource_type
        - count
      title: AuditActionCount
    CallSummary:
      properties:
        total:
          type: integer
          title: Total
        by_status:
          items:
            $ref: '#/components/schemas/LabelCount'
          type: array
          title: By Status
        by_outcome:
          items:
            $ref: '#/components/schemas/LabelCount'
          type: array
          title: By Outcome
        by_end_reason:
          items:
            $ref: '#/components/schemas/LabelCount'
          type: array
          title: By End Reason
      type: object
      required:
        - total
        - by_status
        - by_outcome
        - by_end_reason
      title: CallSummary
    ErrorSignals:
      properties:
        calls_ended_in_error:
          type: integer
          title: Calls Ended In Error
        kb_sources_errored:
          items:
            $ref: '#/components/schemas/KBSourceIssue'
          type: array
          title: Kb Sources Errored
        webhook_deliveries_failed:
          type: integer
          title: Webhook Deliveries Failed
      type: object
      required:
        - calls_ended_in_error
        - kb_sources_errored
        - webhook_deliveries_failed
      title: ErrorSignals
      description: >-
        DB-derivable error indicators only. Container logs rotate and are not a

        queryable store — log/Sentry-derived errors are deliberately out of
        scope.
    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
    LabelCount:
      properties:
        value:
          type: string
          title: Value
        count:
          type: integer
          title: Count
      type: object
      required:
        - value
        - count
      title: LabelCount
    KBSourceIssue:
      properties:
        knowledge_base_id:
          type: string
          format: uuid
          title: Knowledge Base Id
        source_id:
          type: string
          format: uuid
          title: Source Id
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
      type: object
      required:
        - knowledge_base_id
        - source_id
        - error_message
      title: KBSourceIssue
  securitySchemes:
    API Key:
      type: http
      description: >-
        Your **API key** sent as a Bearer credential — `Authorization: Bearer
        <api_key>`, where `<api_key>` starts with `oi_sk_` (create one via `POST
        /v1/api-keys`). Although the field is labelled 'token', paste your API
        key here. A dashboard JWT is also accepted on this header for the same
        endpoints.
      scheme: bearer

````