{"uid":"cap_OJvxsHUfD7RpuDnKzoert","slug":"brainiac-environmental-intelligence-permit-expiry-check-ad896126","name":"BRAINIAC Environmental Intelligence — Permit Expiry Check","description":"Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.","url":"https://www.brainiac.software/api/v1/environmental-intelligence/permit-expiry-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"csv":{"type":"string","maxLength":200000},"asOf":{"type":"string","maxLength":40},"file":{"type":"object","required":["fileBase64"],"properties":{"role":{"type":"string","maxLength":80},"filename":{"type":"string","maxLength":180,"minLength":1},"mediaType":{"enum":["text/plain","text/csv","application/json","application/octet-stream"],"type":"string"},"fileBase64":{"type":"string","maxLength":12000000,"minLength":1}},"additionalProperties":false},"json":{"type":"string","maxLength":200000},"text":{"type":"string","maxLength":200000},"files":{"type":"array","items":{"type":"object","required":["fileBase64"],"properties":{"role":{"type":"string","maxLength":80},"filename":{"type":"string","maxLength":180,"minLength":1},"mediaType":{"enum":["text/plain","text/csv","application/json","application/octet-stream"],"type":"string"},"fileBase64":{"type":"string","maxLength":12000000,"minLength":1}},"additionalProperties":false},"maxItems":20},"factors":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"asOf":{"type":"string","maxLength":40},"name":{"type":"string","maxLength":160},"unit":{"type":"string","maxLength":40},"region":{"type":"string","maxLength":80},"source":{"type":"string","maxLength":200},"version":{"type":"string","maxLength":80},"scopeHint":{"enum":["1","2","3","any"],"type":"string"},"activityKey":{"type":"string","maxLength":120},"gCo2ePerUnit":{"type":"number","maximum":1000000000,"minimum":0},"kgCo2ePerUnit":{"type":"number","maximum":1000000,"minimum":0}},"additionalProperties":false},"maxItems":2000},"permits":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"source":{"type":"string","maxLength":200},"issuedAt":{"type":"string","maxLength":40},"authority":{"type":"string","maxLength":160},"expiresAt":{"type":"string","maxLength":40},"facilityId":{"type":"string","maxLength":80},"permitType":{"type":"string","maxLength":120},"permitNumber":{"type":"string","maxLength":80}},"additionalProperties":false},"maxItems":2000},"reports":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"source":{"type":"string","maxLength":200},"periodEnd":{"type":"string","maxLength":40},"periodStart":{"type":"string","maxLength":40},"totalKgCo2e":{"type":"number","maximum":1000000000000,"minimum":0},"scope1KgCo2e":{"type":"number","maximum":1000000000000,"minimum":0},"scope2KgCo2e":{"type":"number","maximum":1000000000000,"minimum":0},"scope3KgCo2e":{"type":"number","maximum":1000000000000,"minimum":0}},"additionalProperties":false},"maxItems":200},"suppliers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"unit":{"type":"string","maxLength":40},"source":{"type":"string","maxLength":200},"category":{"type":"string","maxLength":120},"factorId":{"type":"string","maxLength":80},"periodEnd":{"type":"string","maxLength":40},"factorAsOf":{"type":"string","maxLength":40},"supplierId":{"type":"string","maxLength":80},"periodStart":{"type":"string","maxLength":40},"spendAmount":{"type":"number","maximum":1000000000000,"minimum":0},"factorSource":{"type":"string","maxLength":200},"supplierName":{"type":"string","maxLength":160},"factorVersion":{"type":"string","maxLength":80},"reportedKgCo2e":{"type":"number","maximum":1000000000000,"minimum":0},"activityQuantity":{"type":"number","maximum":1000000000000,"minimum":0}},"additionalProperties":false},"maxItems":5000},"activities":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"name":{"type":"string","maxLength":160},"unit":{"type":"string","maxLength":40},"scope":{"enum":["1","2","3"],"type":"string"},"region":{"type":"string","maxLength":80},"source":{"type":"string","maxLength":200},"quantity":{"type":"number","maximum":1000000000000,"minimum":0},"periodEnd":{"type":"string","maxLength":40},"facilityId":{"type":"string","maxLength":80},"activityKey":{"type":"string","maxLength":120},"periodStart":{"type":"string","maxLength":40}},"additionalProperties":false},"maxItems":5000},"waterRecords":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","maxLength":40},"id":{"type":"string","maxLength":80},"source":{"type":"string","maxLength":200},"periodEnd":{"type":"string","maxLength":40},"facilityId":{"type":"string","maxLength":80},"quantityM3":{"type":"number","maximum":1000000000000,"minimum":0},"denominator":{"type":"number","maximum":1000000000000,"minimum":0},"periodStart":{"type":"string","maxLength":40},"denominatorUnit":{"type":"string","maxLength":40}},"additionalProperties":false},"maxItems":5000},"waterAnomalyZ":{"type":"number","maximum":10,"minimum":1},"wasteManifests":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"side":{"enum":["shipper","receiver","left","right","a","b"],"type":"string"},"unit":{"type":"string","maxLength":40},"source":{"type":"string","maxLength":200},"quantity":{"type":"number","maximum":1000000000000,"minimum":0},"shippedAt":{"type":"string","maxLength":40},"wasteCode":{"type":"string","maxLength":80},"facilityId":{"type":"string","maxLength":80},"receivedAt":{"type":"string","maxLength":40},"description":{"type":"string","maxLength":200},"manifestNumber":{"type":"string","maxLength":80}},"additionalProperties":false},"maxItems":5000},"carbonIntensity":{"type":"object","properties":{"fetch":{"type":"boolean"},"regionId":{"type":"integer","maximum":30,"minimum":1}},"additionalProperties":false},"expiryWarningDays":{"type":"number","maximum":3650,"minimum":0},"consistencyToleranceKg":{"type":"number","maximum":1000000000,"minimum":0}}},"responseSchema":{"type":"json","example":{"items":[{"id":"P1","source":"Caller-supplied register","status":"expiring_soon","issuedAt":"2024-01-01","authority":"Environment Agency","expiresAt":"2026-12-01","facilityId":"PLANT-1","permitType":"Air","permitNumber":"EP-100","daysRemaining":26.125,"paidEsgDatabaseUsed":false,"daysRemainingSupplied":true},{"id":"P2","source":"Caller-supplied register","status":"expired","issuedAt":"2020-01-01","authority":"Environment Agency","expiresAt":"2026-10-01","facilityId":"PLANT-1","permitType":"Water discharge","permitNumber":"WP-200","daysRemaining":-34.875,"paidEsgDatabaseUsed":false,"daysRemainingSupplied":true}],"status":"checked","findings":[{"code":"permit_status","kind":"conflict","detail":"Permit is expiring_soon (26.125 days from asOf).","subject":"P1"},{"code":"permit_status","kind":"conflict","detail":"Permit is expired (-34.875 days from asOf).","subject":"P2"}],"checkedAt":"2026-11-04T21:00:00.000Z","limitations":["Emission factors, activities, supplier rows, carbon reports, water records, permits, and waste manifests are copied only from labeled fields supplied by the caller, or from key-free Carbon Intensity API / disclosed public-style factor references when explicitly used.","No paid ESG database is used and no API key is required.","Emission outputs always echo factor source, version, and timestamp/asOf when a factor is applied. Missing values are not invented.","Disclosed public-style DEFRA/eGRID reference factors are used only when the caller does not supply a matching factor.","Evidence reports aggregate only sections for which records were supplied or optionally fetched."],"permitCount":2,"expiredCount":1,"apiKeyRequired":false,"paidProviderUsed":false,"expiringSoonCount":1,"paidEsgDatabaseUsed":false,"carbonIntensityFetched":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_r-ZIi-uCxF1eMKKhCrGpB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks a supplied list of environmental permits for expiry status, flagging expired and expiring-soon permits with days remaining and compliance findings.","exampleAgentPrompt":"Can you check our environmental permit register — here's the CSV with permit IDs, types, issued dates, and expiry dates for all our facilities — and tell me which ones are expired or expiring within the next 30 days as of today?","exampleUseCases":[{"title":"Pre-audit permit compliance sweep","prompt":"We have an environmental audit next week. Can you run through this list of our air and water discharge permits and tell me which ones are already expired or will expire in the next 60 days? I'll paste the permit register as CSV."},{"title":"ESG reporting permit validation","prompt":"For our Q4 ESG report I need to know the status of all 15 permits in this JSON register — specifically flag any that are expired or expiring soon so we can include remediation actions in the report."},{"title":"Facility permit renewal planning","prompt":"We manage 5 industrial plants and I want to know which environmental permits across all sites are expired or within 90 days of expiry as of November 1 2026. Here's our permit register — can you check it and give me a findings summary?"}],"resultDescription":"A JSON object listing each permit with its status (active, expiring_soon, or expired), days remaining (negative if expired), permit metadata (type, authority, facility, number), and an array of findings flagging conflicts. Also includes summary counts (total, expired, expiring soon) and audit metadata (checkedAt timestamp, data source disclosures, whether any paid ESG database was used).","failureModes":["Missing or malformed permit data returns no items in the response","Invalid date formats in issuedAt/expiresAt fields may cause incorrect days-remaining calculations","No asOf date supplied defaults to current server time, which may differ from expected reference date","Truncated CSV or JSON input (beyond maxLength) silently drops excess records","No external permit database is queried — only caller-supplied data is evaluated, so missing permits are not detected"],"whenToPreferThis":"Use this endpoint when you have a structured list of environmental permits and need to quickly classify each as expired, expiring soon, or active, without connecting to a paid ESG database or requiring an API key. It is ideal for compliance pre-checks, ESG audit preparation, and permit renewal planning where the caller already holds the permit register and wants a findings report with days-remaining calculations. Prefer alternatives if you need to look up permit details from an external regulatory database or need real-time regulatory authority data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T18:39:08.340Z","isFirstParty":false,"canonicalSlug":"brainiac-environmental-intelligence-permit-expiry-check-ad896126"}