📄 VERYFIA API Docs

Guía para integrar la certificación en blockchain de archivos generados por IA.

Base URL de la API: https://veryfia-web.onrender.com

Índice

Prueba rápida: /proof · /history · Polygonscan

1) Autenticación

Usa tu API Key:

2) Endpoints

POST /upload multipart/form-data

Sube un archivo para certificarlo (máx. 5MB).

curl -X POST https://veryfia-web.onrender.com/upload ^
  -F "file=@miarchivo.pdf" ^
  -F "api_key=clave456"

POST /api/register application/json

Registra directamente el hash SHA-256 de un archivo (sin subir el archivo).

# Windows CMD
curl -X POST https://veryfia-web.onrender.com/api/register ^
  -H "Content-Type: application/json" ^
  -d "{\"api_key\":\"clave456\",\"file_hash\":\"2fd889940a0da04aab43da4f76d99c244d7607980b8ddbab8f71f655b68d5091\"}"

# Windows PowerShell
curl -Method POST https://veryfia-web.onrender.com/api/register `
  -Headers @{ "Content-Type" = "application/json" } `
  -Body '{"api_key":"clave456","file_hash":"2fd889940a0da04aab43da4f76d99c244d7607980b8ddbab8f71f655b68d5091"}'

# macOS / Linux
curl -X POST https://veryfia-web.onrender.com/api/register \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"clave456","file_hash":"2fd889940a0da04aab43da4f76d99c244d7607980b8ddbab8f71f655b68d5091"}'

GET /proof/<hash>

Devuelve JSON con file_hash, merkleRoot, txHash y anchoredAt.

curl -s https://veryfia-web.onrender.com/proof/2fd889940a0... | jq .

GET /pdf/<hash>

Descarga el certificado PDF.

curl -L -o certificado.pdf https://veryfia-web.onrender.com/pdf/2fd889940a0...

GET /history/<hash>

Página HTML con historial del archivo (hash, merkle root, fecha, TX).

https://veryfia-web.onrender.com/history/2fd889940a0...

3) Próximas mejoras

4) Contacto

Solicita tu API Key: danimollvillalonga@gmail.com

⬅️ Volver a la home