{"uid":"cap_hzQcPDOFkxrFW66lrvyP9","slug":"writerslogic-site-access-check-57572360","name":"WritersLogic Site Access Check","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/site-access-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"asOf":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?(Z|[+-]\\d{2}:\\d{2}))?$","maxLength":40,"description":"Reference instant (ISO date or instant) for evidence age; required only when a need sets maxAgeDays. The check never reads the clock."},"rules":{"type":"array","items":{"type":"object","required":["id","needs"],"properties":{"id":{"type":"string","maxLength":100},"mode":{"enum":["all","any","atLeast"],"type":"string","description":"How the needs combine. Default all; with forbid:true the default is any (the requirement is unmet as soon as one listed need applies), and all means only the conjunction is prohibited."},"text":{"type":"string","maxLength":500,"description":"Free text echoed in witnesses."},"needs":{"type":"array","items":{"type":"object","required":["key"],"properties":{"key":{"type":"string","maxLength":100,"description":"Evidence key this need reads."},"max":{"anyOf":[{"type":"number"},{"type":"string","maxLength":40}],"description":"Inclusive upper bound, same comparison rules as min."},"min":{"anyOf":[{"type":"number"},{"type":"string","maxLength":40}],"description":"Inclusive lower bound. Numbers compare numerically; two dotted-digit strings (1.10.2) compare segment by segment."},"oneOf":{"type":"array","items":{"description":"Allowed JSON value."},"maxItems":50,"description":"The evidence value must equal one of these."},"equals":{"description":"The evidence value must equal this JSON value (deep equality)."},"maxAgeDays":{"type":"number","maximum":36500,"minimum":0,"description":"Evidence must be dated (asOf on the evidence item) and at most this many days before the request asOf."}},"additionalProperties":false},"maxItems":20,"minItems":1},"forbid":{"type":"boolean","description":"The needs describe a prohibited condition; the requirement holds only when they are all shown not to apply."},"atLeast":{"type":"integer","maximum":20,"minimum":1,"description":"With mode atLeast: how many needs must hold."},"optional":{"type":"boolean","description":"Reported, never changes the status."},"appliesTo":{"type":"array","items":{"type":"string","maxLength":60,"description":"Action this rule governs."},"maxItems":20,"description":"Omit to apply to every action."}},"additionalProperties":false},"maxItems":100,"minItems":1,"description":"Access rules: needs that must hold, or with forbid:true, conditions that must not apply."},"action":{"type":"string","maxLength":60,"description":"The intended action, matched against each rule's appliesTo."},"evidence":{"type":"array","items":{"type":"object","required":["key"],"properties":{"key":{"type":"string","maxLength":100},"asOf":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?(Z|[+-]\\d{2}:\\d{2}))?$","maxLength":40,"description":"When this was observed (ISO date or instant)."},"value":{"description":"Observed JSON value. Omitted means the fact is present with no value; false or null means observed absent."},"source":{"type":"string","maxLength":200}},"additionalProperties":false},"maxItems":500,"description":"Observed site facts."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_aZK_eRMPk4X5j1i7UzL9R","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Evaluates whether an intended web action (crawl, read, login, submit) is permitted according to caller-supplied access rules checked against caller-observed facts, returning the blocking rule or missing evidence.","exampleAgentPrompt":"Before I crawl that product page, check whether my intended action is permitted given these rules: robots.txt was read and allows crawl, no login is required, rate-limit budget is 10 requests remaining, and no captcha was seen — does everything check out or is something blocking me?","exampleUseCases":[{"title":"Pre-crawl compliance gate for web agent","prompt":"I want to scrape articles from this news site — I've read the robots.txt and it allows my user-agent, no login is needed, and I haven't seen a captcha. Can you check my rules against those facts and tell me if I'm clear to proceed or if anything is blocking me?"},{"title":"Login-required action verification","prompt":"My agent is about to submit a form on a member portal. My rules say login must be present and terms must be accepted. I observed that login is present but I haven't confirmed terms acceptance yet — which rule is failing and what fact am I missing?"},{"title":"Rate-limit budget check before bulk requests","prompt":"I have a rule that says my rate-limit budget must be above 5 before making more requests. Right now my observed budget is 3. Run an access check and tell me which rule is blocking me from proceeding with the next batch."}],"resultDescription":"Returns a decision (permitted, blocked, or unknown) for the intended action, citing which rule blocked it (if any) and which observed fact was missing or failed, along with witness text explaining the evaluation for each rule supplied.","failureModes":["Action not covered by any supplied rule returns 'unknown' rather than permitted or denied","Missing asOf timestamp when a rule requires maxAgeDays causes the check to fail with a missing-parameter error","Malformed rule schema (missing required 'id' or 'needs') results in a validation error","Supplying contradictory evidence facts may produce unexpected rule evaluations","The endpoint never fetches the site, so stale or incorrect caller-supplied facts lead to incorrect decisions"],"whenToPreferThis":"Use this endpoint when an AI agent needs a structured, rule-based go/no-go decision before taking an action on a website, particularly when multiple access conditions (robots rules, login state, rate limits, captcha, terms acceptance) must all be satisfied together. Prefer this over ad-hoc logic when you want an auditable witness trail of which rule passed or failed. It is not a substitute for fetching or parsing the actual site — the caller must supply both the rules and the observed facts.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T18:44:48.543Z","isFirstParty":false,"canonicalSlug":"writerslogic-site-access-check-57572360"}