> For the complete documentation index, see [llms.txt](https://docs.amigo.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.amigo.ai/developer-guide/platform-api.md).

# Platform API

- [Platform API Overview](https://docs.amigo.ai/developer-guide/platform-api/platform-api.md): Implement workspace data, agent configuration, conversations, integrations, and operations through the Amigo Platform API.
- [Authentication & API Keys](https://docs.amigo.ai/developer-guide/platform-api/platform-api/authentication.md): Authenticate to the Platform API with workspace keys or device authorization, inspect the live permission catalog, and rotate or revoke credentials safely.
- [OAuth2 (Machine-to-Machine)](https://docs.amigo.ai/developer-guide/platform-api/platform-api/oauth2.md): Machine-to-machine OAuth2 client credentials flow for programmatic access to the Platform API.
- [OAuth2 Clients](https://docs.amigo.ai/developer-guide/platform-api/platform-api/oauth2-clients.md): Understand provisioned OAuth2 clients used for machine-to-machine authentication with the client\_credentials grant.
- [Provider Access Grants](https://docs.amigo.ai/developer-guide/platform-api/platform-api/provider-access-grants.md): Provision, list, inspect, and revoke provider Scribe access grants for a workspace.
- [Sessions](https://docs.amigo.ai/developer-guide/platform-api/platform-api/sessions.md): Persistent WebSocket endpoint for text conversations with streamed agent responses.
- [Zoom Session Events (SSE)](https://docs.amigo.ai/developer-guide/platform-api/platform-api/zoom-session-events.md): Real-time Server-Sent Event stream for live Zoom session bot status and transcript updates.
- [Appointments](https://docs.amigo.ai/developer-guide/platform-api/platform-api/appointments.md): List and retrieve appointments for the current calendar day, scoped to the authenticated provider's workspace.
- [WhatsApp Setup](https://docs.amigo.ai/developer-guide/platform-api/platform-api/whatsapp-setup.md): Managed WhatsApp provisioning, business-scoped recipient identity, asynchronous replies, and the separate service voice-note API.
- [Cost to Serve](https://docs.amigo.ai/developer-guide/platform-api/platform-api/cost-to-serve.md): Retrieve workspace-level cost-to-serve data for LLM inference and infrastructure, scoped to closed months.
- [External Auth Claim Mappings](https://docs.amigo.ai/developer-guide/platform-api/platform-api/external-auth-claim-mappings.md): Create, list, get, supersede, and preview-resolve external auth claim mappings that link customer-attested claims to internal roles.
- [Topic Modeling Settings](https://docs.amigo.ai/developer-guide/platform-api/platform-api/topic-modeling-settings.md): Read and update per-workspace conversation topic analytics exposure settings.
- [Pagination](https://docs.amigo.ai/developer-guide/platform-api/platform-api/pagination.md): How Platform API list endpoints paginate - continuation-token pagination for resource lists and limit/offset for analytics and audit endpoints.
- [Health](https://docs.amigo.ai/developer-guide/platform-api/platform-api/health.md): Health check endpoints for monitoring platform subsystem status, including whether feature-flag rollouts are live.
- [Workspaces](https://docs.amigo.ai/developer-guide/platform-api/workspaces.md): Manage workspaces: tenant isolation, voice settings, speech recognition, and test caller numbers.
- [Agents](https://docs.amigo.ai/developer-guide/platform-api/workspaces/agents.md): Define agent identity, voice, background, and behaviors with immutable versioning in the Platform API.
- [Skills](https://docs.amigo.ai/developer-guide/platform-api/workspaces/skills.md): Configure LLM-backed micro-agent capabilities with system prompts, schemas, and tool access.
- [Services](https://docs.amigo.ai/developer-guide/platform-api/workspaces/services.md): Bind agents and context graphs into deployable services, manage version sets, and configure voice behavior for conversations across supported channels.
- [Use Cases & Bindings](https://docs.amigo.ai/developer-guide/platform-api/workspaces/use-cases.md): Bind a provisioned communication use case to a workspace service, inspect its routing, and remove the binding when routing should stop.
- [Scheduling Rule Sets](https://docs.amigo.ai/developer-guide/platform-api/workspaces/scheduling-rule-sets.md): Configure deterministic scheduling rules that filter appointment slots before they reach the agent.
- [Voice Configuration](https://docs.amigo.ai/developer-guide/platform-api/workspaces/voice-configuration.md): Configure per-service voice latency, fillers, barge-in, response limits, provider inheritance, call forwarding, and conversation tool availability.
- [Client Config](https://docs.amigo.ai/developer-guide/platform-api/workspaces/client-config.md): Retrieve client-safe configuration values for embedding in browser-side applications.
- [Scribe](https://docs.amigo.ai/developer-guide/platform-api/scribe.md): Access provider-owned clinical documentation sessions, retrieve transcripts, generate notes and summaries, and review visit checklists and coding suggestions.
- [Sessions](https://docs.amigo.ai/developer-guide/platform-api/scribe/sessions.md): List and retrieve provider-owned clinical documentation sessions with lifecycle state and transcript, note, summary, and coding artifact availability.
- [Artifacts](https://docs.amigo.ai/developer-guide/platform-api/scribe/artifacts.md): Retrieve Scribe transcripts, follow asynchronous artifact generation, review visit checklists, and finalize clinical notes with version checks.
- [Conversations](https://docs.amigo.ai/developer-guide/platform-api/conversations.md): Create, inspect, continue, switch, and close durable agent conversations over REST or WebSocket while preserving cross-channel history and state.
- [Runs](https://docs.amigo.ai/developer-guide/platform-api/conversations/runs.md): Browse conversation runs and best-effort projected framework history, inspect structural trajectories, and control channel-aware operator takeover by run ID.
- [Channels](https://docs.amigo.ai/developer-guide/platform-api/conversations/channels.md): Managed channel provisioning, service routing, and deferred tool-result delivery for email, SMS, iMessage, and WhatsApp.
- [Channel Manager](https://docs.amigo.ai/developer-guide/platform-api/conversations/channel-manager.md): Understand managed communication channel provisioning and the public service bindings that connect a channel use case to a workspace.
- [Calls](https://docs.amigo.ai/developer-guide/platform-api/conversations/calls.md): Start outbound voice calls with explicit service routing, startup instructions, retry correlation, and best-effort patient lineage.
- [Voice Agent](https://docs.amigo.ai/developer-guide/platform-api/conversations/voice-agent.md): Understand the real-time voice pipeline, context graph execution, tool calls, emotion adaptation, operator takeover, recordings, and post-call analysis.
- [Desktop Sessions](https://docs.amigo.ai/developer-guide/platform-api/conversations/desktop-sessions.md): The remote desktop session endpoints have been removed from the Platform API.
- [Voicemail](https://docs.amigo.ai/developer-guide/platform-api/conversations/voicemail.md): Migration guidance for the retired standalone ringless voicemail channel, with links to supported outbound phone-call and voice-agent workflows.
- [SMS](https://docs.amigo.ai/developer-guide/platform-api/conversations/sms.md): Integrate with provisioned SMS use cases through the workspace conversation lifecycle, with separate consent, suppression, and delivery controls.
- [Surfaces](https://docs.amigo.ai/developer-guide/platform-api/conversations/surfaces.md): Agent-generated data collection interfaces: SurfaceSpec, fields, channels, lifecycle, and submission handling.
- [Operators](https://docs.amigo.ai/developer-guide/platform-api/conversations/operators.md): Human-in-the-loop call monitoring, takeover, escalation management, and operator analytics.
- [SSE Events](https://docs.amigo.ai/developer-guide/platform-api/conversations/sse-events.md): Real-time workspace event stream delivered via Server-Sent Events (SSE).
- [Observer Events](https://docs.amigo.ai/developer-guide/platform-api/conversations/observer-events.md): Real-time event types delivered over the observer WebSocket connection during a voice session.
- [Serve an Agent From a Web App](https://docs.amigo.ai/developer-guide/platform-api/conversations/serve-agent-from-web-app.md): Serve a Platform agent from a customer web application using External Integration credentials and external-user session tokens.
- [Platform Functions](https://docs.amigo.ai/developer-guide/platform-api/functions.md): Register, invoke, test, list, and delete workspace SQL, Python, AI, and UDTF functions for governed agent data access and computation during conversations.
- [Workspace Data Queries](https://docs.amigo.ai/developer-guide/platform-api/functions/workspace-data-queries.md): Register, manage, and invoke parameterized SQL queries against workspace custom tables.
- [Tool Testing](https://docs.amigo.ai/developer-guide/platform-api/functions/tool-testing.md): Test context graph tools without starting a phone call. Resolve available tools, execute world tools, and understand test-mode persistence.
- [Triggers](https://docs.amigo.ai/developer-guide/platform-api/functions/triggers.md): Dispatch workspace actions from cron schedules, matching live events, or authenticated manual fire requests, with durable run history.
- [MCP Server](https://docs.amigo.ai/developer-guide/platform-api/functions/mcp-server.md): The workspace-scoped Model Context Protocol server built into the Platform API - world-model read tools for MCP clients and partner agents.
- [Agent Runs](https://docs.amigo.ai/developer-guide/platform-api/functions/agent-runs.md): Retirement of hosted framework-run dispatch and the current boundaries between run inspection, conversation execution, and harness context.
- [Harness Context](https://docs.amigo.ai/developer-guide/platform-api/functions/harness-context.md): Retrieve the neutral session-bootstrap context for a service for integration discovery without launching a hosted framework run.
- [Agent Definitions](https://docs.amigo.ai/developer-guide/platform-api/functions/agent-definitions.md): Retirement of the native-agent definition registry and the supported alternatives for service configuration and run inspection.
- [Integrations](https://docs.amigo.ai/developer-guide/platform-api/integrations.md): Connect workspaces to REST APIs with managed credentials, endpoint definitions, and isolated endpoint tests.
- [Approval-Gated Integration Writes](https://docs.amigo.ai/developer-guide/platform-api/integrations/approval-gated-integration-writes.md): Require human approval before an agent performs an integration write. Approved writes resume on the agent's next turn across streaming chat, REST, and SMS.
- [Review Queue](https://docs.amigo.ai/developer-guide/platform-api/integrations/review-queue.md): Manage private-preview external write proposals: inspect staged connector payloads, approve or reject delivery, and monitor each proposal through final status.
- [External Integrations](https://docs.amigo.ai/developer-guide/platform-api/integrations/external-integrations.md): Manage external integration credentials for scoped third-party access to external user session creation.
- [External Principals](https://docs.amigo.ai/developer-guide/platform-api/integrations/external-principals.md): Provision role assignments and grants for entity-anchored external principals, then start tightly scoped sessions through a trusted backend.
- [External User Subject-Key Binding](https://docs.amigo.ai/developer-guide/platform-api/integrations/external-user-subject-key-binding.md): Bind a backend-verified external-user subject into integration token exchange without allowing the model or browser input to choose that identity.
- [Data & World Model](https://docs.amigo.ai/developer-guide/platform-api/data-world-model.md): Query and manage workspace entities, enrichment, provenance, confidence-gated writes, migration metadata, data sources, and synchronization status.
- [Bulk Import (Migration)](https://docs.amigo.ai/developer-guide/platform-api/data-world-model/bulk-import.md): Bulk-import terminal Classic conversation metadata for migrated person entities.
- [Entity Resolve](https://docs.amigo.ai/developer-guide/platform-api/data-world-model/entity-resolve.md): Resolve a polymorphic identifier to ranked entity candidates.
- [Workspace Tables](https://docs.amigo.ai/developer-guide/platform-api/data-world-model/workspace-tables.md): Create, manage, and query workspace-owned custom data tables.
- [Customer Data Intake](https://docs.amigo.ai/developer-guide/platform-api/data-world-model/intake.md): Register governed intake datasets, upload and download catalog files, refresh mapped Drive sources, and monitor durable dataset processing and update runs.
- [Intake Sources](https://docs.amigo.ai/developer-guide/platform-api/data-world-model/intake-sources.md): Register Google Drive folder mappings, trigger explicit source syncs, inspect returned batches, and coordinate secure out-of-band source credential setup.
- [Intake Upload Links](https://docs.amigo.ai/developer-guide/platform-api/data-world-model/intake-links.md): Migration guidance for the retired standalone intake upload-link system, with links to authenticated dataset intake and patient-facing Surfaces.
- [Connector Runner](https://docs.amigo.ai/developer-guide/platform-api/data-world-model/connector-runner.md): Supported EHR, FHIR, and warehouse ingestion, plus policy-gated external delivery, observability, and outbound call dispatch.
- [FHIR](https://docs.amigo.ai/developer-guide/platform-api/data-world-model/fhir.md): FHIR endpoints for patient search, clinical timelines, resource CRUD, and bundle import.
- [Data Access (MCP)](https://docs.amigo.ai/developer-guide/platform-api/data-world-model/data-mcp.md): Query organization data through the Model Context Protocol using SQL tools compatible with any MCP client.
- [Safety & Monitoring](https://docs.amigo.ai/developer-guide/platform-api/safety.md): Agent safety guidance, supported audit and PHI-access evidence, configured retention policy, and compliance reporting boundaries.
- [Analytics & Observability](https://docs.amigo.ai/developer-guide/platform-api/safety/analytics.md): Analyze call quality, production evaluations, operational health, recordings, event streams, and external-write review activity across a workspace.
- [Insights](https://docs.amigo.ai/developer-guide/platform-api/safety/insights.md): Query workspace data, explore schema metadata, and get health digests through the platform insights endpoints.
- [Metric Store](https://docs.amigo.ai/developer-guide/platform-api/safety/metric-store.md): Trigger Metric Store setup, refresh, and poll run status through the Platform API.
- [Call Trace Analysis](https://docs.amigo.ai/developer-guide/platform-api/safety/call-trace-analysis.md): Deep call understanding with emotional arcs, key decision moments, coaching recommendations, and signal-response alignment.
- [Voice Judge](https://docs.amigo.ai/developer-guide/platform-api/safety/voice-judge.md): Retrieve audio-native voice quality scores for your voice agent calls.
- [Production Evals](https://docs.amigo.ai/developer-guide/platform-api/safety/production-evals.md): Define eval criteria for production calls and evaluate completed calls against them.
- [Simulation Coverage](https://docs.amigo.ai/developer-guide/platform-api/safety/simulation-coverage.md): Explore context graph coverage, fork and score text simulations, aggregate per-conversation verdicts, and run saved-case benchmarks with source-tagged writes.
- [Prompt Logs](https://docs.amigo.ai/developer-guide/platform-api/safety/prompt-logs.md): Query LLM prompt logs for auditing and debugging agent conversations across a workspace.
- [Trace Export](https://docs.amigo.ai/developer-guide/platform-api/safety/trace-export.md): Export durable tool-call and supported voice operational spans as OTLP/JSON for external observability collectors.
- [Platform SDK](https://docs.amigo.ai/developer-guide/platform-api/platform-sdk.md): Use the official TypeScript SDK for typed workspace resources, unified runs, streaming conversations, retries, errors, analytics, and configuration.
- [Installation](https://docs.amigo.ai/developer-guide/platform-api/platform-sdk/installation.md): Install the Platform SDK with npm or yarn and configure TypeScript for type-safe API access.
- [Configuration](https://docs.amigo.ai/developer-guide/platform-api/platform-sdk/configuration.md): Configure the Platform SDK client with API keys, workspace ID, and optional base URL overrides.
- [Quickstart](https://docs.amigo.ai/developer-guide/platform-api/platform-sdk/quickstart.md): Common Platform SDK operations: agents, services, simulations, analytics, streaming, and entities.
- [Error Handling](https://docs.amigo.ai/developer-guide/platform-api/platform-sdk/error-handling.md): Handle API errors with typed exceptions and built-in retry logic in the Platform SDK.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.amigo.ai/developer-guide/platform-api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
