Skip to main content

Introduction

Build and operate Menace Agents programmatically from Python or TypeScript
1 min read

Menace Voice ships official SDKs for Python and TypeScript that wrap the Menace Voice REST API and the workflow builder. Use them to create or edit agents, place outbound calls, and inspect runs from your own code.

Both packages are generated from the same backend OpenAPI spec, so the method surface is equivalent — only the naming convention differs (snake_case in Python, camelCase in TypeScript).

Note

The SDK package names, DograhClient class, and DOGRAH_API_KEY / DOGRAH_API_URL variables retain upstream identifiers for compatibility. Use the Menace Voice base URL explicitly; do not rename these identifiers in code.

Install#

Authenticate#

Generate an API key at /api-keys (or http://localhost:3010/api-keys for self-hosted). See API Keys for details.

Both SDKs read the API key from the DOGRAH_API_KEY environment variable by default, and the base URL from DOGRAH_API_URL (defaults to http://localhost:8000). You can also pass them explicitly.

Note

For self-hosted deployments, swap baseUrl for your backend URL (e.g. http://localhost:8000).

Quick tour#

List the agents in your workspace:

Next steps#