{"uid":"cap_abxecsPgi7gkwfVDp62JA","slug":"brainiac-employee-document-extract-1d33bf80","name":"BRAINIAC Employee Document Extract","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/hr-operations/employee-document-extract?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"csv":{"type":"string","maxLength":200000,"minLength":1},"asOf":{"type":"string","maxLength":10,"minLength":1},"file":{"type":"object","required":["mediaType","fileBase64"],"properties":{"filename":{"type":"string","maxLength":180,"minLength":1},"mediaType":{"enum":["text/csv","application/json","text/plain"],"type":"string"},"fileBase64":{"type":"string","maxLength":12000000,"minLength":1}},"additionalProperties":false},"json":{"type":"string","maxLength":200000,"minLength":1},"text":{"type":"string","maxLength":20000,"minLength":1},"policies":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80,"minLength":1},"kind":{"type":"string","maxLength":40,"minLength":1},"name":{"type":"string","maxLength":160,"minLength":1},"match":{"type":"string","maxLength":80,"minLength":1},"stage":{"type":"string","maxLength":40,"minLength":1},"effectiveOn":{"type":"string","maxLength":20,"minLength":1}},"additionalProperties":false},"maxItems":100},"roleText":{"type":"string","maxLength":20000,"minLength":1},"documents":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","maxLength":80,"minLength":1},"issuedOn":{"type":"string","maxLength":20,"minLength":1},"expiresOn":{"type":"string","maxLength":20,"minLength":1},"employeeId":{"type":"string","maxLength":80,"minLength":1},"identifier":{"type":"string","maxLength":80,"minLength":1}},"additionalProperties":false},"maxItems":400},"employees":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80,"minLength":1},"name":{"type":"string","maxLength":120,"minLength":1},"role":{"type":"string","maxLength":120,"minLength":1},"email":{"type":"string","maxLength":254,"minLength":1},"endDate":{"type":"string","maxLength":20,"minLength":1},"startDate":{"type":"string","maxLength":20,"minLength":1}},"additionalProperties":false},"maxItems":200},"withinDays":{"type":"integer","maximum":3650,"minimum":1},"completions":{"type":"array","items":{"type":"object","properties":{"employeeId":{"type":"string","maxLength":80,"minLength":1},"requirementId":{"type":"string","maxLength":80,"minLength":1}},"additionalProperties":false},"maxItems":400},"employeeText":{"type":"string","maxLength":20000,"minLength":1},"requirements":{"type":"array","items":{"type":"object","required":["field"],"properties":{"field":{"type":"string","maxLength":40,"minLength":1}},"additionalProperties":false},"maxItems":20},"acknowledgements":{"type":"array","items":{"type":"object","properties":{"policyId":{"type":"string","maxLength":80,"minLength":1},"employeeId":{"type":"string","maxLength":80,"minLength":1},"acknowledgedOn":{"type":"string","maxLength":20,"minLength":1}},"additionalProperties":false},"maxItems":400}}},"responseSchema":{"type":"json","example":{"issues":[{"code":"identifier_differs","kind":"conflict","field":"passport","detail":"Two records of this document type list different identifiers. Neither was chosen.","employeeId":"E-100"},{"code":"expiry_differs","kind":"conflict","field":"passport","detail":"Two records of this document type list different expiry dates. Neither was chosen.","employeeId":"E-100"}],"status":"extracted","checkedAt":"2026-11-03T13:00:00.000Z","documents":[{"type":"passport","issuedOn":"2019-01-01","expiresOn":"2020-06-01","employeeId":"E-100","identifierMasked":"••••4567"},{"type":"passport","issuedOn":"2019-01-01","expiresOn":"2021-06-01","employeeId":"E-100","identifierMasked":"••••9999"}],"employees":[{"id":"E-100","name":"Ada Lovelace","role":"Engineer","endDate":"","startDate":"2024-01-15"}],"limitations":["No employment decision is made and no access is changed.","Employment law requirements are not invented. Checklist items come only from supplied policies.","This result is not a legal compliance determination.","Document numbers are masked, and email addresses are not copied into the response.","A missing item means it was not in the request."],"accessChanged":false,"documentCount":2,"employeeCount":1,"legalCompliance":false,"employmentDecision":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ESSx5i_YQ5tzC12JC5HmR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts and reconciles employee identity documents (passports, visas, etc.) from HR data, surfacing conflicts and masked identifiers against supplied policies.","exampleAgentPrompt":"Can you extract and reconcile all passport and visa documents from our employee roster — I'll paste the JSON — and flag any conflicts or mismatches as of today?","exampleUseCases":[{"title":"Expiring visa audit before renewal deadline","prompt":"We have 150 employees and I need to know which ones have visas or work permits expiring in the next 90 days — here's our HR data as a CSV. Flag any conflicts where two records disagree on the document identifier or expiry date."},{"title":"Onboarding document check for new hires","prompt":"I've got a list of employees who started in the last 30 days and I want to extract their passport and ID documents from this JSON record, check them against our standard onboarding policy, and surface anything missing or mismatched."},{"title":"Compliance review of document records against policy set","prompt":"We're preparing for an HR audit. Can you run our employee document data through these three compliance policies and give me a summary of which employees have issues, flagging any conflicting document records with masked identifiers?"}],"resultDescription":"Returns a JSON object containing a list of extracted document records (with masked identifiers and dates), a list of employees, any detected conflicts between records (e.g. differing passport numbers or expiry dates), a status field, a checkedAt timestamp, and a limitations array clarifying that no employment decision is made and results are not a legal compliance determination. Document numbers are always masked in the response.","failureModes":["Input CSV/JSON too large (exceeds maxLength limits) — request rejected","Missing required file mediaType or fileBase64 — validation error","Conflicting documents with no resolution — both listed in issues array with conflict codes","More than 400 documents or 200 employees supplied — request rejected","Malformed date strings in employee or document records — fields may be ignored or cause parsing errors","Empty input (no employees or documents provided) — empty result returned"],"whenToPreferThis":"Choose this endpoint when you need to programmatically extract and reconcile employee identity documents from raw HR data (CSV, JSON, or text) and surface conflicts or policy gaps — especially when you need masked identifiers and audit-safe output with no side effects. Prefer this over general document parsers when the use case is specifically HR document compliance, expiry tracking, or multi-record conflict detection across employee records. It is not a legal compliance tool but is well-suited for pre-audit data preparation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-16T18:35:12.875Z","isFirstParty":false,"canonicalSlug":"brainiac-employee-document-extract-1d33bf80"}