Safe AI Workbench Developer Docs

API Reference

Safe AI Workbench provides enterprise AI capabilities with built-in PHI detection, policy enforcement, and safety controls. The API is organized around REST principles with JSON request/response bodies.

200201400401403404413429500
PHI Detection: All requests automatically scan for Protected Health Information using Presidio AI. Check the phiDetected flag in responses.

AI Chat

Execute AI tasks with automatic PHI detection and policy enforcement. Supports file uploads and conversation continuity.

GET endpoints
View endpoints →

AI Tasks

List available AI tasks (20+ pre-built) and retrieve task definitions with variable schemas and requirements.

GET endpoints
View endpoints →

File Processing

Upload PDF, DOCX, and XLSX files for AI processing with automatic PHI detection and 24-hour retention.

GET endpoints
View endpoints →

Policies

Create and manage safety policies with warn, block, redact, or allow actions for sensitive content patterns.

GET endpoints
View endpoints →

Analytics

Retrieve usage statistics, cost estimates, PHI detection trends, and policy violation reports.

GET endpoints
View endpoints →

Groups

Manage user groups for task sharing, access control, and group-specific policy enforcement.

GET endpoints
View endpoints →

Common patterns

All endpoints require a Bearer API key in the Authorization header. Requests are rate limited per account. Handle 429 Too Many Requests by retrying with exponential backoff.

  • Every collection endpoint is paginated with limit and offset parameters.
  • Date filters expect ISO-8601 date strings (YYYY-MM-DD).
  • Identifiers are UUIDs that map to Guardian Health’s unified records across EHR vendors.
  • Metadata blocks include source, fetched_at, and pagination details for traceability.
Looking for write access? Join the waitlist in the dashboard to enable beta write operations once Epic permissions are granted.
GET

Collection endpoints

List endpoints return paginated arrays of resources. Use query parameters for filtering, searching, and pagination.

Try in Playground
GET

Resource endpoints

Detail endpoints return a single resource by ID. Combine with collection filters for robust data fetching workflows.

Try in Playground