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

# Check Deploy Requirements

> What `POST /workers` will require of the account right now: the minimum balance next to the live balance, the worker count against the account cap, and the container limits a new worker would be created with. Worth a call before deploying, since a create below the minimum is rejected.



## OpenAPI

````yaml GET /workers/deploy-requirements
openapi: 3.0.3
info:
  title: CloudBlast API
  description: >-
    The CloudBlast V2 API provides a modern RESTful interface for managing your
    cloud infrastructure programmatically. All responses follow a consistent `{
    "data": ... }` or `{ "error": ... }` format.
  version: 2.0.0
servers:
  - url: https://console.cloudblast.io/api/v2
    description: Production
security:
  - bearerAuth: []
paths:
  /workers/deploy-requirements:
    get:
      tags:
        - Workers
      summary: Check what a deploy needs
      description: >-
        What `POST /workers` will require of the account right now: the minimum
        balance next to the live balance, the worker count against the account
        cap, and the container limits a new worker would be created with. Worth
        a call before deploying, since a create below the minimum is rejected.
      operationId: getWorkerDeployRequirements
      responses:
        '200':
          description: Deploy preconditions
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/WorkerDeployRequirements'
        '401':
          $ref: '#/components/responses/Unauthenticated'
components:
  schemas:
    WorkerDeployRequirements:
      type: object
      properties:
        minimum_credit:
          type: number
          description: >-
            Balance a deploy is accepted at, in account currency: one worst-case
            hour at the account container caps.
          example: 0.08
        credit:
          type: number
          description: Live balance.
          example: 12.4
        sufficient:
          type: boolean
          description: False means `POST /workers` will answer `INSUFFICIENT_BALANCE`.
          example: true
        workers_used:
          type: integer
          description: >-
            Workers currently holding a slot. Cancelled and deleting ones have
            released theirs.
          example: 1
        workers_allowed:
          type: integer
          description: Workers the account level allows.
          example: 2
        limits:
          type: object
          description: Container caps a worker created now would be stamped with.
          properties:
            cpu:
              type: number
              example: 1
            memory_mb:
              type: integer
              example: 1024
            disk_mb:
              type: integer
              example: 5120
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Machine-readable error code
            message:
              type: string
              description: Human-readable error message
          required:
            - code
            - message
  responses:
    Unauthenticated:
      description: Authentication failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: UNAUTHENTICATED
              message: >-
                Missing or invalid Authorization header. Use: Authorization:
                Bearer <token>
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API token from your CloudBlast account settings. Pass as `Authorization:
        Bearer <token>`.

````