{"uid":"cap_Cp0Nb7VgDHJe7qJ4HMGbo","slug":"sha-256-hash-api-1f0e3cdb","name":"SHA-256 Hash API","description":"Decision-grade security/due-diligence outcome reports ($20-$100) plus deterministic paid utilities ($0.001+) for software agents and automated workflows.","url":"https://api.bakhour.ca/hash/sha256","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"}}},"responseSchema":{"type":"json","example":{"digest":"2cf24dba5fb0a30e26e83b2ac5b9e29e...","algorithm":"sha256"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NmQc2dnfgLcKSQlBmJcEt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a SHA-256 cryptographic hash digest of a given input text string","exampleAgentPrompt":"Can you compute the SHA-256 hash of the text 'hello world' for me?","exampleUseCases":[{"title":"Integrity check before storing data","prompt":"Before I save this config value to the database, compute the SHA-256 hash of 'api_key:s3cr3t_v4lue' so I can store the checksum alongside it."},{"title":"Generate deterministic content identifier","prompt":"I need a unique fingerprint for this document text — can you SHA-256 hash the string 'Invoice #4821: $350 due 2024-06-01' so I can use it as a deduplication key?"},{"title":"Verify password hash for comparison","prompt":"Hash the plaintext password 'MyP@ssw0rd123' using SHA-256 so I can compare it against the stored hash in our user table."}],"resultDescription":"Returns a JSON object containing the computed SHA-256 hex digest string under the 'digest' key and the algorithm name ('sha256') under the 'algorithm' key. The digest is a deterministic 64-character hexadecimal string unique to the input.","failureModes":["Missing or empty 'text' field in request body returns a validation error","Malformed JSON request body may result in a 400 Bad Request","Payment failure or insufficient USDC balance returns a 402 Payment Required","Extremely large input strings may cause timeout or rejection","Network errors to api.bakhour.ca result in connection failures"],"whenToPreferThis":"Use this endpoint when you need a simple, deterministic SHA-256 hash of a text string without setting up a local cryptographic library — ideal for AI agents or automated workflows operating in environments where native hashing is unavailable or inconvenient, and where paying $0.001 USDC per call via x402 is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:42:37.274Z","isFirstParty":false}