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

# Get the organisation's fleet cost rollup (bearer twin)

> Every cluster whose latest snapshot is inside the staleness window, grouped by provider and by provisioning credential, in the caller's display currency (`ankra cost summary`). Bearer-PAT twin of the browser route of the same name under /org; the console's session cookie is not accepted here and the browser route answers a token with a login redirect.



## OpenAPI

````yaml https://platform.ankra.app/openapi.json get /api/v1/org/cloud-cost/summary
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://platform.ankra.app
security: []
paths:
  /api/v1/org/cloud-cost/summary:
    get:
      tags:
        - Cost
        - cli
      summary: Get the organisation's fleet cost rollup (bearer twin)
      description: >-
        Every cluster whose latest snapshot is inside the staleness window,
        grouped by provider and by provisioning credential, in the caller's
        display currency (`ankra cost summary`). Bearer-PAT twin of the browser
        route of the same name under /org; the console's session cookie is not
        accepted here and the browser route answers a token with a login
        redirect.
      operationId: fleet_cloud_cost_api_v1_org_cloud_cost_get
      parameters:
        - description: PAT organisation override.
          in: header
          name: x-ankra-organisation-id
          required: false
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FleetCloudCostResponse'
          description: Successful response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractDetailError'
          description: >-
            Missing or malformed Authorization header, or business validation
            error
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractDetailError'
          description: Unknown, expired, or revoked API token
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractDetailError'
          description: >-
            Token may not use this surface (MCP-scoped token or service account
            restriction)
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Request validation error
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractDetailError'
          description: Internal server error
      security:
        - BearerAuth: []
components:
  schemas:
    FleetCloudCostResponse:
      properties:
        by_credential:
          items:
            $ref: '#/components/schemas/FleetCredentialCost'
          type: array
        by_provider:
          items:
            $ref: '#/components/schemas/FleetProviderCost'
          type: array
        cluster_count:
          type: integer
        clusters:
          items:
            $ref: '#/components/schemas/FleetClusterCost'
          type: array
        currency:
          type: string
        month_to_date_cents:
          type: integer
        monthly_cost_estimate_cents:
          type: integer
        projected_month_end_cents:
          type: integer
        top_clusters:
          items:
            $ref: '#/components/schemas/FleetClusterCost'
          type: array
      required:
        - currency
        - cluster_count
        - monthly_cost_estimate_cents
        - month_to_date_cents
        - projected_month_end_cents
        - by_provider
        - top_clusters
        - by_credential
        - clusters
      title: FleetCloudCostResponse
      type: object
    ContractDetailError:
      example:
        detail: Cluster not found
      properties:
        detail:
          oneOf:
            - type: string
            - additionalProperties: true
              properties: {}
              type: object
      required:
        - detail
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    FleetCredentialCost:
      properties:
        cluster_count:
          type: integer
        credential_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
        credential_name:
          anyOf:
            - type: string
            - type: 'null'
        month_to_date_cents:
          type: integer
        monthly_cost_estimate_cents:
          type: integer
        projected_month_end_cents:
          type: integer
        provider:
          type: string
      required:
        - credential_id
        - credential_name
        - provider
        - cluster_count
        - monthly_cost_estimate_cents
        - month_to_date_cents
        - projected_month_end_cents
      title: FleetCredentialCost
      type: object
    FleetProviderCost:
      properties:
        cluster_count:
          type: integer
        month_to_date_cents:
          type: integer
        monthly_cost_estimate_cents:
          type: integer
        projected_month_end_cents:
          type: integer
        provider:
          type: string
      required:
        - provider
        - cluster_count
        - monthly_cost_estimate_cents
        - month_to_date_cents
        - projected_month_end_cents
      title: FleetProviderCost
      type: object
    FleetClusterCost:
      properties:
        cluster_id:
          format: uuid
          type: string
        cluster_name:
          type: string
        confidence_level:
          type: string
        credential_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
        credential_name:
          anyOf:
            - type: string
            - type: 'null'
        month_to_date_cents:
          type: integer
        monthly_cost_estimate_cents:
          type: integer
        projected_month_end_cents:
          type: integer
        provider:
          type: string
      required:
        - cluster_id
        - cluster_name
        - provider
        - monthly_cost_estimate_cents
        - month_to_date_cents
        - projected_month_end_cents
        - confidence_level
        - credential_id
        - credential_name
      title: FleetClusterCost
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: PAT
      scheme: bearer
      type: http

````