---
title: "Verifica hash dichiarato vs file, e firma HMAC"
method: POST
path: "/api/verify"
---

# Verifica hash dichiarato vs file, e firma HMAC

`POST /api/verify`

## Request

- Base URL: `https://imgauth.spaziogenesi.org`
- URL: `https://imgauth.spaziogenesi.org/api/verify`
- Auth: none declared

`image` (l'opera originale, non il PDF) è FACOLTATIVO dalla 1.15.0: senza, verifica solo la firma HMAC (il confronto hash/file è fatto dal client in locale).

## Request body `multipart/form-data`

- object
  - `hash` string, required
  - `image` string, binary
  - `attestazione` string
  - `hmac` string
  - `titolo` string
  - `autore` string
  - `anno` string
  - `note` string
  - `riserva` string: Riserva dichiarata sul certificato (P55 §F3), se presente: richiesta identica per la verifica HMAC dei certificati che la riportano.

## Response `200`

Esito verifica

- object
  - `hash_dichiarato` string
  - `hash_calcolato` string, nullable
  - `coincide` boolean, nullable
  - `hmac_valido` boolean, nullable

## Other responses

- `429`: Rate limit per-IP (60/60s)

## Changes

- **2026-09-16** `44ef92788155`: 1 info
  - added the new optional request property `riserva`

[Operation history](https://skmtc.dev/spaziogenesi/apis/imgauth-api-di-attestazione-opere-digitali/changes/api/verify/post.md)

---

[API](https://skmtc.dev/spaziogenesi/apis/imgauth-api-di-attestazione-opere-digitali.md) - [All operations](https://skmtc.dev/spaziogenesi/apis/imgauth-api-di-attestazione-opere-digitali/llms.txt) - [OpenAPI document](https://skmtc.dev/spaziogenesi/apis/imgauth-api-di-attestazione-opere-digitali/revisions/44ef92788155?raw)
