Welcome

Get started with the Amigo AI platform APIs: Classic for text-based digital health, Platform for enterprise voice and healthcare.

Official developer documentation for the Amigo AI platform.

New to Amigo? For a full understanding of Amigo's architecture and design philosophy, see the Conceptual Documentation. This developer guide focuses on API implementation and SDK usage.

Quick Start

Amigo exposes two distinct APIs for different deployment models. Pick your path.

Classic API (text-based digital health)

A single-actor system for consumer-facing chat agents, async voice notes, and WebSocket streaming.

  1. Obtain API credentials from your Amigo representative.

  2. Install an SDK: Python or TypeScript.

  3. Configure authentication using the Authentication Guide.

  4. Set your regional endpoint per Regions & Endpoints.

  5. Run the Hello World example from the tutorial.

import { AmigoClient } from '@amigo-ai/sdk';

const client = new AmigoClient({
  apiKey: process.env.AMIGO_API_KEY!,
  apiKeyId: process.env.AMIGO_API_KEY_ID!,
  userId: process.env.AMIGO_USER_ID!,
  orgId: process.env.AMIGO_ORGANIZATION_ID!
});

const createEvents = await client.conversations.createConversation({
  body: { service_id: 'your-service-id', service_version_set_name: 'release' },
  query: { response_format: 'text' },
});

let conversationId;
for await (const event of createEvents) {
  if (event.type === 'conversation-created') conversationId = event.conversation_id;
}

const interactionEvents = await client.conversations.interactWithConversation({
  conversationId,
  input: 'Hello, Amigo!',
  query: { request_format: 'text', response_format: 'text' },
});

for await (const event of interactionEvents) {
  // handle NDJSON events; break on 'interaction-complete'
}

createConversation and interactWithConversation return NDJSON event streams (async generators) that you iterate with for await, not single response objects.

Platform API (enterprise voice and healthcare)

Multi-system enterprise deployments with phone-based voice agents, EHR integration, operator escalation, and safety monitoring.

  1. Obtain a workspace API key from your Amigo representative.

  2. Set your base URL to https://api.platform.amigo.ai/v1.

  3. Authenticate with your API key as a Bearer token. See Platform API Authentication.

See the Platform API docs for voice agent setup, EHR integration, and operator workflows.

Some deployments span both. A health system might use the Platform API for inbound phone scheduling and the Classic API for a patient-facing chat experience.

API Comparison

Classic API

Platform API

Built for

Consumer digital health (text chat, voice notes)

Enterprise healthcare (phone calls, EHR, operators)

Base URL

https://api.amigo.ai/v1

https://api.platform.amigo.ai/v1

Scoping

Organization-scoped (/v1/{organization}/...)

Workspace-scoped (/v1/{workspace_id}/...)

Authentication

User JWT (per-user)

Workspace API Key (Bearer token)

Conversations

Text chat, voice notes, WebSocket streaming

Phone-based inbound and outbound calls

Tools / Skills

Versioned code packages (Tools)

LLM-backed micro-agents (Skills)

User data

User models with memory and personalization

Event-sourced world model with EHR sync

Testing

Simulations, personas, scenarios, metrics

Workspace-level workflows

Integrations

Webhooks, SQL data access, Delta Sharing

EHR connectors, FHIR, operator escalation, safety monitoring

SDKs

amigo-python-sdk, @amigo-ai/sdk

Direct HTTP

System Architecture

Documentation Structure

Section
Applies to
Description

Both

Core concepts, authentication, and regional configuration

Classic

Conversations, users, tools, simulations, metrics

Platform

Workspaces, agents, skills, voice, EHR, operators, FHIR

Classic

Official Python and TypeScript/JavaScript SDKs

Classic

SQL API, Delta Sharing, organization table schemas

Classic

Real-time event delivery and management

Classic

Role-based access control and security

Classic

Version sets, multi-org tenancy, PHI isolation

Both

Rate limits, terminology, common patterns

Support and Resources

Resource
Description

Support

Contact your account executive or agent engineer via Slack

SDK Issues

Last updated

Was this helpful?