> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cekura.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Observability

> Monitor and analyze your Retell-based voice agents

## Overview

This guide walks you through setting up and monitoring your Retell-based voice agents using Cekura's observability suite. Learn how to configure your integration and access powerful monitoring tools.

> [tab] Auto-fetch
>
> With auto-fetch enabled, Cekura automatically pulls your call data from Retell's API every 30 seconds—no webhook configuration required.
>
> **1. Create or select an agent**
>
> In your Cekura dashboard, create a new agent or select an existing one with Retell as the voice provider.
>
> **2. Add credentials to Cekura**
>
> In your Cekura Agent Settings page:
>
> 1. Select **Retell** as the voice integration provider
>
> 2. Add your Retell API key
>
> 3. Enter your Retell `agent ID`
>
> > [!NOTE]
> >
> > Auto-fetch requires your Retell API key to have the **History.Read** scope to retrieve call history. If the key lacks this scope, Cekura will receive a 403 error from Retell and automatically disable auto-fetch to prevent a recurring error loop.
>
> **3. Enable auto-fetch**
>
> Toggle on **Auto-fetch Production Calls** in the voice integration settings.
>
> **4. Test your integration**
>
> Make a test call from Retell. Within 30 seconds, your call should appear in the Cekura observability `Calls` section.
>
> > [!TIP]
> >
> > Auto-fetch is ideal for getting started quickly or when you can't configure webhooks. For real-time call data, use the webhook-based setup in the other tabs.

> [tab] No-code Retell Integration
>
> Follow these steps to connect your Retell agent with Cekura's observability suite:
>
> **1. Configure webhook URL in Retell**
>
> In your Retell dashboard, add the observability webhook URL:
>
> ```
> https://api.cekura.ai/observability/v1/retell/observe/
> ```
>
> You can configure the webhook at either level:
>
> * **Setting Webhook at Agent level:** Navigate to your agent settings and add the webhook URL for a specific agent.
>
>   ![Retell Observability Configuration - Agent Level](https://mintcdn.com/vocera/-ehbdLduj39oRXOg/images/retell-observe.png?fit=max\&auto=format\&n=-ehbdLduj39oRXOg\&q=85\&s=dc359146dfbff02671bc3991dbae00a0)
>
> * **Setting Webhook at Workspace level:** Navigate to your workspace settings and add the webhook URL for all agents in the workspace.
>
>   ![Retell Observability Configuration - Workspace Level](https://mintcdn.com/vocera/OmmjYOhhfqBcNur5/images/retell/retell-workspace-webhook-configuration.png?fit=max\&auto=format\&n=OmmjYOhhfqBcNur5\&q=85\&s=a2f04a0c326610fa88758c7d56557ed3)
>
> **2. Verify Retell API key**
>
> Go to the API keys section in your Retell dashboard. Create/ensure you have at least one API key configured with the webhook tag set.
>
> ![Retell API Key Configuration](https://mintcdn.com/vocera/OmmjYOhhfqBcNur5/images/retell/retell-api-key-with-webhook-tag.png?fit=max\&auto=format\&n=OmmjYOhhfqBcNur5\&q=85\&s=6c83545b01d603b0ad45f7368c11b6aa)
>
> **3. Add credentials to Cekura**
>
> In your Cekura Agent Settings page:
>
> 1. Add the API key from Retell with the tag `webhook`
> 2. Copy and add your `agent ID` from Retell
>
>    ![Retell Agent Settings](https://mintcdn.com/vocera/jgU_15-26qRVL6Rl/images/retell/agent-settings.png?fit=max\&auto=format\&n=jgU_15-26qRVL6Rl\&q=85\&s=1de1364c79a7808222f0770f21102eaf)
>
> **4. Test your integration**
>
> Make a test call from Retell (phone number based or webcall). Your calls should now appear in the Cekura observability `Calls` section.

> [tab] Forwarding Retell response
>
> If you already have an existing webhook setup and want to forward the Retell response to Cekura's observability suite:
>
> **1. Configure forwarding endpoint**
>
> Set up a forwarding mechanism to send the Retell webhook response to Cekura's observability endpoint:
>
> ```
> POST https://api.cekura.ai/observability/v1/observe/
> ```
>
> **2. Add authentication headers**
>
> Include your Cekura API key in the request headers:
>
> ```
> X-CEKURA-API-KEY: <your_cekura_api_key>
> Content-Type: application/json
> ```
>
> **3. Forward the request body**
>
> Forward the Retell webhook response to Cekura with the following request body structure:
>
> ```json theme={null}
> {
>   "agent": <agent_id_in_cekura>,
>   "voice_recording_url": retell_response["recording_multi_channel_url"],
>   "transcript_type": "retell",
>   "transcript_json": retell_response["transcript_with_tool_calls"],
>   "call_id": retell_response["call_id"],
>   "call_ended_reason": retell_response["disconnection_reason"]
> }
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.