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

# Get workflow agent capacity

> Returns an owner-scoped snapshot of finite included workflow-agent capacity after locally stored enabled and disabled agents. Available only while slot enforcement is enabled; otherwise returns 503. This is advisory; create and clone perform authoritative admission under an owner lock.



## OpenAPI

````yaml /api-reference/workflows.yaml get /flows/capacity
openapi: 3.1.0
info:
  title: Workflows
  version: v1
servers:
  - description: Droidrun Cloud API
    url: https://api.mobilerun.ai/v1
security:
  - bearerAuth: []
paths:
  /flows/capacity:
    get:
      tags:
        - Flows
      summary: Get workflow agent capacity
      description: >-
        Returns an owner-scoped snapshot of finite included workflow-agent
        capacity after locally stored enabled and disabled agents. Available
        only while slot enforcement is enabled; otherwise returns 503. This is
        advisory; create and clone perform authoritative admission under an
        owner lock.
      operationId: getFlowCapacity
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/FlowCapacity'
                required:
                  - data
                type: object
          description: Workflow agent capacity retrieved
        '503':
          content:
            application/json:
              schema:
                properties:
                  error:
                    enum:
                      - billing_temporarily_unavailable
                    type: string
                  message:
                    type: string
                required:
                  - error
                  - message
                type: object
          description: Workflow agent capacity could not be verified
      x-codeSamples:
        - lang: JavaScript
          source: |-
            import Mobilerun from '@mobilerun/sdk';

            const client = new Mobilerun({
              apiKey: process.env['MOBILERUN_CLOUD_API_KEY'], // This is the default and can be omitted
            });

            const response = await client.workflows.flows.capacity();

            console.log(response.data);
        - lang: Python
          source: |-
            import os
            from mobilerun_sdk import Mobilerun

            client = Mobilerun(
                api_key=os.environ.get("MOBILERUN_CLOUD_API_KEY"),  # This is the default and can be omitted
            )
            response = client.workflows.flows.capacity()
            print(response.data)
components:
  schemas:
    FlowCapacity:
      additionalProperties: false
      properties:
        included:
          minimum: 0
          type: integer
        remaining:
          minimum: 0
          type: integer
        status:
          $ref: '#/components/schemas/FlowCapacityStatus'
      required:
        - included
        - remaining
        - status
      type: object
    FlowCapacityStatus:
      enum:
        - available
        - exhausted
        - not_included
      type: string
  securitySchemes:
    bearerAuth:
      bearerFormat: Opaque
      description: Bearer token via Authorization header
      scheme: bearer
      type: http

````