{"uid":"cap_0HZsUNfHo4NgokMeJorg_","slug":"delx-commerce-boolean-coercion-api-2e4cad85","name":"Delx Commerce — Boolean Coercion API","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/bool-coerce?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{"type":"string","description":"Input field: value."}}},"responseSchema":{"type":"json","example":{"ok":true,"value":true,"schema":"delx/util-bool-coerce/v1","source":"string"}},"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_mkUGtJL1BqzgwAoizuqGw","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":"Coerces a string input value into a boolean (true/false) with verifiable delivery, paid per-call via USDC on Base or Solana.","exampleAgentPrompt":"Can you coerce the string value 'yes' into a proper boolean true/false for me?","exampleUseCases":[{"title":"Normalize user-supplied toggle input","prompt":"I'm getting string inputs like 'on', 'true', '1', or 'yes' from a form — can you convert the value 'on' into a real boolean so I can use it in my logic?"},{"title":"Sanitize agent configuration flags","prompt":"My config file has the field value 'false' as a string — can you coerce it to an actual boolean false so I can branch correctly in my workflow?"},{"title":"Interpret ambiguous API response field","prompt":"I received the value 'TRUE' as a string from an external API — can you parse it into a proper boolean for me so I know how to handle it?"}],"resultDescription":"Returns a JSON object with an 'ok' status flag, the coerced boolean 'value' (true or false), a schema identifier ('delx/util-bool-coerce/v1'), and a 'source' string indicating the original input.","failureModes":["Unrecognizable input string that cannot be mapped to a boolean may return ok:false or an error response","Malformed request body (missing 'value' field) may result in a 400-class error","Payment failure via x402 protocol will block the call before execution"],"whenToPreferThis":"Use this endpoint when you need a reliable, deterministic, pay-per-use boolean coercion utility with verifiable delivery and no signup required — ideal for AI agents that need to normalize arbitrary string inputs (e.g. 'yes', '1', 'TRUE', 'on') into strict booleans within automated pipelines, especially when operating in a USDC-on-Base/Solana payment context.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:52.480Z","isFirstParty":false,"canonicalSlug":"delx-commerce-boolean-coercion-api-2e4cad85"}