Attesta un'impronta SHA-256

Changed on

Percorso primario (dalla 1.15.0): riceve l'impronta calcolata sul client (full privacy). Percorso legacy: file inline base64 in image (hash calcolato dal server, tetto 100 MB). Se assente una credenziale agente valida (vedi agentBearer), è richiesto turnstile_token quando TURNSTILE_SECRET è configurato.

post/api/hash

Request

  • Base URL
    https://imgauth.spaziogenesi.org
  • Auth
    • HTTP bearer
    • or API key in header X-SG-Voucher
    • or none

Request body

sha256string

Impronta calcolata sul client (percorso primario)

imagestring byte

File inline base64 (percorso legacy, tetto 100 MB)

namestring
typestring

MIME dichiarato

sizeinteger

Dimensione dichiarata in byte (solo percorso client)

titolostring
autorestring
annostring
notestring
riserva'notAllowed' | 'constrained' | 'allowed'

Riserva dei diritti sull'addestramento AI (P55 §F3, dalla 1.37.0), vocabolario CAWG training-mining. Facoltativa, vincolata alla firma HMAC come i metadati; un valore assente o non fra i tre ammessi equivale a nessuna riserva dichiarata (non a 'allowed').

turnstile_tokenstring

Richiesto se non c'è credenziale agente e TURNSTILE_SECRET è configurato

lang'it' | 'en'

Lingua dei messaggi d'errore (P41). Facoltativo, default 'it'; in mancanza si legge Accept-Language. Non influisce sul contenuto attestato né sulla firma HMAC.

Response

Attestazione emessa

sha256string
dimensione_bytesinteger nullable
tipo_mimestring
titolostring
autorestring
annostring
notestring
riserva'notAllowed' | 'constrained' | 'allowed' | 'null' nullable

Riserva normalizzata e vincolata alla firma HMAC; null se assente o non fra i valori ammessi (P55 §F3).

timestamp_isostring date-time
timestamp_leggibilestring
attestazionestring
emesso_dastring
hmacstring nullable
fascia'base' | 'sviluppatore' | 'convenzione'

Fascia effettiva dell'emissione (P25)

fascia_motivo'null' | 'pool_esaurito' | 'tetto_individuale' nullable

Presente solo se una convenzione è stata degradata a 'base'

Changes

    • info

      added the new optional request property riserva

    • info

      added the optional property riserva to the response with the status