### Clone and Run Anima Examples Source: https://github.com/anima-labs-ai/docs/blob/main/docs/examples.mdx Commands to clone the examples repository, configure environment variables, install dependencies, and execute an agent. ```bash git clone https://github.com/anima-labs-ai/examples.git cd examples/ cp .env.example .env # Add your API keys pip install -r requirements.txt # or npm install python main.py # or npx tsx main.ts ``` -------------------------------- ### Run guided onboarding Source: https://github.com/anima-labs-ai/docs/blob/main/docs/getting-started.mdx Initiate the setup flow to provision an organization, agent, and email inbox. ```bash anima onboard ``` -------------------------------- ### Windsurf CLI Setup Source: https://github.com/anima-labs-ai/docs/blob/main/docs/integrations.mdx Install the Anima MCP server for Windsurf using the CLI. ```bash anima setup-mcp install --client windsurf ``` -------------------------------- ### Install Anima Go SDK Source: https://github.com/anima-labs-ai/docs/blob/main/docs/sdks/go.mdx Use the go get command to install the official Anima Go SDK. ```bash go get github.com/anima-labs-ai/go ``` -------------------------------- ### Cursor CLI Setup Source: https://github.com/anima-labs-ai/docs/blob/main/docs/integrations.mdx Install the Anima MCP server for Cursor using the CLI. ```bash anima setup-mcp install --client cursor ``` -------------------------------- ### Install the Anima SDK Source: https://github.com/anima-labs-ai/docs/blob/main/docs/blog/give-agent-phone-number.mdx Install the required SDK for your project environment. ```bash npm install @anima-labs/sdk ``` ```bash pip install anima-labs ``` -------------------------------- ### Install and use Anima SDK for Go Source: https://github.com/anima-labs-ai/docs/blob/main/docs/getting-started.mdx Install the package and initialize the client using the ANIMA_API_KEY environment variable to send an email. ```bash go get github.com/anima-labs-ai/go ``` ```go package main import ( "context" "fmt" "log" "os" anima "github.com/anima-labs-ai/go" ) func main() { client := anima.NewClient(os.Getenv("ANIMA_API_KEY")) msg, err := client.Messages.SendEmail(context.Background(), anima.SendEmailParams{ AgentID: "agent_...", To: []string{"you@example.com"}, Subject: "Hello from my Anima agent", Body: "This email was sent by an AI agent.", }) if err != nil { log.Fatal(err) } fmt.Println(msg.ID, msg.Status) } ``` -------------------------------- ### VS Code CLI Setup Source: https://github.com/anima-labs-ai/docs/blob/main/docs/integrations.mdx Install the Anima MCP server for VS Code using the CLI. ```bash anima setup-mcp install --client vscode ``` -------------------------------- ### Install and use Anima SDK for Python Source: https://github.com/anima-labs-ai/docs/blob/main/docs/getting-started.mdx Install the package and initialize the client using the ANIMA_API_KEY environment variable to send an email. ```bash pip install anima-labs ``` ```python import os from anima import Anima anima = Anima(api_key=os.environ["ANIMA_API_KEY"]) message = anima.messages.send_email( agent_id="agent_...", to=["you@example.com"], subject="Hello from my Anima agent", body="This email was sent by an AI agent.", ) print(message.id, message.status) ``` -------------------------------- ### Claude Desktop CLI Setup Source: https://github.com/anima-labs-ai/docs/blob/main/docs/integrations.mdx Install the Anima MCP server for Claude Desktop using the CLI. ```bash anima setup-mcp install --client claude-desktop ``` -------------------------------- ### Verify CLI installation Source: https://github.com/anima-labs-ai/docs/blob/main/docs/getting-started.mdx Confirm the CLI is correctly installed and available on your PATH. ```bash anima --version ``` -------------------------------- ### Install and use Anima SDK for Node.js Source: https://github.com/anima-labs-ai/docs/blob/main/docs/getting-started.mdx Install the package and initialize the client using the ANIMA_API_KEY environment variable to send an email. ```bash npm install @anima-labs/sdk ``` ```ts import { Anima } from "@anima-labs/sdk"; const anima = new Anima({ apiKey: process.env.ANIMA_API_KEY }); const message = await anima.messages.sendEmail({ agentId: "agent_...", to: ["you@example.com"], subject: "Hello from my Anima agent", body: "This email was sent by an AI agent.", }); console.log(message.id, message.status); ``` -------------------------------- ### Install Anima CLI via npm Source: https://github.com/anima-labs-ai/docs/blob/main/docs/getting-started.mdx Recommended installation method for development machines and Node/TypeScript projects. ```bash npm install -g @anima-labs/cli ``` -------------------------------- ### Claude Code CLI Setup Source: https://github.com/anima-labs-ai/docs/blob/main/docs/integrations.mdx Install the Anima MCP server for Claude Code using the CLI. ```bash anima setup-mcp install --client claude-code ``` -------------------------------- ### Install Anima CLI via Linux binary Source: https://github.com/anima-labs-ai/docs/blob/main/docs/getting-started.mdx Installation method for containers, servers, and CI runners using signed static binaries. ```bash VERSION="v0.6.5" ARCH="$(uname -m | sed 's/x86_64/x64/; s/aarch64/arm64/')" BIN="anima-linux-${ARCH}" BASE="https://github.com/anima-labs-ai/cli/releases/download/${VERSION}" curl -fsSL -O "${BASE}/${BIN}" curl -fsSL -O "${BASE}/${BIN}.sigstore.bundle" cosign verify-blob \ --bundle "${BIN}.sigstore.bundle" \ --certificate-identity-regexp 'https://github.com/anima-labs-ai/cli/\.github/workflows/release\.yml@refs/tags/v.+' \ --certificate-oidc-issuer https://token.actions.githubusercontent.com \ "${BIN}" install -m 0755 "${BIN}" /usr/local/bin/anima ``` -------------------------------- ### Install toolkit dependencies Source: https://github.com/anima-labs-ai/docs/blob/main/docs/toolkits/langchain.mdx Install the required packages to use the Anima LangChain toolkit. ```bash npm install @anima-labs/toolkit-langchain @langchain/core # plus `langchain` if you use createAgent as below ``` -------------------------------- ### Install Anima Node.js SDK Source: https://github.com/anima-labs-ai/docs/blob/main/docs/quickstart-email.mdx Install the required Node.js package via npm. ```bash npm install @anima-labs/sdk ``` -------------------------------- ### Verify Anima CLI Installation Source: https://github.com/anima-labs-ai/docs/blob/main/docs/install.mdx Run these commands to confirm the CLI is installed correctly and the help menu is accessible. ```bash anima --version anima vault --help ``` -------------------------------- ### Install Anima CLI to custom prefix Source: https://github.com/anima-labs-ai/docs/blob/main/docs/install.mdx Use the --prefix flag to specify a custom installation directory. ```bash curl -fsSL https://get.useanima.sh | sh -s -- --prefix /opt/anima/bin ``` -------------------------------- ### Quickstart with Anima Go SDK Source: https://github.com/anima-labs-ai/docs/blob/main/docs/sdks/go.mdx Initialize the client, create an agent, and send an email using the Anima SDK. ```go package main import ( "context" "fmt" "log" "github.com/anima-labs-ai/go" ) func main() { ctx := context.Background() client := anima.NewClient("ak_...") // Create an agent agent, err := client.Agents.Create(ctx, &anima.CreateAgentParams{ Name: "Go Agent", }) if err != nil { log.Fatal(err) } fmt.Printf("Agent: %s\n", agent.ID) // Send an email _, err = client.Messages.SendEmail(ctx, &anima.SendEmailParams{ AgentID: agent.ID, To: "user@example.com", Subject: "Hello from Go", Body: "This email was sent by an AI agent using the Go SDK.", }) if err != nil { log.Fatal(err) } fmt.Println("Email sent!") } ``` -------------------------------- ### Install Anima CLI via npm, Bun, or pnpm Source: https://github.com/anima-labs-ai/docs/blob/main/docs/install.mdx Use these commands to install the Anima CLI globally for Node/TS agent projects. ```bash # npm npm install -g @anima-labs/cli # Bun bun install -g @anima-labs/cli # pnpm pnpm add -g @anima-labs/cli ``` -------------------------------- ### Install Anima product tools Source: https://github.com/anima-labs-ai/docs/blob/main/docs/ai-agents.mdx Configure the Anima MCP server for all supported clients detected on the machine. ```bash anima setup-mcp install --all ``` -------------------------------- ### Install Anima CLI via curl for Linux Source: https://github.com/anima-labs-ai/docs/blob/main/docs/install.mdx The standard installer for Linux x64 and arm64 environments, which performs automated Sigstore verification. ```bash curl -fsSL https://get.useanima.sh | sh ``` -------------------------------- ### Example DID Document Source: https://github.com/anima-labs-ai/docs/blob/main/docs/identity/did-method.mdx A sample JSON DID document containing the agent's verification methods and authentication keys. ```json { "@context": [ "https://www.w3.org/ns/did/v1", "https://w3id.org/security/suites/jws-2020/v1" ], "id": "did:web:agents.useanima.sh:cmb1x9k2l0000abcd:cmb1xa3f50001abcd", "verificationMethod": [ { "id": "did:web:agents.useanima.sh:cmb1x9k2l0000abcd:cmb1xa3f50001abcd#key-1", "type": "JsonWebKey2020", "controller": "did:web:agents.useanima.sh:cmb1x9k2l0000abcd:cmb1xa3f50001abcd", "publicKeyJwk": { "kty": "OKP", "crv": "Ed25519", "x": "…" } } ], "authentication": [ "did:web:agents.useanima.sh:cmb1x9k2l0000abcd:cmb1xa3f50001abcd#key-1" ], "assertionMethod": [ "did:web:agents.useanima.sh:cmb1x9k2l0000abcd:cmb1xa3f50001abcd#key-1" ] } ``` -------------------------------- ### Initialize Anima via skill manifest Source: https://github.com/anima-labs-ai/docs/blob/main/docs/ai-agents.mdx Instruct an MCP-aware agent to read the skill manifest and perform the setup process. ```text Read https://useanima.sh/skill.md and get me set up with Anima. ``` -------------------------------- ### Mint connect URL with Python SDK Source: https://github.com/anima-labs-ai/docs/blob/main/docs/extension-connect.mdx Mint a connect URL using the Python SDK, including async usage examples. ```python import os from anima import Anima client = Anima(api_key=os.environ["ANIMA_API_KEY"]) result = client.extension.connect(agent_id="agent_123", ttl="session") connect_url = result.connect_url # Async: from anima import AsyncAnima # result = await client.extension.connect(agent_id="agent_123", ttl="session") ``` -------------------------------- ### Create and configure an Anima agent Source: https://github.com/anima-labs-ai/docs/blob/main/docs/blog/introducing-anima.mdx This script demonstrates the complete setup of an agent, including email messaging, phone provisioning, vault credential storage, and identity retrieval. ```ts import { Anima } from "@anima-labs/sdk"; const anima = new Anima({ apiKey: "ak_..." }); // Create the agent const agent = await anima.agents.create({ name: "Procurement Agent" }); // Email: send from a real inbox await anima.messages.send_email({ agentId: agent.id, to: "vendor@example.com", subject: "PO #1042 — Confirm delivery date", body: "Please confirm the expected delivery for PO #1042.", }); // Phone: provision a number and send SMS await anima.phones.provision({ agentId: agent.id, countryCode: "US", capabilities: ["sms", "voice"], }); await anima.messages.sendSms({ agentId: agent.id, to: "+15551234567", body: "Your order has shipped. Track at https://example.com/track/1042", }); // Vault: store vendor credentials await anima.vault.provision({ agentId: agent.id }); await anima.vault.createCredential({ agentId: agent.id, type: "login", name: "Vendor Portal", username: "procurement-bot", password: "rotated-secret", uris: ["https://vendor.example.com/login"], }); // Identity: every agent gets a did:web DID + world-readable DID document // GET https://api.useanima.sh/.well-known/did/{orgId}/{agentId} console.log(agent.did); // did:web:agents.useanima.sh:… ``` -------------------------------- ### Anima CLI MCP Setup Source: https://github.com/anima-labs-ai/docs/blob/main/docs/mcp-servers.mdx Use the Anima CLI to automatically configure detected MCP clients. ```bash # Configure all detected clients (hosted gateway — the default) anima setup-mcp install --all # Use the local stdio server instead anima setup-mcp install --all --mode stdio # Check what got written, then validate it anima setup-mcp status anima setup-mcp verify --ping ``` -------------------------------- ### Add local bin to PATH Source: https://github.com/anima-labs-ai/docs/blob/main/docs/install.mdx If the installer reports that ~/.local/bin is not in your PATH, add this line to your shell configuration file. ```bash export PATH="$HOME/.local/bin:$PATH" ``` -------------------------------- ### Start a call with Python Source: https://github.com/anima-labs-ai/docs/blob/main/docs/call-intelligence.mdx Initiate a new voice call using the Anima Python SDK. ```python from anima import Anima anima = Anima(api_key="ak_...") call = anima.calls.create( agent_id="AGENT_ID", to="+15551234567", greeting="Hi, this is my Anima agent. I am calling from my own number.", ) print(call.call_id, call.state) ``` -------------------------------- ### Verify npm package attestation Source: https://github.com/anima-labs-ai/docs/blob/main/docs/install.mdx Check the npm provenance attestation for the installed package. ```bash npm view @anima-labs/cli --json | jq .dist.attestations ``` -------------------------------- ### Configure Webhooks Source: https://github.com/anima-labs-ai/docs/blob/main/docs/sdks/go.mdx Create webhooks with authentication and rate limiting. ```go // Create a webhook, with the auth Anima presents to your endpoint // (on top of the X-Anima-Signature HMAC) plus delivery throttling. rateLimit, maxAttempts := 120, 5 wh, err := client.Webhooks.Create(ctx, anima.CreateWebhookParams{ URL: "https://example.com/hooks/anima", Events: []anima.WebhookEventType{anima.WebhookEventMessageReceived}, // Also: NewBasicAuth(user, pass), NewCustomHeaderAuth(name, value), NewNoAuth(). AuthConfig: anima.NewBearerAuth("your-endpoint-token"), RateLimitPerMinute: &rateLimit, // omit for unlimited MaxAttempts: &maxAttempts, // 1-10, default 3 }) // The credential is write-only — only the scheme (wh.AuthType) is returned. fmt.Println(wh.ID, wh.AuthType) ``` -------------------------------- ### Manually Verify Anima Binary with Cosign Source: https://github.com/anima-labs-ai/docs/blob/main/docs/install.mdx Perform an end-to-end verification of the binary using its Sigstore bundle. This is recommended for air-gapped pipelines or environments where the installer is not trusted. ```bash VERSION="v0.5.0" ARCH="$(uname -m | sed 's/x86_64/x64/; s/aarch64/arm64/')" BIN="anima-linux-${ARCH}" BASE="https://github.com/anima-labs-ai/cli/releases/download/${VERSION}" curl -fsSL -O "${BASE}/${BIN}" curl -fsSL -O "${BASE}/${BIN}.sigstore.bundle" cosign verify-blob \ --bundle "${BIN}.sigstore.bundle" \ --certificate-identity-regexp 'https://github.com/anima-labs-ai/cli/\.github/workflows/release\.yml@refs/tags/v.+' \ --certificate-oidc-issuer https://token.actions.githubusercontent.com \ "${BIN}" ``` -------------------------------- ### GET /vault/totp/{id} Source: https://github.com/anima-labs-ai/docs/blob/main/docs/vault.mdx Get the current TOTP code for a credential. ```APIDOC ## GET /vault/totp/{id} ### Description Get the current TOTP code for a credential. ### Method GET ### Endpoint /vault/totp/{id}?agentId={agentId} ### Parameters #### Path Parameters - **id** (string) - Required - The ID of the credential. #### Query Parameters - **agentId** (string) - Required - The ID of the agent. ``` -------------------------------- ### Start a call with TypeScript Source: https://github.com/anima-labs-ai/docs/blob/main/docs/call-intelligence.mdx Initiate a new voice call using the Anima TypeScript SDK. ```typescript import { Anima } from "@anima-labs/sdk"; const anima = new Anima({ apiKey: "ak_..." }); const call = await anima.calls.create({ agentId: "AGENT_ID", to: "+15551234567", greeting: "Hi, this is my Anima agent. I am calling from my own number.", }); console.log(call.callId, call.state); ``` -------------------------------- ### Create Webhook with Go SDK Source: https://github.com/anima-labs-ai/docs/blob/main/docs/webhooks.mdx Configure a webhook using the Go SDK by providing CreateWebhookParams and using the NewBearerAuth helper. ```go // Go rateLimit, maxAttempts := 120, 5 client.Webhooks.Create(ctx, anima.CreateWebhookParams{ URL: "https://example.com/hooks/anima", Events: []anima.WebhookEventType{anima.WebhookEventMessageReceived}, AuthConfig: anima.NewBearerAuth("your-endpoint-token"), RateLimitPerMinute: &rateLimit, MaxAttempts: &maxAttempts, }) ``` -------------------------------- ### Create Agent and Send Email in Python Source: https://github.com/anima-labs-ai/docs/blob/main/docs/quickstart-email.mdx Initialize the Anima client with a master key, create an agent, and send an email. ```python from anima import Anima anima = Anima(api_key="mk_...") # master key — agent creation is admin-gated # Create an agent with an email inbox agent = anima.agents.create( org_id="org_...", # your organization ID, from the console name="My First Agent", slug="my-first-agent", ) print(f"Agent: {agent.id}") # Send an email anima.messages.send_email( agent_id=agent.id, to=["recipient@example.com"], subject="Hello from my AI agent", body="This email was sent by an AI agent powered by Anima.", ) print("Email sent!") ``` -------------------------------- ### Manage Wallets Source: https://github.com/anima-labs-ai/docs/blob/main/docs/sdks/go.mdx Create wallets with budget guards and check balances. ```go // Create a wallet wallet, err := client.Wallet.Create(ctx, &anima.CreateWalletParams{ AgentID: "ag_abc123", Currency: "usd", BudgetGuards: &anima.BudgetGuards{ DailyLimitCents: 50000, }, }) // Check balance balance, err := client.Wallet.GetBalance(ctx, wallet.ID) fmt.Printf("Available: %d cents\n", balance.AvailableCents) ``` -------------------------------- ### After: Environment Variable Initialization (Python) Source: https://github.com/anima-labs-ai/docs/blob/main/docs/sdks/migration.mdx The SDK now supports initialization without arguments, while still allowing explicit overrides. ```python # Python -- no arguments needed from anima import Anima anima = Anima() # Explicit key still works and takes precedence anima = Anima(api_key="ak_override") ``` -------------------------------- ### Pin Anima CLI version for Linux Source: https://github.com/anima-labs-ai/docs/blob/main/docs/install.mdx Recommended for reproducible container builds to ensure a specific version is installed. ```bash curl -fsSL https://get.useanima.sh | sh -s -- --version v0.5.0 ``` -------------------------------- ### Mint connect URL with Go SDK Source: https://github.com/anima-labs-ai/docs/blob/main/docs/extension-connect.mdx Mint a connect URL using the Go SDK. ```go import "github.com/anima-labs-ai/go" client := anima.NewClient("ak_...") res, err := client.Extension.Connect(ctx, anima.ConnectExtensionParams{ AgentID: "agent_123", // omit when using an agent key TTL: "session", }) if err != nil { log.Fatal(err) } connectURL := res.connectURL ``` -------------------------------- ### Example Agent Card JSON structure Source: https://github.com/anima-labs-ai/docs/blob/main/docs/identity/agent-cards.mdx A sample JSON document representing an agent's identity, capabilities, verification status, and contact information. ```json { "name": "Acme Purchasing Agent", "description": "Handles procurement for Acme Corp.", "url": "https://api.useanima.sh/v1/agents/cmb1xa3f50001abcd/card", "did": "did:web:agents.useanima.sh:cmb1x9k2l0000abcd:cmb1xa3f50001abcd", "capabilities": { "email": true, "phone": true, "vault": true, "address": false, "protocols": ["a2a"] }, "verification": { "level": "standard", "credentials": ["AnimaEmailVerified", "AnimaOwnerBound"] }, "trustScore": 20, "contact": { "email": "purchasing@agents.useanima.sh", "phone": "+14155550142" } } ``` -------------------------------- ### Configure Anima Client Source: https://github.com/anima-labs-ai/docs/blob/main/docs/sdks/go.mdx Initialize the client with default settings or customize it using functional options like WithBaseURL, WithTimeout, WithRetries, and WithPodID. ```go // Basic client client := anima.NewClient("ak_...") // Client with options client := anima.NewClient("ak_...", anima.WithBaseURL("https://api.useanima.sh"), anima.WithTimeout(30 * time.Second), anima.WithRetries(3), anima.WithPodID("pod_prod"), ) ``` -------------------------------- ### RFC 7807 Error Response Example Source: https://github.com/anima-labs-ai/docs/blob/main/docs/errors.mdx An example of an RFC 7807 compliant error response from the Anima API, including the 'code' and 'details' extensions. ```json { "type": "https://docs.useanima.sh/errors/rate-limited", "title": "Too Many Requests", "status": 429, "detail": "Too many requests", "instance": "/v1/email/send", "code": "RATE_LIMITED", "details": { "retryAfter": 12 }, "error": { "code": "RATE_LIMITED", "message": "Too many requests" } } ``` -------------------------------- ### Start a REST hosted call with cURL Source: https://github.com/anima-labs-ai/docs/blob/main/docs/conversational-calls.mdx Use this POST request to initiate a call where Anima manages the conversation loop. The request requires an authorization bearer token and a JSON body specifying the agent ID, recipient number, and an initial greeting. ```bash curl -X POST https://api.useanima.sh/v1/voice/calls \ -H "Authorization: Bearer ak_..." \ -H "Content-Type: application/json" \ -d '{ "agentId": "agt_...", "to": "+15551234567", "greeting": "Hi, this is my Anima agent. I am calling from my own number." }' ``` -------------------------------- ### GET /vault/shares Source: https://github.com/anima-labs-ai/docs/blob/main/docs/vault.mdx Lists credentials shared by or with an agent. ```APIDOC ## GET /vault/shares ### Description List shares (granted or received). ### Method GET ### Endpoint /vault/shares ### Query Parameters - **agentId** (string) - Required - **direction** (string) - Required ``` -------------------------------- ### GET /vault/status Source: https://github.com/anima-labs-ai/docs/blob/main/docs/vault.mdx Check the vault connection status. ```APIDOC ## GET /vault/status ### Description Check the vault connection status. ### Method GET ### Endpoint /vault/status?agentId={agentId} ### Parameters #### Query Parameters - **agentId** (string) - Required - The ID of the agent. ``` -------------------------------- ### Mint connect URL with CLI Source: https://github.com/anima-labs-ai/docs/blob/main/docs/extension-connect.mdx Use the Anima CLI to connect with master or agent keys. ```bash # Master key: pass the agent. anima extension connect --agent agent_123 --ttl session # Agent key: omit it — the agent is resolved from the key. anima extension connect # Add --json for the full payload instead of the human-readable summary. anima extension connect --agent agent_123 --json ``` -------------------------------- ### GET /api/anomaly-detection/quarantine Source: https://github.com/anima-labs-ai/docs/blob/main/docs/security/anomaly-detection.mdx Lists all agents currently in quarantine. ```APIDOC ## GET /api/anomaly-detection/quarantine ### Description List quarantined agents ### Method GET ### Endpoint https://api.useanima.sh/api/anomaly-detection/quarantine ``` -------------------------------- ### GET /api/anomaly-detection/rules Source: https://github.com/anima-labs-ai/docs/blob/main/docs/security/anomaly-detection.mdx Lists all configured detection rules. ```APIDOC ## GET /api/anomaly-detection/rules ### Description List detection rules ### Method GET ### Endpoint https://api.useanima.sh/api/anomaly-detection/rules ``` -------------------------------- ### Use Python SDK Source: https://github.com/anima-labs-ai/docs/blob/main/docs/sdks.mdx Initialize the Anima client and perform agent creation and email sending operations synchronously. ```python from anima import Anima anima = Anima(api_key="mk_...") # agent creation needs the master key # Create an agent agent = anima.agents.create( org_id="org_...", name="Researcher", slug="researcher", ) # Send email anima.messages.send_email( agent_id=agent.id, to=["user@example.com"], subject="Hello", body="Sent by an AI agent", ) ``` -------------------------------- ### After: Structured Logging Initialization (Python) Source: https://github.com/anima-labs-ai/docs/blob/main/docs/sdks/migration.mdx Enable structured logging directly in the Python SDK constructor. ```python # Python -- structured logging built in anima = Anima(log="debug") # Output: # [anima] POST /v1/agents 201 (142ms) # [anima] GET /v1/agents/ag_abc123 200 (89ms) # [anima] GET /v1/agents/ag_abc123 429 -- retrying in 1s (attempt 1/3) ``` -------------------------------- ### GET /vault/search Source: https://github.com/anima-labs-ai/docs/blob/main/docs/vault.mdx Search for credentials based on query parameters. ```APIDOC ## GET /vault/search ### Description Search for credentials based on query parameters. ### Method GET ### Endpoint /vault/search?agentId={agentId}&search={query}&type={type} ### Parameters #### Query Parameters - **agentId** (string) - Required - The ID of the agent. - **search** (string) - Optional - Search term. - **type** (string) - Optional - Credential type. ``` -------------------------------- ### GET /vault/credentials/{id} Source: https://github.com/anima-labs-ai/docs/blob/main/docs/vault.mdx Retrieve a single credential by its ID. ```APIDOC ## GET /vault/credentials/{id} ### Description Retrieve a single credential by its ID. ### Method GET ### Endpoint /vault/credentials/{id}?agentId={agentId} ### Parameters #### Path Parameters - **id** (string) - Required - The ID of the credential. #### Query Parameters - **agentId** (string) - Required - The ID of the agent. ``` -------------------------------- ### GET /vault/credentials Source: https://github.com/anima-labs-ai/docs/blob/main/docs/vault.mdx List all credentials associated with a specific agent. ```APIDOC ## GET /vault/credentials ### Description List all credentials associated with a specific agent. ### Method GET ### Endpoint /vault/credentials?agentId={agentId} ### Parameters #### Query Parameters - **agentId** (string) - Required - The ID of the agent. ``` -------------------------------- ### GET /did.json Source: https://github.com/anima-labs-ai/docs/blob/main/docs/a2a/overview.mdx Resolves an agent's did:web DID document. ```APIDOC ## GET https://agents.useanima.sh/{orgId}/{agentId}/did.json ### Description Resolve an agent's did:web DID document. ### Method GET ### Endpoint https://agents.useanima.sh/{orgId}/{agentId}/did.json ``` -------------------------------- ### Use Python Async SDK Source: https://github.com/anima-labs-ai/docs/blob/main/docs/sdks.mdx Initialize the AsyncAnima client for asynchronous agent creation. ```python from anima import AsyncAnima anima = AsyncAnima(api_key="mk_...") agent = await anima.agents.create( org_id="org_...", name="Async Agent", slug="async-agent", ) ``` -------------------------------- ### Python Per-Request Options Before Source: https://github.com/anima-labs-ai/docs/blob/main/docs/sdks/migration.mdx Shows the previous pattern of creating separate client instances to handle different timeout requirements. ```python # Python -- no per-request overrides # Had to create separate client instances for different timeouts anima_fast = Anima(api_key="ak_...", timeout=5) anima_slow = Anima(api_key="ak_...", timeout=60) ``` -------------------------------- ### GET /v1/orgs/{orgId}/compliance/dsars Source: https://github.com/anima-labs-ai/docs/blob/main/docs/compliance/reporting.mdx Lists all DSARs for the organization. ```APIDOC ## GET /v1/orgs/{orgId}/compliance/dsars ### Description Lists all DSARs for the organization. ### Method GET ### Endpoint /v1/orgs/{orgId}/compliance/dsars ### Parameters #### Path Parameters - **orgId** (string) - Required - The unique identifier of the organization. ``` -------------------------------- ### GET /api/anomaly-detection/alerts Source: https://github.com/anima-labs-ai/docs/blob/main/docs/security/anomaly-detection.mdx Lists recent anomaly alerts generated by the system. ```APIDOC ## GET /api/anomaly-detection/alerts ### Description List recent anomaly alerts ### Method GET ### Endpoint https://api.useanima.sh/api/anomaly-detection/alerts ``` -------------------------------- ### Initialize Anima with Environment Variables (Python) Source: https://github.com/anima-labs-ai/docs/blob/main/docs/quickstart-voice.mdx Initialize the Anima client in Python using environment variables. ```python # No need to pass api_key when ANIMA_API_KEY is set from anima import Anima anima = Anima() ``` -------------------------------- ### GET /api/anomaly-detection/baselines/:agentId Source: https://github.com/anima-labs-ai/docs/blob/main/docs/security/anomaly-detection.mdx Retrieves the behavioral baseline for a specific agent. ```APIDOC ## GET /api/anomaly-detection/baselines/:agentId ### Description Get agent behavioral baseline ### Method GET ### Endpoint https://api.useanima.sh/api/anomaly-detection/baselines/:agentId ### Parameters #### Path Parameters - **agentId** (string) - Required - The unique identifier of the agent. ``` -------------------------------- ### GET /v1/orgs/{orgId}/audit-logs Source: https://github.com/anima-labs-ai/docs/blob/main/docs/security/audit-log.mdx Query audit events for a specific organization. ```APIDOC ## GET /v1/orgs/{orgId}/audit-logs ### Description Query audit events for a specific organization. ### Method GET ### Endpoint /v1/orgs/{orgId}/audit-logs ### Parameters #### Path Parameters - **orgId** (string) - Required - The unique identifier of the organization. ``` -------------------------------- ### Before: Manual Logging Configuration Source: https://github.com/anima-labs-ai/docs/blob/main/docs/sdks/migration.mdx Previous versions lacked built-in structured logging, requiring manual Python logging configuration. ```python # Python -- no built-in logging import logging logging.basicConfig(level=logging.DEBUG) # ...but SDK didn't emit structured logs ``` -------------------------------- ### GET /.well-known/agent.json Source: https://github.com/anima-labs-ai/docs/blob/main/docs/a2a/overview.mdx Fetches the public Agent Card for a given agent host. ```APIDOC ## GET https:///.well-known/agent.json ### Description Fetch an agent's public Agent Card. ### Method GET ### Endpoint https:///.well-known/agent.json ``` -------------------------------- ### GET /v1/orgs/{orgId}/compliance/dashboard Source: https://github.com/anima-labs-ai/docs/blob/main/docs/compliance/reporting.mdx Retrieves the compliance dashboard metrics for the organization. ```APIDOC ## GET /v1/orgs/{orgId}/compliance/dashboard ### Description Retrieves the compliance dashboard metrics for the organization. ### Method GET ### Endpoint /v1/orgs/{orgId}/compliance/dashboard ### Parameters #### Path Parameters - **orgId** (string) - Required - The unique identifier of the organization. ``` -------------------------------- ### GET /v1/orgs/{orgId}/compliance/templates Source: https://github.com/anima-labs-ai/docs/blob/main/docs/compliance/reporting.mdx Lists all available report templates for the organization. ```APIDOC ## GET /v1/orgs/{orgId}/compliance/templates ### Description Lists all available report templates for the organization. ### Method GET ### Endpoint /v1/orgs/{orgId}/compliance/templates ### Parameters #### Path Parameters - **orgId** (string) - Required - The unique identifier of the organization. ``` -------------------------------- ### Before: Required API Key Initialization Source: https://github.com/anima-labs-ai/docs/blob/main/docs/sdks/migration.mdx Previous SDK versions required the API key to be passed explicitly during initialization. ```python # Python -- api_key was required anima = Anima(api_key="ak_...") ``` -------------------------------- ### GET /api/registry/search Source: https://github.com/anima-labs-ai/docs/blob/main/docs/registry/overview.mdx Searches the registry for agents based on query, tags, and visibility. ```APIDOC ## GET /api/registry/search ### Description Searches the registry for agents. ### Method GET ### Endpoint https://api.useanima.sh/api/registry/search ### Parameters #### Query Parameters - **query** (string) - Optional - Free-text search across name and description - **tags** (string[]) - Optional - Filter by capability tags - **visibility** (string) - Optional - Filter by visibility mode - **limit** (number) - Optional - Max results (default 20, max 100) - **cursor** (string) - Optional - Pagination cursor ``` -------------------------------- ### GET /api/registry/agents/:id Source: https://github.com/anima-labs-ai/docs/blob/main/docs/registry/overview.mdx Retrieves the registry entry for a specific agent by its ID. ```APIDOC ## GET /api/registry/agents/:id ### Description Retrieves a registry entry by agent ID. ### Method GET ### Endpoint https://api.useanima.sh/api/registry/agents/:id ### Parameters #### Path Parameters - **id** (string) - Required - The agent ID ``` -------------------------------- ### After: Environment Variable Initialization (TypeScript) Source: https://github.com/anima-labs-ai/docs/blob/main/docs/sdks/migration.mdx The SDK now supports initialization without arguments, while still allowing explicit overrides. ```ts // TypeScript -- no arguments needed import { Anima } from "@anima-labs/sdk"; const anima = new Anima(); // Explicit key still works and takes precedence const anima2 = new Anima({ apiKey: "ak_override" }); ``` -------------------------------- ### GET /v1/voice/calls/{CALL_ID}/recording Source: https://github.com/anima-labs-ai/docs/blob/main/docs/call-intelligence.mdx Fetches the audio recording for a specific call. ```APIDOC ## GET /v1/voice/calls/{CALL_ID}/recording ### Description Retrieves the audio recording of the call. ### Method GET ### Endpoint https://api.useanima.sh/v1/voice/calls/{CALL_ID}/recording ### Parameters #### Path Parameters - **CALL_ID** (string) - Required - The unique identifier of the call. ``` -------------------------------- ### After: Environment Variable Configuration Source: https://github.com/anima-labs-ai/docs/blob/main/docs/sdks/migration.mdx Set environment variables to configure the SDK without passing arguments. ```bash # Set environment variables export ANIMA_API_KEY="ak_..." export ANIMA_API_URL="https://api.useanima.sh" # optional ``` -------------------------------- ### GET /v1/voice/calls/{CALL_ID}/score Source: https://github.com/anima-labs-ai/docs/blob/main/docs/call-intelligence.mdx Fetches the AI-generated score for a specific call. ```APIDOC ## GET /v1/voice/calls/{CALL_ID}/score ### Description Retrieves the post-call score artifact. ### Method GET ### Endpoint https://api.useanima.sh/v1/voice/calls/{CALL_ID}/score ### Parameters #### Path Parameters - **CALL_ID** (string) - Required - The unique identifier of the call. ``` -------------------------------- ### GET /v1/voice/calls/{CALL_ID}/summary Source: https://github.com/anima-labs-ai/docs/blob/main/docs/call-intelligence.mdx Fetches the AI-generated summary for a specific call. ```APIDOC ## GET /v1/voice/calls/{CALL_ID}/summary ### Description Retrieves the post-call summary artifact. ### Method GET ### Endpoint https://api.useanima.sh/v1/voice/calls/{CALL_ID}/summary ### Parameters #### Path Parameters - **CALL_ID** (string) - Required - The unique identifier of the call. ``` -------------------------------- ### Check and verify MCP configuration Source: https://github.com/anima-labs-ai/docs/blob/main/docs/integrations.mdx Use these commands to inspect the current configuration status and validate connectivity. ```bash anima setup-mcp status # what's configured, where, and in which mode anima setup-mcp verify # validate the config (add --ping to test connectivity) ``` -------------------------------- ### Create Webhook with Python SDK Source: https://github.com/anima-labs-ai/docs/blob/main/docs/webhooks.mdx Configure a webhook using the Python SDK's WebhookAuthBearer class and the webhooks.create method. ```python # Python from anima import Anima, WebhookAuthBearer anima = Anima(api_key="ak_...") anima.webhooks.create( url="https://example.com/hooks/anima", events=["message.received", "message.sent"], auth_config=WebhookAuthBearer(token="your-endpoint-token"), rate_limit_per_minute=120, max_attempts=5, ) ``` -------------------------------- ### GET /v1/voice/calls/{CALL_ID}/transcript Source: https://github.com/anima-labs-ai/docs/blob/main/docs/call-intelligence.mdx Fetches the finalized transcript for a specific call. ```APIDOC ## GET /v1/voice/calls/{CALL_ID}/transcript ### Description Retrieves the finalized transcript for a completed call. ### Method GET ### Endpoint https://api.useanima.sh/v1/voice/calls/{CALL_ID}/transcript ### Parameters #### Path Parameters - **CALL_ID** (string) - Required - The unique identifier of the call. ``` -------------------------------- ### anima.NewClient Source: https://github.com/anima-labs-ai/docs/blob/main/docs/sdks/go.mdx Initializes a new Anima client instance with an API key and optional configuration settings. ```APIDOC ## anima.NewClient(apiKey string, opts ...Option) ### Description Creates a new client to interact with the Anima platform. ### Parameters - **apiKey** (string) - Required - The API key for authentication. - **opts** (...Option) - Optional - Functional options for configuring the client (e.g., WithBaseURL, WithTimeout, WithRetries, WithPodID, WithHTTPClient, WithUserAgent). ``` -------------------------------- ### GET /webhooks/event-types Source: https://github.com/anima-labs-ai/docs/blob/main/docs/webhooks.mdx Retrieves the list of supported event types that can be subscribed to for webhook notifications. ```APIDOC ## GET /webhooks/event-types ### Description Returns the list of valid event names that can be used for webhook subscriptions. ### Method GET ### Endpoint /webhooks/event-types ``` -------------------------------- ### Python Per-Request Options After Source: https://github.com/anima-labs-ai/docs/blob/main/docs/sdks/migration.mdx Demonstrates using RequestOptions to override settings like timeout and idempotency keys on a single agent creation call. ```python # Python -- per-request options from anima import RequestOptions agent = anima.agents.create( org_id="org_...", name="My Agent", slug="my-agent", options=RequestOptions( timeout=60, idempotency_key="create-agent-abc", ), ) ``` -------------------------------- ### GET /v1/orgs/{orgId}/audit-logs/{logId} Source: https://github.com/anima-labs-ai/docs/blob/main/docs/security/audit-log.mdx Retrieve details for a single audit event. ```APIDOC ## GET /v1/orgs/{orgId}/audit-logs/{logId} ### Description Get a single audit event by its ID. ### Method GET ### Endpoint /v1/orgs/{orgId}/audit-logs/{logId} ### Parameters #### Path Parameters - **orgId** (string) - Required - The unique identifier of the organization. - **logId** (string) - Required - The unique identifier of the audit log entry. ``` -------------------------------- ### Verify served documentation content Source: https://github.com/anima-labs-ai/docs/blob/main/superpowers/plans/2026-06-04-phone-voice-docs-skill.md Use curl and ripgrep to check if the live documentation and local files contain the expected tool counts and phone service descriptions. ```bash curl -s https://docs.useanima.sh/llms-full.txt | rg "77\\+ tools|Provision phone numbers and send SMS" rg -n "77\\+ tools|Provision phone numbers and send SMS" docs ``` -------------------------------- ### GET /v1/agents/{agentId}/a2a/tasks Source: https://github.com/anima-labs-ai/docs/blob/main/docs/a2a/overview.mdx Retrieves a list of tasks associated with a specific agent. ```APIDOC ## GET /v1/agents/{agentId}/a2a/tasks ### Description List an agent's tasks. ### Method GET ### Endpoint /v1/agents/{agentId}/a2a/tasks ``` -------------------------------- ### GET /v1/orgs/{orgId}/compliance/dsars/{dsarId} Source: https://github.com/anima-labs-ai/docs/blob/main/docs/compliance/reporting.mdx Retrieves the status and results of a specific DSAR. ```APIDOC ## GET /v1/orgs/{orgId}/compliance/dsars/{dsarId} ### Description Retrieves the status and results of a specific DSAR. ### Method GET ### Endpoint /v1/orgs/{orgId}/compliance/dsars/{dsarId} ### Parameters #### Path Parameters - **orgId** (string) - Required - The unique identifier of the organization. - **dsarId** (string) - Required - The unique identifier of the DSAR. ``` -------------------------------- ### Local stdio Server Execution Source: https://github.com/anima-labs-ai/docs/blob/main/docs/mcp-servers.mdx Run the local server using npx. You can optionally filter tools using the --tools flag. ```bash ANIMA_API_KEY=ak_... npx -y @anima-labs/mcp ``` ```bash npx -y @anima-labs/mcp --tools=email,vault,phone ``` -------------------------------- ### GET /v1/orgs/{orgId}/compliance/reports Source: https://github.com/anima-labs-ai/docs/blob/main/docs/compliance/reporting.mdx Lists all generated compliance reports for the specified organization. ```APIDOC ## GET /v1/orgs/{orgId}/compliance/reports ### Description Lists all generated compliance reports for the specified organization. ### Method GET ### Endpoint /v1/orgs/{orgId}/compliance/reports ### Parameters #### Path Parameters - **orgId** (string) - Required - The unique identifier of the organization. ``` -------------------------------- ### Mint connect URL with Node.js SDK Source: https://github.com/anima-labs-ai/docs/blob/main/docs/extension-connect.mdx Mint a connect URL using the Node.js SDK. ```typescript import { Anima } from "@anima-labs/sdk"; const anima = new Anima({ apiKey: process.env.ANIMA_API_KEY }); const { connectUrl } = await anima.extension.connect({ agentId: "agent_123", // omit when using an agent key ttl: "session", }); ``` -------------------------------- ### GET /v1/agents/{agentId}/credentials Source: https://github.com/anima-labs-ai/docs/blob/main/docs/identity/verifiable-credentials.mdx Retrieves a list of credentials associated with a specific agent. ```APIDOC ## GET /v1/agents/{agentId}/credentials ### Description List all credentials associated with the specified agent. ### Method GET ### Endpoint /v1/agents/{agentId}/credentials ``` -------------------------------- ### Create Webhook with CLI Source: https://github.com/anima-labs-ai/docs/blob/main/docs/webhooks.mdx Use the anima webhook create command to configure a new webhook with authentication, rate limits, and retry settings. ```bash # CLI anima webhook create \ --url https://example.com/hooks/anima \ --events message.received,message.sent \ --auth-config '{"type":"bearer","token":"your-endpoint-token"}' \ --rate-limit-per-minute 120 \ --max-attempts 5 ``` -------------------------------- ### GET /v1/voice/calls/{CALL_ID}/security Source: https://github.com/anima-labs-ai/docs/blob/main/docs/call-intelligence.mdx Fetches the security scan results for a specific call. ```APIDOC ## GET /v1/voice/calls/{CALL_ID}/security ### Description Retrieves the post-call security scan artifact. ### Method GET ### Endpoint https://api.useanima.sh/v1/voice/calls/{CALL_ID}/security ### Parameters #### Path Parameters - **CALL_ID** (string) - Required - The unique identifier of the call. ``` -------------------------------- ### Make a brokered call via CLI Source: https://github.com/anima-labs-ai/docs/blob/main/docs/vault-server-side-use.mdx Executes an authenticated POST request using the CLI. ```bash anima vault use --credential cred_abc \ --method POST --url https://api.stripe.com/v1/charges \ -H "X-Idempotency: order-42" --body '{"amount":1000}' ``` -------------------------------- ### GET Audit Logs Endpoint Source: https://github.com/anima-labs-ai/docs/blob/main/docs/security/audit-log.mdx The base endpoint for retrieving audit logs for a specific organization. ```http GET https://api.useanima.sh/v1/orgs/{orgId}/audit-logs ``` -------------------------------- ### Create an agent with automatic DID provisioning Source: https://github.com/anima-labs-ai/docs/blob/main/docs/blog/agent-identity-did.mdx Use the anima.agents.create method to initialize an agent. This automatically provisions a did:web identity and the associated DID document. ```ts const agent = await anima.agents.create({ name: "My Agent" }); // That's it — the agent's did:web identity and DID document are provisioned automatically. ``` -------------------------------- ### GET /v1/agents/{agentId}/a2a/tasks/{taskId} Source: https://github.com/anima-labs-ai/docs/blob/main/docs/a2a/overview.mdx Retrieves the current status and result of a specific task. ```APIDOC ## GET /v1/agents/{agentId}/a2a/tasks/{taskId} ### Description Get task status and result. ### Method GET ### Endpoint /v1/agents/{agentId}/a2a/tasks/{taskId} ``` -------------------------------- ### Provision and check vault status via CLI Source: https://github.com/anima-labs-ai/docs/blob/main/docs/vault.mdx Use the CLI to provision a vault or check its current status. ```bash anima vault provision --agent anima vault status --agent ``` -------------------------------- ### Get Agent DID Document API Source: https://github.com/anima-labs-ai/docs/blob/main/docs/identity/did-method.mdx Endpoint to retrieve an agent's DID document via the API. ```http GET https://api.useanima.sh/v1/agents/{agentId}/did ``` -------------------------------- ### GET /.well-known/did// Source: https://github.com/anima-labs-ai/docs/blob/main/docs/blog/agent-identity-did.mdx Fetch an agent's DID document publicly without authentication. ```APIDOC ## GET /.well-known/did// ### Description Fetch an Anima agent's DID document. This endpoint is public and does not require an API key. ### Method GET ### Endpoint https://api.useanima.sh/.well-known/did// ### Parameters #### Path Parameters - **orgId** (string) - Required - The organization identifier. - **agentId** (string) - Required - The agent identifier. ### Response #### Success Response (200) - **Content-Type** (application/did+json) - The DID document. ``` -------------------------------- ### Configure environment variables Source: https://github.com/anima-labs-ai/docs/blob/main/docs/toolkits/langchain.mdx Set the required API key and agent ID environment variables for authentication. ```bash export ANIMA_API_KEY=ak_... # your agent (or org) API key export ANIMA_AGENT_ID=agent_... # the agent to act as ``` -------------------------------- ### Claude Desktop Manual Configuration Source: https://github.com/anima-labs-ai/docs/blob/main/docs/integrations.mdx Manually configure the Anima MCP server in the Claude Desktop configuration file. ```json { "mcpServers": { "anima": { "command": "npx", "args": ["-y", "@anima-labs/mcp"], "env": { "ANIMA_API_KEY": "ak_..." } } } } ``` -------------------------------- ### GET /v1/voice/catalog Source: https://github.com/anima-labs-ai/docs/blob/main/docs/voice-catalog.mdx Retrieves a list of available voices from the catalog. Supports optional filtering by gender and language. ```APIDOC ## GET /v1/voice/catalog ### Description Retrieves a list of available voices. Each voice includes details such as id, name, gender, accent, language, and a sampleUrl for audio previews. ### Method GET ### Endpoint https://api.useanima.sh/v1/voice/catalog ### Parameters #### Query Parameters - **gender** (string) - Optional - Filter by 'male', 'female', or 'neutral'. - **language** (string) - Optional - Filter by language code ('en', 'es', 'fr', 'de', 'it', 'ja', 'nl'). ``` -------------------------------- ### Manage Identity and Credentials Source: https://github.com/anima-labs-ai/docs/blob/main/docs/sdks/go.mdx Resolve DIDs, issue credentials, and publish agent cards. ```go // Resolve DID doc, err := client.Identity.ResolveDID(ctx, "did:web:agents.useanima.sh:org_abc123:ag_abc123") // Issue a credential cred, err := client.Identity.Credentials.Issue(ctx, &anima.IssueCredentialParams{ AgentID: "ag_abc123", Type: "AgentAuthorization", Claims: map[string]any{"role": "purchasing-agent"}, }) // Publish Agent Card card, err := client.Identity.AgentCards.Publish(ctx, &anima.PublishAgentCardParams{ AgentID: "ag_abc123", Domain: "agent.acme.com", }) ``` -------------------------------- ### Retrieve documentation as raw markdown Source: https://github.com/anima-labs-ai/docs/blob/main/docs/ai-agents.mdx Fetch documentation pages directly as raw markdown using curl for easier agent ingestion. ```bash curl https://docs.useanima.sh/getting-started.md curl https://docs.useanima.sh/webhooks.md ```