{
    "version": "0",
    "name": "CertVera - Blockchain Document Timestamping",
    "description": "Anchor document hashes to the Bitcoin blockchain with cryptographic proof of existence. All endpoints use L402 Lightning micropayments.",
    "base_url": "https://certvera.com/api/l402",
    "protocol": "L402",
    "payment_network": "lightning",
    "contact": "paul@lightningfaucet.com",
    "documentation": "https://certvera.com/docs",
    "endpoints": [
        {
            "path": "/timestamp",
            "action": "l402_timestamp",
            "method": "POST",
            "description": "Anchor SHA-256 hash to Bitcoin blockchain via OP_RETURN transaction",
            "pricing": {
                "sats_min": 25000,
                "sats_max": 250000,
                "note": "Dynamic pricing based on Bitcoin network fee rates"
            },
            "params": {
                "hash": {
                    "type": "string",
                    "required": true,
                    "description": "64-character hex SHA-256 hash"
                },
                "webhook_url": {
                    "type": "string",
                    "required": false,
                    "description": "URL for blockchain confirmation callbacks"
                },
                "notification_email": {
                    "type": "string",
                    "required": false,
                    "description": "Email for confirmation notifications"
                }
            },
            "category": "timestamp"
        },
        {
            "path": "/timestamp-verify",
            "action": "l402_timestamp_verify",
            "method": "POST",
            "description": "Verify if a document hash has been anchored to the Bitcoin blockchain",
            "pricing": {
                "sats": 10
            },
            "params": {
                "hash": {
                    "type": "string",
                    "required": true,
                    "description": "64-character hex SHA-256 hash"
                }
            },
            "category": "timestamp"
        },
        {
            "path": "/timestamp-status",
            "action": "l402_timestamp_status",
            "method": "POST",
            "description": "Check status of a pending timestamp (queued/broadcasted/confirmed)",
            "pricing": {
                "sats": 10
            },
            "params": {
                "timestamp_id": {
                    "type": "string",
                    "required": false,
                    "description": "CertVera timestamp ID"
                },
                "hash": {
                    "type": "string",
                    "required": false,
                    "description": "SHA-256 hash (alternative to timestamp_id)"
                }
            },
            "category": "timestamp"
        },
        {
            "path": "/timestamp-update",
            "action": "l402_timestamp_update",
            "method": "POST",
            "description": "Update webhook URL or notification email for an existing timestamp",
            "pricing": {
                "sats": 10
            },
            "params": {
                "timestamp_id": {
                    "type": "string",
                    "required": true
                },
                "webhook_url": {
                    "type": "string",
                    "required": false
                },
                "notification_email": {
                    "type": "string",
                    "required": false
                }
            },
            "category": "timestamp"
        }
    ]
}