Skip to navigation

Rasen Developer API

Build, launch and improve Rasen voice agents from your backend.

Summary

The Rasen Developer API is the server-to-server interface to the same agents, calls and results that you manage in the Rasen app. This page gives the paths through these docs, the base URL and the rules that every request shares. It does not document single operations; see the API reference.

Choose your path

GoalStart hereOutcome
Make one requestQuickstartVerify a key, then create an agent with a retry-safe request.
Build an agentAgent lifecycleCreate, configure, validate and publish a version.
Connect external systemsTools and MCP serversAdd webhook tools or discover tools from an MCP server.
Route and start callsRoute phone calls, then Calls and resultsAssign an existing number, start a call and read its result.
Operate an integrationIntegration checklistHandle keys, retries, concurrent edits, paging and support data.
Find one endpointAPI referenceSee its request, response, errors and generated examples.

Build, launch, improve

The API follows the same three-part workflow as the Rasen product:

  1. Build. Create agents, edit drafts and variables, select voices, add tools and publish immutable versions.
  2. Launch. Connect a carrier, import an existing number, assign an agent, and start individual calls or campaigns.
  3. Improve. Read transcripts, recordings, extraction, summaries and tool outcomes, export campaign evidence by batch ID, and measure usage by agent or call.

Knowledge sources and direct agent libraries are available. Publication freezes ready sources into retrieval snapshots and fallback sources into bounded prompt context. See Knowledge.

See API availability for the operation-family status.

Base URL

Every path in this API starts with /v1 on the configured dedicated API host. The host is configured per environment, so the base URL has the form below, and your environment supplies the host:

export RASEN_API_BASE="https://api.rasen.ai/v1"

The path and version do not depend on the host. This documentation uses the base URL above. The Developers page in the Rasen app shows the base URL of your environment.

Reference and examples

NeedWhere
Every operation, with its request, response, errors and examplesAPI reference
A task from start to end, with curl, Python and TypeScript samplesThe guides under Build with Rasen, starting with the Quickstart
What changed, and what goes awayChangelog and Deprecations

What every request shares

RuleWhere it is described
A workspace-owned bearer key authenticates every request and selects the workspace.Authentication
Errors carry a registered code, safe details, a retry class and the request ID.Errors
Mutations take an Idempotency-Key; a repeat returns the original answer.Idempotency and replay
Edits take If-Match with the ETag of your last read.Revisions and ETags
Lists return pages with an opaque next_cursor.Pagination
List filters repeat a query parameter; large ID sets use a POST search.Filters and limits
Requests are rate limited per key and per workspace.Rate limits
Agents, MCP servers, Knowledge sources and secrets accept your own resource_key.Resource keys

Timestamps are UTC RFC 3339. Request bodies are strict: an unknown field is refused. Response enums can gain values over time, so treat an unknown value as unknown rather than as an error. Language fields take BCP 47 tags.

What is not in this API

Key management (create, list, rotate, revoke) happens in the app. Carrier number purchase and release, training and quality APIs, platform event webhooks and granular key permissions are outside this version. Bring-your-own media is limited to agent sessions on a call leg you already own. Transcript SSE is available for verified call results; poll the REST resources for other changes.

For campaign creation and controls, see Campaigns. For provider connections and number import, see Telephony connections. To issue or revoke a hosted test-call link, see Hosted test-call links.

Your first integration

  1. Get a workspace key and store it as a managed secret. See Authentication.
  2. Run the Quickstart to verify the key and make a safe mutation.
  3. Follow the Agent lifecycle, then Calls and results.
  4. Before deployment, use the Integration checklist.