{"name":"Guffles - Read a completed verification job","nodes":[{"parameters":{"content":"Select the Guffles Header Auth credential on both HTTP nodes. Replace REPLACE_ENDPOINT_UUID. Register this workflow's production HTTPS URL in Guffles Settings for verification.completed. This template verifies exact raw bytes before reading the authenticated job status. Full lead data needs a separate leads:read action. Add an idempotent destination step before acknowledgement; use the verified event ID for its key. Signed pings are acknowledged without running that action. See integrations/n8n/README.md.","width":560,"height":280},"id":"00000000-0000-4000-8000-000000000008","name":"Setup instructions","type":"n8n-nodes-base.stickyNote","typeVersion":1,"position":[0,-350]},{"parameters":{"httpMethod":"POST","path":"REPLACE_WITH_RANDOM_WEBHOOK_PATH","responseMode":"responseNode","options":{"rawBody":true}},"id":"00000000-0000-4000-8000-000000000009","name":"Guffles event","type":"n8n-nodes-base.webhook","typeVersion":2,"position":[0,0],"webhookId":"guffles-verification-completed"},{"parameters":{"method":"POST","url":"https://guffles.com/api/v1/webhooks/REPLACE_ENDPOINT_UUID/verify","authentication":"genericCredentialType","genericAuthType":"httpHeaderAuth","sendBody":true,"contentType":"binaryData","inputDataFieldName":"data","sendHeaders":true,"headerParameters":{"parameters":[{"name":"Content-Type","value":"application/json"},{"name":"X-Guffles-Delivery-Id","value":"={{ $json.headers['x-guffles-delivery-id'] }}"},{"name":"X-Guffles-Timestamp","value":"={{ $json.headers['x-guffles-timestamp'] }}"},{"name":"X-Guffles-Signature","value":"={{ $json.headers['x-guffles-signature'] }}"}]},"options":{"redirect":{"redirect":{"followRedirects":false}},"timeout":15000,"response":{"response":{"responseFormat":"json","neverError":false}}}},"id":"00000000-0000-4000-8000-000000000010","name":"Verify original bytes","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[250,0],"credentials":{"httpHeaderAuth":{"id":"REPLACE_GUFFLES_CREDENTIAL_ID","name":"Guffles workspace API key"}}},{"parameters":{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict","version":1},"conditions":[{"leftValue":"={{ $json.verified === true && $json.data.type === 'verification.completed' && !!$json.data.data.jobId }}","rightValue":"","operator":{"type":"boolean","operation":"true","singleValue":true}}],"combinator":"and"},"options":{}},"id":"00000000-0000-4000-8000-000000000011","name":"Verification completed","type":"n8n-nodes-base.if","typeVersion":2,"position":[500,0]},{"parameters":{"method":"GET","url":"={{ 'https://guffles.com/api/v1/verification/jobs/' + $json.data.data.jobId }}","authentication":"genericCredentialType","genericAuthType":"httpHeaderAuth","options":{"redirect":{"redirect":{"followRedirects":false}},"timeout":15000,"response":{"response":{"responseFormat":"json","neverError":false}}}},"id":"00000000-0000-4000-8000-000000000012","name":"Read completed job","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[750,0],"credentials":{"httpHeaderAuth":{"id":"REPLACE_GUFFLES_CREDENTIAL_ID","name":"Guffles workspace API key"}}},{"parameters":{"respondWith":"noData","options":{"responseCode":204}},"id":"00000000-0000-4000-8000-000000000013","name":"Acknowledge successful processing","type":"n8n-nodes-base.respondToWebhook","typeVersion":1.1,"position":[1300,0]}],"pinData":{},"connections":{"Guffles event":{"main":[[{"node":"Verify original bytes","type":"main","index":0}]]},"Verify original bytes":{"main":[[{"node":"Verification completed","type":"main","index":0}]]},"Verification completed":{"main":[[{"node":"Read completed job","type":"main","index":0}],[{"node":"Acknowledge successful processing","type":"main","index":0}]]},"Read completed job":{"main":[[{"node":"Acknowledge successful processing","type":"main","index":0}]]}},"active":false,"settings":{"executionOrder":"v1","saveExecutionProgress":false,"saveDataErrorExecution":"none","saveDataSuccessExecution":"none","saveManualExecutions":false},"meta":{"templateCredsSetupCompleted":false},"tags":[]}