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

# Get Infrastructure

> Get infrastructure summary for an enterprise single-tenant deployment.

Returns compute profiles for each extractor, cloud cost breakdown
with transparent margin, and the billing period summary for the
requested (default: current) month. Enterprise-only endpoint.



## OpenAPI

````yaml get /v1/organizations/infrastructure/summary
openapi: 3.1.0
info:
  title: Mixpeek API
  description: >-
    This is the Mixpeek API, providing access to various endpoints for data
    processing and retrieval.
  termsOfService: https://mixpeek.com/terms
  contact:
    name: Mixpeek Support
    url: https://mixpeek.com/contact
    email: info@mixpeek.com
  version: '0.82'
servers:
  - url: https://api.mixpeek.com
    description: Production
security:
  - BearerAuth: []
paths:
  /v1/organizations/infrastructure/summary:
    get:
      tags:
        - Organization Infrastructure
      summary: Get Infrastructure
      description: |-
        Get infrastructure summary for an enterprise single-tenant deployment.

        Returns compute profiles for each extractor, cloud cost breakdown
        with transparent margin, and the billing period summary for the
        requested (default: current) month. Enterprise-only endpoint.
      operationId: get_infrastructure_v1_organizations_infrastructure_summary_get
      parameters:
        - name: billing_month
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Billing month to inspect (YYYY-MM). Defaults to the current month.
              Past months return the same category + line-item granularity as
              the current month.
            examples:
              - 2026-06
            title: Billing Month
          description: >-
            Billing month to inspect (YYYY-MM). Defaults to the current month.
            Past months return the same category + line-item granularity as the
            current month.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InfrastructureSummaryResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    InfrastructureSummaryResponse:
      properties:
        tenant_id:
          type: string
          title: Tenant Id
        namespace:
          anyOf:
            - type: string
            - type: 'null'
          title: Namespace
        region:
          type: string
          title: Region
          default: us-east1
        billing_mode:
          type: string
          title: Billing Mode
          default: credits
        extractors:
          items:
            $ref: '#/components/schemas/ExtractorComputeSummary'
          type: array
          title: Extractors
        data_plane_components:
          items:
            $ref: '#/components/schemas/DataPlaneComponentSummary'
          type: array
          title: Data Plane Components
        cost_breakdown:
          $ref: '#/components/schemas/CostBreakdownSummary'
        compute_costs:
          $ref: '#/components/schemas/ComputeCostSummary'
        billing_period:
          anyOf:
            - $ref: '#/components/schemas/BillingPeriodSummary'
            - type: 'null'
      type: object
      required:
        - tenant_id
        - cost_breakdown
      title: InfrastructureSummaryResponse
    ErrorResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: Always false for error responses
          default: false
        status:
          type: integer
          title: Status
          description: HTTP status code for this error
        error:
          $ref: '#/components/schemas/ErrorDetail'
          description: Error details payload
      type: object
      required:
        - status
        - error
      title: ErrorResponse
      description: Error response model.
      examples:
        - error:
            details:
              id: ns_123
              resource: namespace
            message: Namespace not found
            type: NotFoundError
          status: 404
          success: false
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ExtractorComputeSummary:
      properties:
        extractor_name:
          type: string
          title: Extractor Name
        version:
          type: string
          title: Version
        gke_profile:
          type: string
          title: Gke Profile
        workload_type:
          type: string
          title: Workload Type
        head:
          $ref: '#/components/schemas/ResourceAllocation'
        cpu_workers:
          $ref: '#/components/schemas/ResourceAllocation'
        cpu_worker_scaling:
          $ref: '#/components/schemas/ScalingConfig'
        gpu_workers:
          $ref: '#/components/schemas/ResourceAllocation'
        gpu_worker_scaling:
          $ref: '#/components/schemas/ScalingConfig'
        cost_per_hour_usd:
          type: number
          title: Cost Per Hour Usd
      type: object
      required:
        - extractor_name
        - version
        - gke_profile
        - workload_type
        - head
        - cpu_workers
        - cpu_worker_scaling
        - gpu_workers
        - gpu_worker_scaling
        - cost_per_hour_usd
      title: ExtractorComputeSummary
    DataPlaneComponentSummary:
      properties:
        component:
          type: string
          title: Component
        component_label:
          type: string
          title: Component Label
        replicas:
          type: integer
          title: Replicas
        scaling:
          anyOf:
            - $ref: '#/components/schemas/ScalingConfig'
            - type: 'null'
        resources:
          $ref: '#/components/schemas/ResourceAllocation'
      type: object
      required:
        - component
        - component_label
        - replicas
        - resources
      title: DataPlaneComponentSummary
      description: Summary of a non-Ray data plane component (celery, redis, mvs).
    CostBreakdownSummary:
      properties:
        billing_month:
          type: string
          title: Billing Month
        cloud_provider:
          type: string
          title: Cloud Provider
        data_as_of:
          anyOf:
            - type: string
            - type: 'null'
          title: Data As Of
        data_delay_note:
          anyOf:
            - type: string
            - type: 'null'
          title: Data Delay Note
        cost_unavailable:
          type: boolean
          title: Cost Unavailable
          default: false
        attribution_scope:
          type: string
          title: Attribution Scope
          default: dedicated_k8s_ns
        total_cloud_cost_usd:
          type: number
          title: Total Cloud Cost Usd
          default: 0
        margin_pct:
          type: number
          title: Margin Pct
          default: 0.2
        total_margin_usd:
          type: number
          title: Total Margin Usd
          default: 0
        platform_fee_usd:
          type: number
          title: Platform Fee Usd
          default: 0
        platform_fee_billed_externally:
          type: boolean
          title: Platform Fee Billed Externally
          default: false
        total_invoice_usd:
          type: number
          title: Total Invoice Usd
          default: 0
        categories:
          items:
            $ref: '#/components/schemas/CloudCostCategorySummary'
          type: array
          title: Categories
        all_line_items:
          items:
            $ref: '#/components/schemas/CloudCostLineItem'
          type: array
          title: All Line Items
      type: object
      required:
        - billing_month
        - cloud_provider
      title: CostBreakdownSummary
    ComputeCostSummary:
      properties:
        cpu_hours:
          type: number
          title: Cpu Hours
          default: 0
        gpu_hours:
          type: number
          title: Gpu Hours
          default: 0
        base_cost_usd:
          type: number
          title: Base Cost Usd
          default: 0
        daily_breakdown:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Daily Breakdown
      type: object
      title: ComputeCostSummary
    BillingPeriodSummary:
      properties:
        billing_month:
          type: string
          title: Billing Month
        platform_fee_usd:
          type: number
          title: Platform Fee Usd
          default: 0
        compute_base_cost_usd:
          type: number
          title: Compute Base Cost Usd
          default: 0
        usage_cost_usd:
          type: number
          title: Usage Cost Usd
          default: 0
        total_base_cost_usd:
          type: number
          title: Total Base Cost Usd
          default: 0
        note:
          type: string
          title: Note
          default: Base cost before margin
      type: object
      required:
        - billing_month
      title: BillingPeriodSummary
    ErrorDetail:
      properties:
        message:
          type: string
          title: Message
          description: Human-readable error message
        type:
          type: string
          title: Type
          description: Stable error type identifier (machine-readable)
        code:
          anyOf:
            - type: string
            - type: 'null'
          title: Code
          description: >-
            Fine-grained error code for programmatic handling (e.g.,
            namespace_name_taken, feature_extractor_not_found). Present only
            when consumers may need to branch on a specific error condition.
        details:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Details
          description: >-
            Optional structured details to help debugging (validation errors,
            IDs, etc.)
      type: object
      required:
        - message
        - type
      title: ErrorDetail
      description: Error detail model.
    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
    ResourceAllocation:
      properties:
        cpu_request:
          type: string
          title: Cpu Request
        cpu_limit:
          type: string
          title: Cpu Limit
        memory_request:
          type: string
          title: Memory Request
        memory_limit:
          type: string
          title: Memory Limit
        gpu:
          type: integer
          title: Gpu
          default: 0
      type: object
      required:
        - cpu_request
        - cpu_limit
        - memory_request
        - memory_limit
      title: ResourceAllocation
    ScalingConfig:
      properties:
        min_replicas:
          type: integer
          title: Min Replicas
        max_replicas:
          type: integer
          title: Max Replicas
      type: object
      required:
        - min_replicas
        - max_replicas
      title: ScalingConfig
    CloudCostCategorySummary:
      properties:
        category:
          type: string
          title: Category
        category_label:
          type: string
          title: Category Label
        cloud_cost_usd:
          type: number
          title: Cloud Cost Usd
        margin_usd:
          type: number
          title: Margin Usd
        total_usd:
          type: number
          title: Total Usd
        line_items:
          items:
            $ref: '#/components/schemas/CloudCostLineItem'
          type: array
          title: Line Items
      type: object
      required:
        - category
        - category_label
        - cloud_cost_usd
        - margin_usd
        - total_usd
        - line_items
      title: CloudCostCategorySummary
    CloudCostLineItem:
      properties:
        service:
          type: string
          title: Service
        description:
          type: string
          title: Description
        category:
          type: string
          title: Category
        cloud_cost_usd:
          type: number
          title: Cloud Cost Usd
        margin_usd:
          type: number
          title: Margin Usd
        total_usd:
          type: number
          title: Total Usd
        usage_amount:
          anyOf:
            - type: number
            - type: 'null'
          title: Usage Amount
        usage_unit:
          anyOf:
            - type: string
            - type: 'null'
          title: Usage Unit
        region:
          anyOf:
            - type: string
            - type: 'null'
          title: Region
      type: object
      required:
        - service
        - description
        - category
        - cloud_cost_usd
        - margin_usd
        - total_usd
      title: CloudCostLineItem
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Mixpeek API key, sent as `Authorization: Bearer mxp_sk_...`. Create one
        in Studio under Settings → API Keys, or with an admin key via `POST
        /v1/organizations/users/{user_email}/api-keys`. A missing header returns
        403; an invalid or revoked key returns 401.

````