{"uid":"cap_OXunRQ-UcpwJjEGp4Tsge","slug":"brainiac-aviation-document-expiry-check-a55a89d7","name":"BRAINIAC Aviation Document 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/aviation-intelligence/document-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},"flights":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"seats":{"type":"number","maximum":1000,"minimum":0},"origin":{"type":"string","maxLength":8},"source":{"type":"string","maxLength":200},"status":{"type":"string","maxLength":80},"airline":{"type":"string","maxLength":120},"distanceKm":{"type":"number","maximum":40000,"minimum":0},"fuelBurnKg":{"type":"number","maximum":1000000,"minimum":0},"passengers":{"type":"number","maximum":1000,"minimum":0},"airlineIata":{"type":"string","maxLength":8},"destination":{"type":"string","maxLength":8},"aircraftType":{"type":"string","maxLength":40},"flightNumber":{"type":"string","maxLength":20},"actualArrivalAt":{"type":"string","maxLength":40},"actualDepartureAt":{"type":"string","maxLength":40},"scheduledArrivalAt":{"type":"string","maxLength":40},"aircraftRegistration":{"type":"string","maxLength":20},"scheduledDepartureAt":{"type":"string","maxLength":40}},"additionalProperties":false},"maxItems":5000},"openSky":{"type":"object","required":["icao24"],"properties":{"icao24":{"type":"string","maxLength":12,"minLength":1}},"additionalProperties":false},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"source":{"type":"string","maxLength":200},"subject":{"type":"string","maxLength":160},"issuedAt":{"type":"string","maxLength":40},"expiresAt":{"type":"string","maxLength":40},"documentType":{"type":"string","maxLength":80},"registration":{"type":"string","maxLength":20}},"additionalProperties":false},"maxItems":2000},"diversions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"reason":{"type":"string","maxLength":200},"source":{"type":"string","maxLength":200},"flightId":{"type":"string","maxLength":80},"resumedAt":{"type":"string","maxLength":40},"divertedAt":{"type":"string","maxLength":40},"flightNumber":{"type":"string","maxLength":20},"diversionAirport":{"type":"string","maxLength":8},"finalDestination":{"type":"string","maxLength":8},"plannedDestination":{"type":"string","maxLength":8}},"additionalProperties":false},"maxItems":2000},"connections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"source":{"type":"string","maxLength":200},"airport":{"type":"string","maxLength":8},"inboundFlightId":{"type":"string","maxLength":80},"outboundFlightId":{"type":"string","maxLength":80},"minimumConnectMinutes":{"type":"number","maximum":1440,"minimum":0}},"additionalProperties":false},"maxItems":2000},"groundTimes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"source":{"type":"string","maxLength":200},"airport":{"type":"string","maxLength":8},"arrivalAt":{"type":"string","maxLength":40},"departureAt":{"type":"string","maxLength":40},"flightNumber":{"type":"string","maxLength":20},"registration":{"type":"string","maxLength":20},"scheduledGroundMinutes":{"type":"number","maximum":10000,"minimum":0}},"additionalProperties":false},"maxItems":5000},"registrations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"model":{"type":"string","maxLength":120},"owner":{"type":"string","maxLength":160},"icao24":{"type":"string","maxLength":12},"source":{"type":"string","maxLength":200},"country":{"type":"string","maxLength":80},"operator":{"type":"string","maxLength":160},"aircraftType":{"type":"string","maxLength":40},"manufacturer":{"type":"string","maxLength":120},"registration":{"type":"string","maxLength":20},"serialNumber":{"type":"string","maxLength":80}},"additionalProperties":false},"maxItems":2000},"emissionFactors":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","maxLength":200},"kgCo2PerKm":{"type":"number","maximum":1000,"minimum":0},"aircraftType":{"type":"string","maxLength":40},"kgCo2PerPassengerKm":{"type":"number","maximum":10,"minimum":0}},"additionalProperties":false},"maxItems":200},"maintenanceLogs":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","maxLength":40},"id":{"type":"string","maxLength":80},"hours":{"type":"number","maximum":100000,"minimum":0},"cycles":{"type":"number","maximum":1000000,"minimum":0},"source":{"type":"string","maxLength":200},"status":{"type":"string","maxLength":80},"taskCode":{"type":"string","maxLength":80},"description":{"type":"string","maxLength":400},"registration":{"type":"string","maxLength":20}},"additionalProperties":false},"maxItems":5000},"expiryWarningDays":{"type":"number","maximum":3650,"minimum":0}}},"responseSchema":{"type":"json","example":{"items":[{"id":"DOC1","source":"Caller-supplied","status":"expiring_soon","subject":"CoA","issuedAt":"2025-01-01","expiresAt":"2026-11-20","documentType":"certificate","registration":"G-STBA","daysRemaining":15.125,"daysRemainingSupplied":true,"regulatoryComplianceDetermined":false},{"id":"DOC2","source":"Caller-supplied","status":"expired","subject":"Insurance","issuedAt":"","expiresAt":"2026-10-01","documentType":"insurance","registration":"G-STBA","daysRemaining":-34.875,"daysRemainingSupplied":true,"regulatoryComplianceDetermined":false}],"status":"checked","findings":[{"code":"document_expiry","kind":"conflict","detail":"Document is expiring_soon (15.125 days from asOf).","subject":"DOC1"},{"code":"document_expiry","kind":"conflict","detail":"Document is expired (-34.875 days from asOf).","subject":"DOC2"}],"checkedAt":"2026-11-04T21:00:00.000Z","limitations":["Flight schedules, diversions, registrations, maintenance logs, documents, ground times, emission factors, and connections are copied only from labeled fields supplied by the caller, or from key-free OpenSky aircraft metadata when openSky.icao24 is requested.","No paid flight-tracking API or authenticated airline system is used and no API key is required.","Delay, connection, diversion, ground-time, and emissions results use only supplied times/distances/factors (or a small disclosed public-style CO2 factor table when no factor or fuel burn is supplied).","Document expiry checks compare caller-supplied expiry dates to asOf only. Regulatory compliance is not determined.","Operations reports aggregate only sections for which records were supplied or optionally fetched."],"expiredCount":1,"documentCount":2,"apiKeyRequired":false,"openSkyFetched":false,"paidProviderUsed":false,"expiringSoonCount":1,"paidFlightTrackingUsed":false,"authenticatedAirlineSystemUsed":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_paW_xIdfieBQJC3Y1mRpT","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 aviation documents (certificates, insurance, etc.) supplied by the caller against an as-of date and reports which are expired or expiring soon","exampleAgentPrompt":"Can you check these aviation documents for aircraft G-STBA and tell me which ones are expired or expiring soon as of today? I'll paste the document records including the certificate of airworthiness expiring 2026-11-20 and the insurance expiring 2026-10-01.","exampleUseCases":[{"title":"Fleet certificate expiry audit","prompt":"I have a list of aircraft documents for my fleet — CoAs, insurance, and airworthiness review certificates — can you check all of them against today's date and tell me which ones are already expired and which expire within the next 30 days?"},{"title":"Pre-flight compliance document check","prompt":"Before this charter flight, can you verify that the aircraft's certificate of airworthiness, insurance, and noise certificate are all still valid as of tomorrow, November 15 2026? I'll give you the document details."},{"title":"Automated operator document monitoring","prompt":"Run a document expiry check on these aviation records I'm uploading in CSV format, using 2026-11-04 as the reference date, and flag anything that's expired or will expire within 15 days."}],"resultDescription":"Returns a JSON object with an items array where each document has a status (expired, expiring_soon, or valid), days remaining (positive or negative), issuedAt, expiresAt, document type, subject, and aircraft registration. Also includes a findings array with coded compliance alerts, counts of expired and expiring-soon documents, and limitation disclaimers noting that only caller-supplied dates are checked and regulatory compliance is not determined.","failureModes":["Missing or malformed expiry date fields result in documents being unclassifiable","No asOf date provided may default to server time, causing unexpected results","Documents without registration or ID fields may be hard to identify in the response","Oversized CSV or JSON inputs exceeding 200,000 characters will be rejected","Regulatory compliance determination is explicitly not performed — only date comparison is done"],"whenToPreferThis":"Use this endpoint when you have aviation document records with expiry dates and need a fast, structured check of which documents are expired or expiring soon relative to a specific date. It is ideal for fleet operators, charter companies, or compliance tools that need to audit document validity without access to a live aviation registry. It works entirely from caller-supplied data, requires no API keys to external systems, and costs $0.03 USDC per call with no account required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T18:39:28.543Z","isFirstParty":false,"canonicalSlug":"brainiac-aviation-document-expiry-check-a55a89d7"}