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

# Check if a file exists for the current namespace

> Returns 200 if the file is uploaded by the current namespace, otherwise 404.



## OpenAPI

````yaml https://eu-north.nebius.computer/static/api.yaml head /files/{sha256}
openapi: 3.0.0
info:
  title: Contree API
  description: >
    Contree is a container management system combining virtual machine isolation
    with container operational efficiency. 

    Designed for security-sensitive workloads requiring hardware-enforced
    boundaries while maintaining

    container workflow compatibility.
  version: 1.0.0
servers:
  - url: '{baseUrl}/v1'
    description: |
      Nebius IAM-fronted endpoint (use `IAMBearerAuth` + `IAMProjectHeader`).
      Override `baseUrl` to point at a different deployment.
    variables:
      baseUrl:
        default: https://api.tokenfactory.nebius.com/sandboxes
        description: |
          Base URL of the contree service. Defaults to the public Nebius
          IAM-fronted endpoint; set to your self-hosted contree origin
          (e.g. `https://contree.example.com`) when running elsewhere.
security:
  - IAMBearerAuth: []
    IAMProjectHeader: []
tags:
  - name: images
    description: Operations related to container images
  - name: files
    description: Operations related to file uploads
  - name: instances
    description: Operations related to container instances
  - name: inspect
    description: Operations related to inspecting container images
  - name: operations
    description: Operations related to long-running operations
  - name: auth
    description: Authentication and token introspection
paths:
  /files/{sha256}:
    parameters:
      - name: sha256
        in: path
        required: true
        description: SHA256 hash of the file (64 hex characters)
        schema:
          type: string
          pattern: ^[0-9a-fA-F]{64}$
    head:
      tags:
        - files
      summary: Check if a file exists for the current namespace
      description: >-
        Returns 200 if the file is uploaded by the current namespace, otherwise
        404.
      operationId: checkFileExists
      responses:
        '200':
          description: OK - The file exists
        '401':
          description: Unauthorized - Invalid or missing authentication credentials
        '403':
          description: Forbidden - Token does not have sufficient permissions
        '404':
          description: Not Found - The file does not exist
components:
  securitySchemes:
    IAMBearerAuth:
      type: http
      scheme: bearer
      bearerFormat: IAM
      description: |
        IAM bearer token issued by the Nebius IAM service. Sent as
        `Authorization: Bearer <iam-token>`. Must be combined with the
        `Project` header (see `IAMProjectHeader`).

        This is the recommended authentication scheme for new clients.
    IAMProjectHeader:
      type: apiKey
      in: header
      name: Project
      description: |
        Nebius project ID associated with the IAM token. Required together
        with `IAMBearerAuth`. Identifies the project context the request is
        scoped to.

````