{"uid":"cap_QKr-o3gKM6uhE76jaIrxV","slug":"delx-object-get-ae93edc4","name":"Delx Object Get","description":"Get object[key] with default. Call when you read optional agent JSON fields safely. Returns value, key, found 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-get?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"key":{"type":"string","description":"Input field: key."},"object":{"type":"object","description":"Input field: object."},"default":{"description":"Input field: default."}}},"responseSchema":{"type":"json","example":{"key":"a","found":true,"value":1,"schema":"delx/util-obj-get/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_L4tAauh4--R_XNt6Pjjsf","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":"Safely retrieves a value from a JSON object by key, returning the value, whether the key was found, and a default if missing.","exampleAgentPrompt":"Can you get the value of the key 'timeout' from this config object {\"retries\":3,\"verbose\":true} and return 30 as the default if it's not there?","exampleUseCases":[{"title":"Safe agent config field read","prompt":"Pull the 'max_tokens' field from this agent config JSON {\"model\":\"gpt-4\",\"temperature\":0.7} and use 1024 as the default if it's missing."},{"title":"Optional field existence check","prompt":"Check whether the key 'user_id' exists in this payload {\"session\":\"abc123\",\"timestamp\":1700000000} and give me back null as the default if it's not found."},{"title":"Fallback value for missing preference","prompt":"I have a user preferences object {\"theme\":\"dark\"} — grab the 'language' field from it and default to 'en' if it's not set."}],"resultDescription":"Returns a JSON object containing the extracted value for the requested key (or the caller-supplied default if the key is absent), the key that was looked up, and a boolean 'found' flag indicating whether the key existed in the original object.","failureModes":["Missing 'key' field causes validation error","Non-object 'object' input causes type error","Network or payment (x402) failure results in no response","Invalid JSON in object field causes parse error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to safely read optional or uncertain fields from a JSON object without risking a key-not-found error, and wants an explicit 'found' flag alongside the value. It is especially useful for agent pipelines where JSON structure is variable and a hardcoded default is needed as a fallback. Prefer it over inline code when the agent runtime does not support safe optional-chaining or when auditability of the lookup matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T06:44:41.121Z","isFirstParty":false,"canonicalSlug":"delx-object-get-ae93edc4"}