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

# List Worker Locations

> Locations that can currently take a worker. These are not the same as VPS locations, and the `id` here is what `POST /workers` takes as `location_id`. Returns an empty list while worker sales are disabled.



## OpenAPI

````yaml GET /workers/locations
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/locations:
    get:
      tags:
        - Workers
      summary: List worker locations
      description: >-
        Locations that can currently take a worker. These are not the same as
        VPS locations, and the `id` here is what `POST /workers` takes as
        `location_id`. Returns an empty list while worker sales are disabled.
      operationId: listWorkerLocations
      responses:
        '200':
          description: Available worker locations
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/WorkerLocation'
        '401':
          $ref: '#/components/responses/Unauthenticated'
components:
  schemas:
    WorkerLocation:
      type: object
      properties:
        id:
          type: integer
          description: Pass as `location_id` when deploying.
          example: 1
        name:
          type: string
          example: Frankfurt
        short_code:
          type: string
          example: fra
        description:
          type: string
          nullable: true
          example: Germany
        out_of_stock:
          type: boolean
          description: >-
            True when no node in this location can currently take another
            worker.
          example: false
    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>`.

````