{"uid":"cap_zcJVT57w3l3XbNh65ft0l","slug":"delx-object-empty-ac70c697","name":"Delx Object Empty","description":"Check whether an object is empty. Call when you gate agent workflows on empty JSON bodies. Returns empty flag and size for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/obj-empty","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"object":{"type":"object","description":"Input field: object."}}},"responseSchema":{"type":"json","example":{"size":0,"empty":true,"schema":"delx/util-obj-empty/v1"}},"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_3N0-ZtMJ_g8Ke6ogF7_bk","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":"Checks whether a JSON object is empty and returns an empty flag and size count.","exampleAgentPrompt":"Can you check whether this JSON object is empty for me: {\"user\": {}}? I need to know if it has any keys before I continue.","exampleUseCases":[{"title":"Guard agent workflow on empty payload","prompt":"Before we process this API response, check if the returned object is empty — if it is, I want to skip the next step entirely."},{"title":"Validate incoming webhook body","prompt":"I just received a webhook and the body is supposed to have data in it — can you tell me if this object is empty or if it actually contains fields?"},{"title":"Pre-flight check before data enrichment","prompt":"Check if this JSON object has any keys in it before we try to enrich it — I don't want to waste a call if it's completely empty."}],"resultDescription":"Returns an empty boolean flag indicating whether the object has zero keys, along with the size (number of top-level keys) of the object.","failureModes":["Non-object input (e.g. array or primitive) may return an error or unexpected result","Malformed JSON body causes a 400-level error","Missing 'object' field in request body returns an error","Network timeout or service unavailability returns 5xx"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, local, no-network check to gate agent workflows on whether a JSON object body is empty. It is ideal for pre-flight guards before expensive downstream API calls, and useful when you want a deterministic empty+size signal without writing inline logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:45:27.797Z","isFirstParty":false}