# Rasen Developer API Instructions for AI Agents: - For clean Markdown of any page, append `.md` to the page URL - For section-specific indexes, append `/llms.txt` to any section URL - For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.rasen.ai/_mcp/server ## Docs - [Welcome to Rasen Developer API](https://docs.rasen.ai/welcome.md): Find the guide for each task of the Rasen Developer API, from the first request to call results and webhooks. - [Build and publish an agent](https://docs.rasen.ai/guides/agents.md): Create an agent with its voice, edit and validate its draft, publish it for new calls, list its versions and roll back. - [Archive and restore an agent](https://docs.rasen.ai/guides/archive-agent.md): Archive an agent to stop its calls and start its 14-day deletion window, then restore it with unarchive before the deadline. - [Tools and MCP servers](https://docs.rasen.ai/guides/tools.md): Give an agent webhook tools and tools discovered on an MCP server. - [Add a before-call tool](https://docs.rasen.ai/guides/before-call-tool.md): Add a webhook that the platform calls while an inbound call rings, so the agent starts the call with its answer in the prompt. - [Secrets and rotation](https://docs.rasen.ai/guides/secrets.md): Write-only credentials for webhook tools and MCP servers, with versions, rotation and revocation. - [Phone numbers](https://docs.rasen.ai/guides/phone-numbers.md): Assign agents to the numbers your workspace has already connected. - [Manage telephony connections](https://docs.rasen.ai/guides/telephony.md): Connect a carrier, import existing numbers, and route them to published agents. - [Connect a SIP trunk](https://docs.rasen.ai/guides/sip-trunk.md): Connect a workspace SIP setup, manage inbound connections and outbound trunks, import an existing number, and follow setup operations over SSE. - [Configure call transfers](https://docs.rasen.ai/guides/call-transfers.md): Configure named transfer destinations on an agent draft, confirm carrier setup when needed, publish the policy, and inspect transfer results. - [Create and start a campaign](https://docs.rasen.ai/guides/campaigns.md): Prepare recipients, plan, admit and start calls, then read progress and results. - [Hosted test-call links](https://docs.rasen.ai/guides/share-links.md): Enable, disable and rotate a bounded link for testing the live agent. - [Calls and results](https://docs.rasen.ai/guides/calls.md): Start and end calls, then read their state, evidence and exports. - [Read tool call logs](https://docs.rasen.ai/guides/tool-call-logs.md): List the tool calls of one call, then read the filtered arguments, result and HTTP status of each run of one webhook or MCP tool. - [Follow a call's transcript live](https://docs.rasen.ai/guides/live-transcript.md): Stream the transcript lines of a running call as Server-Sent Events, show each line as it changes, and resume after a dropped connection. - [Receive call events with webhooks](https://docs.rasen.ai/guides/webhooks.md): Register an HTTPS endpoint for call events, verify each signed request, test it, resend deliveries, rotate the secret, and disable or delete the endpoint. - [Usage](https://docs.rasen.ai/guides/usage.md): Measured quantities from the platform meter, by agent or by call. - [Knowledge](https://docs.rasen.ai/guides/knowledge.md): Add web pages, text and documents to an agent's knowledge library, wait for them to be ready, and publish them for new calls. - [Rasen Developer API](https://docs.rasen.ai/get-started/overview.md): Find where to start with the Rasen Developer API, its base URL, and the rules that every request shares. - [Quickstart](https://docs.rasen.ai/get-started/quickstart.md): Check your key, then make a mutation that is safe to retry. - [Authentication](https://docs.rasen.ai/get-started/authentication.md): Get a workspace API key, send it as a bearer token, check what it can do, and replace it without downtime. - [Build with AI assistants](https://docs.rasen.ai/get-started/ai-tools.md): Ask the documentation a question with Ask AI, or connect Claude Code, Cursor or VS Code to the Docs MCP server. - [API availability](https://docs.rasen.ai/get-started/api-availability.md): See which operation families the API contains, what each one does, and what stays outside the API. - [Integration checklist](https://docs.rasen.ai/get-started/integration-checklist.md): Prepare a reliable server-to-server integration before deployment. - [Errors](https://docs.rasen.ai/concepts/errors.md): Read the error envelope, follow the retry class, and handle conflicts and the refusals of a workspace or a call start. - [Error codes](https://docs.rasen.ai/concepts/error-codes.md): Every error code of the Rasen Developer API with its HTTP status, retry class, details and the operations that return it. - [Idempotency and replay](https://docs.rasen.ai/concepts/idempotency.md): Retry a mutation safely after a lost answer. - [Revisions and ETags](https://docs.rasen.ai/concepts/revisions.md): Edits name the version they change, so a stale edit never overwrites newer work. - [Pagination](https://docs.rasen.ai/concepts/pagination.md): Opaque cursors that last 24 hours. - [Filters and limits](https://docs.rasen.ai/concepts/filters.md): Repeated query parameters for everyday lists, a bounded POST for large ID sets. - [Rate limits](https://docs.rasen.ai/concepts/rate-limits.md): Per-key and per-workspace ceilings, reported on every response. - [Resource keys](https://docs.rasen.ai/concepts/resource-keys.md): Your own stable name for a piece of configuration. - [Webhook events](https://docs.rasen.ai/reference/webhook-events.md): Every webhook event type with its payload schema and when Rasen sends it, plus the request headers, the event envelope and the body size rules. - [Deprecations](https://docs.rasen.ai/deprecations.md): Find each deprecated or removed operation, field and value of the API, its shutdown date and its replacement. - [Changelog](https://docs.rasen.ai/changelog.md): Find each change to the Rasen Developer API by date, with the operations it touches and what you need to do. - [Changelog (all entries)](https://docs.rasen.ai/changelog/llms.txt) ## API Docs - [Check API key access](https://docs.rasen.ai/api-reference/context/get.md): API reference > Context - [List agents](https://docs.rasen.ai/api-reference/agents/list.md): API reference > Agents - [Create an agent](https://docs.rasen.ai/api-reference/agents/create.md): API reference > Agents - [Read agent identity and live version](https://docs.rasen.ai/api-reference/agents/get.md): API reference > Agents - [Rename or describe an agent](https://docs.rasen.ai/api-reference/agents/update.md): API reference > Agents - [Archive an agent](https://docs.rasen.ai/api-reference/agents/archive.md): API reference > Agents - [Unarchive an agent](https://docs.rasen.ai/api-reference/agents/unarchive.md): API reference > Agents - [Check call prerequisites](https://docs.rasen.ai/api-reference/agents/get-readiness.md): API reference > Agents - [Publish the reviewed draft](https://docs.rasen.ai/api-reference/agents/publish.md): API reference > Agents - [Restore a previous live version](https://docs.rasen.ai/api-reference/agents/rollback.md): API reference > Agents - [List one tool's runs with request and result](https://docs.rasen.ai/api-reference/agents/list-tool-runs.md): API reference > Agents - [Read editable draft](https://docs.rasen.ai/api-reference/agents/draft/get.md): API reference > Agents > Draft - [Edit draft configuration](https://docs.rasen.ai/api-reference/agents/draft/update.md): API reference > Agents > Draft - [Validate a draft change](https://docs.rasen.ai/api-reference/agents/draft/validate.md): API reference > Agents > Draft - [Review changes before publication](https://docs.rasen.ai/api-reference/agents/draft/diff.md): API reference > Agents > Draft - [List literal variable defaults](https://docs.rasen.ai/api-reference/agents/variables/list.md): API reference > Agents > Variables - [Set a literal variable default](https://docs.rasen.ai/api-reference/agents/variables/set.md): API reference > Agents > Variables - [Remove a variable default](https://docs.rasen.ai/api-reference/agents/variables/delete.md): API reference > Agents > Variables - [List publication history](https://docs.rasen.ai/api-reference/agents/versions/list.md): API reference > Agents > Versions - [Read a published version](https://docs.rasen.ai/api-reference/agents/versions/get.md): API reference > Agents > Versions - [Compare two published versions](https://docs.rasen.ai/api-reference/agents/versions/diff.md): API reference > Agents > Versions - [List authored tools](https://docs.rasen.ai/api-reference/agents/tools/list.md): API reference > Agents > Tools - [Add a tool to the draft](https://docs.rasen.ai/api-reference/agents/tools/create.md): API reference > Agents > Tools - [Read an authored tool](https://docs.rasen.ai/api-reference/agents/tools/get.md): API reference > Agents > Tools - [Replace a draft tool definition](https://docs.rasen.ai/api-reference/agents/tools/replace.md): API reference > Agents > Tools - [Delete a tool from the draft](https://docs.rasen.ai/api-reference/agents/tools/delete.md): API reference > Agents > Tools - [Validate a tool definition](https://docs.rasen.ai/api-reference/agents/tools/validate.md): API reference > Agents > Tools - [List agent knowledge snapshots](https://docs.rasen.ai/api-reference/agents/knowledge-snapshots/list.md): API reference > Agents > Knowledge Snapshots - [Build a knowledge snapshot](https://docs.rasen.ai/api-reference/agents/knowledge-snapshots/create.md): API reference > Agents > Knowledge Snapshots - [Read a knowledge snapshot](https://docs.rasen.ai/api-reference/agents/knowledge-snapshots/get.md): API reference > Agents > Knowledge Snapshots - [List an agent knowledge library](https://docs.rasen.ai/api-reference/agents/knowledge-sources/list.md): API reference > Agents > Knowledge Sources - [Add agent-owned URL or text](https://docs.rasen.ai/api-reference/agents/knowledge-sources/create.md): API reference > Agents > Knowledge Sources - [Upload agent-owned knowledge](https://docs.rasen.ai/api-reference/agents/knowledge-sources/upload.md): API reference > Agents > Knowledge Sources - [Attach a workspace knowledge source](https://docs.rasen.ai/api-reference/agents/knowledge-sources/add.md): API reference > Agents > Knowledge Sources - [Detach a shared knowledge source](https://docs.rasen.ai/api-reference/agents/knowledge-sources/remove.md): API reference > Agents > Knowledge Sources - [List supported voices](https://docs.rasen.ai/api-reference/voices/list.md): API reference > Voices - [List MCP tool sources](https://docs.rasen.ai/api-reference/mcp-servers/list.md): API reference > Mcp Servers - [Register an MCP tool source](https://docs.rasen.ai/api-reference/mcp-servers/create.md): API reference > Mcp Servers - [Read an MCP tool source](https://docs.rasen.ai/api-reference/mcp-servers/get.md): API reference > Mcp Servers - [Replace MCP connection settings](https://docs.rasen.ai/api-reference/mcp-servers/replace.md): API reference > Mcp Servers - [Disable an MCP tool source](https://docs.rasen.ai/api-reference/mcp-servers/delete.md): API reference > Mcp Servers - [Discover remote tool definitions](https://docs.rasen.ai/api-reference/mcp-servers/discover.md): API reference > Mcp Servers - [Read discovered tool definitions](https://docs.rasen.ai/api-reference/mcp-servers/list-tools.md): API reference > Mcp Servers - [List knowledge sources](https://docs.rasen.ai/api-reference/knowledge-sources/list.md): API reference > Knowledge Sources - [Add a URL or text knowledge source](https://docs.rasen.ai/api-reference/knowledge-sources/create.md): API reference > Knowledge Sources - [Upload a knowledge document](https://docs.rasen.ai/api-reference/knowledge-sources/upload.md): API reference > Knowledge Sources - [Read source readiness](https://docs.rasen.ai/api-reference/knowledge-sources/get.md): API reference > Knowledge Sources - [Delete an uncited knowledge source](https://docs.rasen.ai/api-reference/knowledge-sources/delete.md): API reference > Knowledge Sources - [Refresh a knowledge source](https://docs.rasen.ai/api-reference/knowledge-sources/reingest.md): API reference > Knowledge Sources - [Archive a knowledge source](https://docs.rasen.ai/api-reference/knowledge-sources/archive.md): API reference > Knowledge Sources - [List existing imported phone numbers](https://docs.rasen.ai/api-reference/phone-numbers/list.md): API reference > Phone Numbers - [Read assignments and setup status](https://docs.rasen.ai/api-reference/phone-numbers/get.md): API reference > Phone Numbers - [Retry inbound routing setup](https://docs.rasen.ai/api-reference/phone-numbers/provision.md): API reference > Phone Numbers - [Assign inbound routing](https://docs.rasen.ai/api-reference/phone-numbers/set-inbound-agent.md): API reference > Phone Numbers - [Remove inbound routing](https://docs.rasen.ai/api-reference/phone-numbers/remove-inbound-agent.md): API reference > Phone Numbers - [Allow an agent to use an outbound number](https://docs.rasen.ai/api-reference/phone-numbers/add-outbound-agent.md): API reference > Phone Numbers - [Remove one outbound number-agent link](https://docs.rasen.ai/api-reference/phone-numbers/remove-outbound-agent.md): API reference > Phone Numbers - [Download campaign call results](https://docs.rasen.ai/api-reference/batch-calls/download-calls.md): API reference > Batch Calls - [Download campaign transcripts](https://docs.rasen.ai/api-reference/batch-calls/download-transcripts.md): API reference > Batch Calls - [Start an agent session on your own call leg](https://docs.rasen.ai/api-reference/calls/create-agent-session.md): API reference > Calls - [List call history](https://docs.rasen.ai/api-reference/calls/list.md): API reference > Calls - [Start an outbound call](https://docs.rasen.ai/api-reference/calls/create.md): API reference > Calls - [Read call state](https://docs.rasen.ai/api-reference/calls/get.md): API reference > Calls - [Download a call recording](https://docs.rasen.ai/api-reference/calls/download-recording.md): API reference > Calls - [End a call](https://docs.rasen.ai/api-reference/calls/end.md): API reference > Calls - [Read a transcript page](https://docs.rasen.ai/api-reference/calls/get-transcript.md): API reference > Calls - [Stream a verified transcript](https://docs.rasen.ai/api-reference/calls/stream-transcript.md): API reference > Calls - [Stream the live transcript of a call](https://docs.rasen.ai/api-reference/calls/stream-live-transcript.md): API reference > Calls - [Read extracted fields](https://docs.rasen.ai/api-reference/calls/get-extraction.md): API reference > Calls - [Read the call overview summary](https://docs.rasen.ai/api-reference/calls/get-summary.md): API reference > Calls - [Search calls with a JSON filter](https://docs.rasen.ai/api-reference/calls/search.md): API reference > Calls - [Read safe per-call tool outcomes](https://docs.rasen.ai/api-reference/calls/list-tool-outcomes.md): API reference > Calls - [Read quantity usage](https://docs.rasen.ai/api-reference/usage/list.md): API reference > Usage - [Query usage with a JSON filter](https://docs.rasen.ai/api-reference/usage/query.md): API reference > Usage - [Read default tool catalogue](https://docs.rasen.ai/api-reference/default-tools/get-catalog.md): API reference > Default Tools - [List tool credential metadata](https://docs.rasen.ai/api-reference/secrets/list.md): API reference > Secrets - [Store a tool credential](https://docs.rasen.ai/api-reference/secrets/create.md): API reference > Secrets - [Read tool credential metadata](https://docs.rasen.ai/api-reference/secrets/get.md): API reference > Secrets - [Delete an unreferenced tool credential](https://docs.rasen.ai/api-reference/secrets/delete.md): API reference > Secrets - [Rotate a tool credential](https://docs.rasen.ai/api-reference/secrets/rotate.md): API reference > Secrets - [List credential consumers](https://docs.rasen.ai/api-reference/secrets/list-references.md): API reference > Secrets - [List credential versions](https://docs.rasen.ai/api-reference/secrets/versions/list.md): API reference > Secrets > Versions - [Read one credential version](https://docs.rasen.ai/api-reference/secrets/versions/get.md): API reference > Secrets > Versions - [Emergency revoke a credential version](https://docs.rasen.ai/api-reference/secrets/versions/revoke.md): API reference > Secrets > Versions - [Read hosted test-call link metadata](https://docs.rasen.ai/api-reference/agent-share-links/get.md): API reference > Agent Share Links - [Enable or disable the hosted test-call link](https://docs.rasen.ai/api-reference/agent-share-links/set.md): API reference > Agent Share Links - [Rotate the hosted test-call link](https://docs.rasen.ai/api-reference/agent-share-links/rotate.md): API reference > Agent Share Links - [List campaigns](https://docs.rasen.ai/api-reference/campaigns/list-campaigns.md): API reference > Campaigns - [Create an inline campaign](https://docs.rasen.ai/api-reference/campaigns/create-campaign.md): API reference > Campaigns - [Create a campaign from CSV or XLSX](https://docs.rasen.ai/api-reference/campaigns/upload-campaign.md): API reference > Campaigns - [Validate and preview a recipient file](https://docs.rasen.ai/api-reference/campaigns/check-campaign-recipients.md): API reference > Campaigns - [Get one campaign](https://docs.rasen.ai/api-reference/campaigns/get-campaign.md): API reference > Campaigns - [List campaign recipients](https://docs.rasen.ai/api-reference/campaigns/list-campaign-recipients.md): API reference > Campaigns - [Plan a draft campaign](https://docs.rasen.ai/api-reference/campaigns/plan-campaign.md): API reference > Campaigns - [Admit a planned campaign](https://docs.rasen.ai/api-reference/campaigns/admit-campaign.md): API reference > Campaigns - [Start an admitted campaign](https://docs.rasen.ai/api-reference/campaigns/start-campaign.md): API reference > Campaigns - [Pause a dialing campaign](https://docs.rasen.ai/api-reference/campaigns/pause-campaign.md): API reference > Campaigns - [Resume a paused campaign](https://docs.rasen.ai/api-reference/campaigns/resume-campaign.md): API reference > Campaigns - [Retry selected campaign outcomes](https://docs.rasen.ai/api-reference/campaigns/retry-campaign.md): API reference > Campaigns - [Cancel a campaign](https://docs.rasen.ai/api-reference/campaigns/cancel-campaign.md): API reference > Campaigns - [Append a campaign destination suppression](https://docs.rasen.ai/api-reference/campaigns/suppress-campaign-destination.md): API reference > Campaigns - [List telephony connections](https://docs.rasen.ai/api-reference/telephony/list-telephony-connections.md): API reference > Telephony - [Create a telephony connection](https://docs.rasen.ai/api-reference/telephony/create-telephony-connection.md): API reference > Telephony - [Get a telephony connection](https://docs.rasen.ai/api-reference/telephony/get-telephony-connection.md): API reference > Telephony - [Replace a telephony connection](https://docs.rasen.ai/api-reference/telephony/replace-telephony-connection.md): API reference > Telephony - [Disable a telephony connection](https://docs.rasen.ai/api-reference/telephony/delete-telephony-connection.md): API reference > Telephony - [List available carrier numbers](https://docs.rasen.ai/api-reference/telephony/list-available-phone-numbers.md): API reference > Telephony - [Import existing carrier numbers](https://docs.rasen.ai/api-reference/telephony/import-phone-numbers.md): API reference > Telephony - [Remove an imported number locally](https://docs.rasen.ai/api-reference/telephony/remove-imported-phone-number.md): API reference > Telephony - [Confirm a connection's transfer setup](https://docs.rasen.ai/api-reference/telephony/set-telephony-connection-transfer-flow.md): API reference > Telephony - [Get the SIP trunk setup](https://docs.rasen.ai/api-reference/telephony/get-sip-trunk-setup.md): API reference > Telephony - [Connect or resume the workspace SIP setup](https://docs.rasen.ai/api-reference/telephony/connect-sip-trunk.md): API reference > Telephony - [Disconnect the workspace SIP setup](https://docs.rasen.ai/api-reference/telephony/disconnect-sip-trunk.md): API reference > Telephony - [Create a SIP inbound connection](https://docs.rasen.ai/api-reference/telephony/create-sip-inbound-connection.md): API reference > Telephony - [Delete a SIP inbound connection](https://docs.rasen.ai/api-reference/telephony/delete-sip-inbound-connection.md): API reference > Telephony - [Update a SIP inbound connection](https://docs.rasen.ai/api-reference/telephony/update-sip-inbound-connection.md): API reference > Telephony - [Create a SIP outbound trunk](https://docs.rasen.ai/api-reference/telephony/create-sip-outbound-trunk.md): API reference > Telephony - [Delete a SIP outbound trunk](https://docs.rasen.ai/api-reference/telephony/delete-sip-outbound-trunk.md): API reference > Telephony - [Update a SIP outbound trunk](https://docs.rasen.ai/api-reference/telephony/update-sip-outbound-trunk.md): API reference > Telephony - [Import a SIP number](https://docs.rasen.ai/api-reference/telephony/import-sip-number.md): API reference > Telephony - [Regenerate the workspace SIP address](https://docs.rasen.ai/api-reference/telephony/regenerate-sip-address.md): API reference > Telephony - [Stream SIP setup and operation results](https://docs.rasen.ai/api-reference/telephony/stream-sip-trunk-setup.md): API reference > Telephony - [List webhook endpoints](https://docs.rasen.ai/api-reference/webhooks/list-endpoints.md): API reference > Webhooks - [Create a webhook endpoint](https://docs.rasen.ai/api-reference/webhooks/create-endpoint.md): API reference > Webhooks - [Get a webhook endpoint](https://docs.rasen.ai/api-reference/webhooks/get-endpoint.md): API reference > Webhooks - [Replace a webhook endpoint](https://docs.rasen.ai/api-reference/webhooks/replace-endpoint.md): API reference > Webhooks - [Delete a webhook endpoint](https://docs.rasen.ai/api-reference/webhooks/delete-endpoint.md): API reference > Webhooks - [Rotate the signing secret](https://docs.rasen.ai/api-reference/webhooks/rotate-secret.md): API reference > Webhooks - [Send a test event](https://docs.rasen.ai/api-reference/webhooks/send-test-event.md): API reference > Webhooks - [List the deliveries of an endpoint](https://docs.rasen.ai/api-reference/webhooks/list-deliveries.md): API reference > Webhooks - [Resend a delivery](https://docs.rasen.ai/api-reference/webhooks/resend-delivery.md): API reference > Webhooks ## OpenAPI Specification - [OpenAPI JSON](https://docs.rasen.ai/openapi.json): raw OpenAPI 3.1 specification for this API, JSON format - [OpenAPI YAML](https://docs.rasen.ai/openapi.yaml): raw OpenAPI 3.1 specification for this API, YAML format