# BRAINIAC Environmental Intelligence — Permit Expiry Check

> BRAINIAC Environmental Intelligence — Permit Expiry Check is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.03/call, status unknown (last checked 2026-11-12).

Checks a supplied list of environmental permits for expiry status, flagging expired and expiring-soon permits with days remaining and compliance findings.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/environmental-intelligence/permit-expiry-check?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-environmental-intelligence-permit-expiry-check-ad896126
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OJvxsHUfD7RpuDnKzoert

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability brainiac-environmental-intelligence-permit-expiry-check-ad896126 -d '<json body>'
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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).

## Request schema (JSON Schema)

```json
{
 "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":
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "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
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-environmental-intelligence-permit-expiry-check-ad896126/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
