# Create a hash certification

Creates a new certification from file hashes (no upload)

Endpoint: POST /v1/hash-certifications
Version: 1.6.0
Security: ApiKeyAuth

## Security:

  - `ApiKeyAuth` (unknown)
    http bearer API Key

## Request body:

  - `application/json` (unknown)
    Request payload for creating a hash certification

## Request fields (application/json):

  - `title` (string, required)
    Title of the certification

  - `generate_pdf_report` (boolean)
    Whether to generate a PDF report (defaults to true)

  - `webhook_url` (string)
    Optional webhook URL for completion notification. Callbacks are signed per the Standard Webhooks specification. The payload uses a standard envelope with type, timestamp and data fields.

  - `metadata` (object)
    Optional metadata key-value pairs

  - `files` (array, required)
    List of files (name + hash), no upload

  - `files.file_name` (string, required)
    Name of the file

  - `files.hash` (string, required)
    Hash of the file content

## Request examples:

  - `Create hash certification (placeholder)` (unknown)

## Response 201:

  - `201` (unknown)
    Created hash certification

## Response 201 fields (application/json):

  - `report_id` (string, required)
    Unique report identifier

  - `status` (string, required)
    Certification status

  - `credits_amount` (number, required)
    Credits consumed

  - `title` (string, required)
    Title of the certification

  - `created_at` (string, required)
    Creation timestamp

## Response 400:

  - `400` (unknown)
    Validation error

## Response 400 fields (application/problem+json):

  - `type` (string)
    A URI reference that identifies the problem type.
    Example: https://api.truescreen.io/errors/validation-error

  - `title` (string, required)
    Short, human-readable summary of the problem.
    Example: Validation failed

  - `status` (integer)
    HTTP status code.
    Example: 400

  - `detail` (string)
    Human-readable explanation specific to this occurrence.
    Example: One or more fields have invalid values

  - `code` (string, required)
    Unique code to identify the error.
    Example: TS-000

## Response 201 examples:

  - `Created hash certification (placeholder)` (unknown)

## Response 400 examples:

  - `Malformed payload or missing auth` (unknown)

  - `Missing required field (title or files)` (unknown)

  - `Insufficient credits available` (unknown)

