> ## 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.

# List the fleet's namespace allocations (bearer twin)

> The latest namespace allocation of every analysed cluster, decorated with the stack, addons and applications running in each namespace, ordered by allocated monthly cost. 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/workloads
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://platform.ankra.app
security: []
paths:
  /api/v1/org/cloud-cost/workloads:
    get:
      tags:
        - Cost
        - cli
      summary: List the fleet's namespace allocations (bearer twin)
      description: >-
        The latest namespace allocation of every analysed cluster, decorated
        with the stack, addons and applications running in each namespace,
        ordered by allocated monthly cost. 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_workloads_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/FleetWorkloadsResponse'
          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:
    FleetWorkloadsResponse:
      properties:
        analysed_cluster_count:
          type: integer
        currency:
          type: string
        rows:
          items:
            $ref: '#/components/schemas/FleetWorkloadRow'
          type: array
        truncated:
          type: boolean
      required:
        - currency
        - analysed_cluster_count
        - truncated
        - rows
      title: FleetWorkloadsResponse
      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
    FleetWorkloadRow:
      properties:
        addons:
          items:
            type: string
          type: array
        allocated_compute_monthly_cents:
          type: integer
        allocated_monthly_cents:
          type: integer
        allocated_storage_monthly_cents:
          type: integer
        allocation_source:
          type: string
        applications:
          items:
            $ref: '#/components/schemas/WorkloadApplication'
          type: array
        cluster_id:
          format: uuid
          type: string
        cluster_name:
          type: string
        cpu_share:
          type: number
        memory_share:
          type: number
        namespace:
          type: string
        provider:
          type: string
        stack_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
        stack_name:
          anyOf:
            - type: string
            - type: 'null'
      required:
        - cluster_id
        - cluster_name
        - provider
        - namespace
        - stack_id
        - stack_name
        - addons
        - applications
        - allocated_monthly_cents
        - allocated_compute_monthly_cents
        - allocated_storage_monthly_cents
        - cpu_share
        - memory_share
        - allocation_source
      title: FleetWorkloadRow
      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
    WorkloadApplication:
      properties:
        application_id:
          format: uuid
          type: string
        name:
          type: string
      required:
        - application_id
        - name
      title: WorkloadApplication
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: PAT
      scheme: bearer
      type: http

````