{"uid":"cap_zU9L80yE2TBpoCCDBJTmL","slug":"environment-diff-3e9ca8a7","name":"Environment Diff","description":"Compare two sets of environment variables without revealing either side. Reports what was added, removed and changed, and describes each change by length and character classes rather than by value, so it is safe to run between staging and production. Flags a value that became empty, a value whose character classes changed, and a new variable shaped like a credential.","url":"https://api.zfinia.com/x402/v1/env-diff?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"after":{"type":"object"},"before":{"type":"object"},"after_name":{"type":"string","maxLength":64},"before_name":{"type":"string","maxLength":64}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.09","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.09/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__7VGuPAcwryrGkZjwIlTe","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.09","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares two sets of environment variables and reports additions, removals, and changes using structural metadata (length, character classes) without revealing actual values — safe for staging vs. production comparisons.","exampleAgentPrompt":"Can you diff my staging and production environment variables — I'll give you both sets as objects — and tell me what was added, removed, or changed, flagging anything that looks like a new credential or became empty? Don't show me the actual values, just the structural changes.","exampleUseCases":[{"title":"Staging vs. production deploy audit","prompt":"I just pushed a new release and I want to compare my staging env vars against production to see what changed. Here are both sets — label them 'staging' and 'production'. Tell me what was added, removed, or changed structurally, and flag anything that looks like a new secret."},{"title":"Catch empty variable regressions","prompt":"After our last deploy some things broke — can you diff these two environment variable snapshots, labeled 'before-deploy' and 'after-deploy', and highlight any variables that went from a real value to an empty string?"},{"title":"Identify new credential-shaped variables","prompt":"We onboarded a new service and I want to audit what environment variables were added. Here are the env objects from before and after the onboarding — call them 'baseline' and 'post-onboarding' — and flag any new variables that are shaped like credentials or API keys."}],"resultDescription":"Returns a structured diff of the two environment variable sets: lists of added, removed, and changed variable names; for each change, a structural description (length delta, character class shift such as alphanumeric vs. base64 vs. hex); a flag if a value became empty; a flag if character classes changed; and a flag if any newly added variable resembles a credential — all without exposing the actual values of either environment.","failureModes":["Missing 'before' or 'after' object returns a validation error","Oversized environment objects may exceed payload limits","Payment failure (x402 protocol) blocks the call before processing","Non-object values for 'before' or 'after' fields cause schema rejection","Network timeouts if upstream infrastructure is unavailable"],"whenToPreferThis":"Choose this endpoint when you need to audit environment variable changes between two environments (e.g. staging vs. production) without exposing secret values — particularly in CI/CD pipelines, security audits, or incident investigations where value confidentiality is mandatory. Prefer it over plain text diffs or manual comparison when you need structured, machine-readable output that flags credential-shaped additions or empty-value regressions automatically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T18:44:53.857Z","isFirstParty":false,"canonicalSlug":"environment-diff-3e9ca8a7"}