> Documentation index: [/llms.txt](/llms.txt). Every page as one file: [/llms-full.txt](/llms-full.txt).

# Batch Check

Space-scoped existence check for file/folder ids.

Used by Central Hub's lazy self-heal of agents' ``enabled_file_scope``
(COR-1768): ids missing from the response were deleted (or never
belonged to this space) and can be pruned from the agent's selection.
The literal ``"root"`` is always reported as existing.

## POST /batch/check

```json

{
  "tags": [
    "batch",
    "batch"
  ],
  "summary": "Batch Check",
  "description": "Space-scoped existence check for file/folder ids.\n\nUsed by Central Hub's lazy self-heal of agents' ``enabled_file_scope``\n(COR-1768): ids missing from the response were deleted (or never\nbelonged to this space) and can be pruned from the agent's selection.\nThe literal ``\"root\"`` is always reported as existing.",
  "operationId": "BatchCBV_batch_check_batch_check_post",
  "security": [
    {
      "APIKeyHeader": []
    }
  ],
  "parameters": [
    {
      "name": "x_space_slug",
      "in": "query",
      "required": false,
      "schema": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "X Space Slug"
      }
    },
    {
      "name": "X-Space-Slug",
      "in": "header",
      "required": true,
      "schema": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "X-Space-Slug"
      }
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/BatchCheckRequest"
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/BatchCheckResponse"
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    }
  }
}

```
