API & developers

Integra Leonardo Shield nei tuoi sistemi con REST API e webhook.

API keys

Gestisci le tue chiavi production e test.

NomeKeyCreataUltimo uso
Production
live
lsk_live_••••••••••••3f9a2025-03-122 min fa
Staging
test
lsk_test_••••••••••••8b212025-04-021 h fa

POST /v1/documents

curl -X POST https://api.leonardoshield.io/v1/documents \
  -H "Authorization: Bearer lsk_live_••••3f9a" \
  -H "Content-Type: multipart/form-data" \
  -F "file=@term_sheet.pdf" \
  -F "watermark=forensic" \
  -F "notarize=true"

Response · 200 OK

{
  "id": "doc_01H8Z3KQ9",
  "hash": "0x4f3a8e91…b18c",
  "fingerprint": "FP-9241-AX",
  "status": "protected",
  "blockchain": {
    "network": "ethereum",
    "block": 18329441
  },
  "tracking_url": "https://app.leonardoshield.io/d/01H8Z3KQ9"
}

Endpoints disponibili

POST
/v1/documentsProteggi un nuovo documento
GET
/v1/documents/:idRecupera metadata e tracking
POST
/v1/verifyVerifica autenticità di un file
GET
/v1/trackingLista download e accessi
POST
/v1/webhooksConfigura webhook per leak alert