PortEden REST API — PII-Safe AI Access for Email, Calendar, Drive
A REST API for backend engineers building AI features against email, calendar, drive, and SharePoint — with redaction, RBAC, and an audit log enforced on every call so the model never sees raw PII, PHI, or secrets.
Free tier · No credit card required
Authenticate Once. Call Anything.
# Generate an API key from your dashboard at my.porteden.com,# or run `porteden auth login` to mint one via the browser flow.export PE_API_KEY=pe_k1_... # Read the inbox — PortEden redacts PII before the response is builtcurl https://api.porteden.com/api/access/email/messages?q=invoice \ -H "Authorization: Bearer $PE_API_KEY" # Every call is policy-checked, redacted, and audited# Full reference: /docs/api/authentication/What Goes Wrong Without PortEden
Your AI Feature Is Sending Raw Inbox Content to OpenAI
You wired Gmail's API into a Claude or GPT-4 prompt. Every reply, attachment, and signature block now flows to a third-party processor in the clear — including SSNs, customer PII, internal account numbers, and credentials pasted into legitimate threads.
OAuth Tokens Grant Way More Than the Agent Needs
A single Google OAuth grant gives an agent access to every message, every file, every calendar event in the user's account. There's no built-in way to scope it to one inbox label or one Drive folder, and no audit trail of which messages the agent actually read.
You're Reinventing the Redaction Layer Yourself
Regex for SSNs, allow-lists for domains, custom rate limits per agent, an internal audit log nobody trusts — six engineers spend a quarter rebuilding what isn't your product. And it still misses the unstructured PII a 7B-param classifier would catch in 200 ms.
PII, PHI, and Secrets — Stripped at the Boundary.
Every response from PortEden is policy-checked and redacted before it reaches your service. The agent calling your service sees placeholders, not raw values.
Built For REST API
Redaction Enforced at the API Layer
Every response body passes through a 50+ identifier classifier (SSN, EIN, PHI, credit card, secret token, 120+ patterns) in under 200 ms. Sensitive values are replaced with stable placeholders the agent can reason about — never the underlying data.
Scoped Tokens, Not Raw OAuth
Mint a JWT scoped to one mailbox label, one Drive folder, one calendar, one set of HTTP verbs, with an expiry. Revoke any token in a single call. The agent never holds your customer's Google or Microsoft refresh token.
30+ Endpoints Across Email, Calendar, Drive, SharePoint, Tasks
List, search, read, write, and modify across Gmail, Outlook, Google Calendar, Microsoft Calendar, Google Drive, OneDrive, SharePoint, Jira, Asana, Monday, Linear, and Notion. One auth, one policy model, one error shape.
SIEM-Exportable Audit Log
Every call is logged: which token, which agent, which endpoint, which records, which redactions fired, allow-or-deny outcome. Stream to Splunk, Datadog, or S3. Reconstruct any agent's view of any user's data on demand.
30+ Endpoints, One Policy Model.
/api/auth/token/loginStart the browser login flow to mint an API key.GET/api/access/email/messagesList or search inbox messages — redacted by default.POST/api/access/email/messages/sendSend mail through PortEden, with per-recipient policy.GET/api/access/calendar/eventsList events with attendee + title redaction options.POST/api/access/calendar/eventsCreate, update, or move events — Google + Microsoft.GET/api/access/drive/filesSearch Drive / OneDrive with folder-scoped tokens.GET/api/access/sharepoint/sitesEnumerate SharePoint sites and lists by label.GET/api/access/tasks/itemsCross-tool task list across Jira, Asana, Linear, Notion.The Same Workflow, Two Very Different Outcomes
Five-Minute Quickstart. Free Tier, No Credit Card.
Mint your first scoped token, run the curl in our quickstart, watch the redaction fire in the audit log. Free tier covers 1,000 calls/month.
Frequently Asked Questions
Is the PortEden API a drop-in replacement for Gmail or Microsoft Graph?
How does authentication work?
What gets redacted, and can I tune it?
How do I scope a token to one folder or one Gmail label?
What about rate limits and SLA?
What HIPAA capabilities does this expose?
Can I run this on-prem or in our VPC?
What happens if the API is down?
Keep Exploring
Ready to Ship the AI Feature Without Shipping the PII?
Mint a scoped token, run the quickstart, watch the audit log fill in. Free tier covers 1,000 calls/month — no credit card.
On-prem or 50k+ users? Talk to sales →