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

# Get Call Session Detail

> Get Call Session Detail with Transcripts.

### Authorizations

<ParamField header="X-Api-Key" type="string" required>
  Your Agni API key used to authenticate the request. Pass it in the `X-Api-Key` header. Find or rotate it from your Ravan AI account settings.
</ParamField>

***

### Path Parameters

<ParamField path="id" type="string" required>
  The unique ID of the resource in the path. Use the ID returned by the related create or list endpoint.
</ParamField>

***

### Response

<ResponseField name="success" type="boolean">
  Whether the request succeeded.
</ResponseField>

<ResponseField name="message" type="string">
  Human-readable status message.
</ResponseField>

<ResponseField name="data" type="object">
  Full call session with embedded transcripts.

  <Expandable title="data">
    <ResponseField name="id" type="string">
      Session ID
    </ResponseField>

    <ResponseField name="agent_id" type="string">
      Agent ID
    </ResponseField>

    <ResponseField name="agent_name" type="string">
      Agent name
    </ResponseField>

    <ResponseField name="organization_id" type="string">
      Organization ID
    </ResponseField>

    <ResponseField name="caller_number" type="string">
      Caller phone number
    </ResponseField>

    <ResponseField name="callee_number" type="string">
      Callee phone number
    </ResponseField>

    <ResponseField name="channel" type="string">
      Call channel
    </ResponseField>

    <ResponseField name="status" type="string">
      Call status
    </ResponseField>

    <ResponseField name="recording_url" type="string">
      Pre-signed recording URL
    </ResponseField>

    <ResponseField name="duration_sec" type="integer">
      Duration in seconds
    </ResponseField>

    <ResponseField name="cost_total" type="string">
      Total call cost
    </ResponseField>

    <ResponseField name="credit_breakdown" type="object">
      Credit usage breakdown for the call
    </ResponseField>

    <ResponseField name="disconnect_reason" type="string">
      Reason for disconnect
    </ResponseField>

    <ResponseField name="metadata" type="object">
      Custom metadata
    </ResponseField>

    <ResponseField name="post_call_analysis_result" type="object">
      Post-call analysis result
    </ResponseField>

    <ResponseField name="started_at" type="string">
      Start timestamp
    </ResponseField>

    <ResponseField name="ended_at" type="string">
      End timestamp
    </ResponseField>

    <ResponseField name="created_at" type="string">
      Creation timestamp
    </ResponseField>

    <ResponseField name="transcripts" type="array">
      Array of transcript entries
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": <boolean>,
    "message": "<string>",
    "data": {
      "id": "<string>",
      "agent_id": "<string>",
      "agent_name": "<string>",
      "organization_id": "<string>",
      "caller_number": "<string>",
      "callee_number": "<string>",
      "channel": "<string>",
      "status": "<string>",
      "recording_url": "<string>",
      "duration_sec": <integer>,
      "cost_total": "<string>",
      "credit_breakdown": {
        "channel": "<string>",
        "duration_sec": <integer>,
        "model_credits": <number>,
        "provider_credits": <number>,
        "provider_managed": <boolean>,
        "telephony_type": "<string>",
        "total_credits": <number>
      },
      "disconnect_reason": "<string>",
      "metadata": {},
      "post_call_analysis_result": {},
      "started_at": "<string>",
      "ended_at": "<string>",
      "created_at": "<string>",
      "transcripts": []
    }
  }
  ```
</ResponseExample>


## OpenAPI

````yaml GET /api/v1/calling/call-sessions-detail/{id}
openapi: 3.0.1
info:
  title: Agni API
  version: 1.0.0
  description: >-
    Agni API for managing agents, tools, widget settings, telephony, and
    integrations.
servers:
  - url: https://api.ravan.ai
security:
  - X-Api-Key: []
tags:
  - name: AgentService
  - name: AgentToolService
  - name: WidgetSettingsService
  - name: PhoneService
  - name: AppointmentService
  - name: GHLService
  - name: CalComService
  - name: CampaignService
  - name: ContactService
  - name: CallingService
  - name: RAGService
  - name: ModelService
  - name: HealthService
paths:
  /api/v1/calling/call-sessions-detail/{id}:
    get:
      tags:
        - CallingService
      summary: Get Call Session Detail
      operationId: GetCallSessionDetail
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Call session ID
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetCallSessionDetailResponse'
              example:
                success: true
                message: <string>
                data:
                  id: <string>
                  agent_id: <string>
                  agent_name: <string>
                  organization_id: <string>
                  caller_number: <string>
                  callee_number: <string>
                  channel: <string>
                  status: <string>
                  recording_url: <string>
                  duration_sec: 0
                  cost_total: <string>
                  credit_breakdown:
                    channel: <string>
                    duration_sec: 0
                    model_credits: 0
                    provider_credits: 0
                    provider_managed: true
                    telephony_type: <string>
                    total_credits: 0
                  disconnect_reason: <string>
                  metadata: {}
                  post_call_analysis_result: {}
                  started_at: <string>
                  ended_at: <string>
                  created_at: <string>
                  transcripts: []
components:
  schemas:
    GetCallSessionDetailResponse:
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
        data:
          $ref: '#/components/schemas/CallSessionDetailData'
      example:
        success: true
        message: <string>
        data:
          id: <string>
          agent_id: <string>
          agent_name: <string>
          organization_id: <string>
          caller_number: <string>
          callee_number: <string>
          channel: <string>
          status: <string>
          recording_url: <string>
          duration_sec: 0
          cost_total: <string>
          credit_breakdown:
            channel: <string>
            duration_sec: 0
            model_credits: 0
            provider_credits: 0
            provider_managed: true
            telephony_type: <string>
            total_credits: 0
          disconnect_reason: <string>
          metadata: {}
          post_call_analysis_result: {}
          started_at: <string>
          ended_at: <string>
          created_at: <string>
          transcripts: []
    CallSessionDetailData:
      type: object
      properties:
        id:
          type: string
        agent_id:
          type: string
        agent_name:
          type: string
        organization_id:
          type: string
        caller_number:
          type: string
        callee_number:
          type: string
        channel:
          type: string
        status:
          type: string
        recording_url:
          type: string
        duration_sec:
          type: integer
        cost_total:
          type: string
        credit_breakdown:
          $ref: '#/components/schemas/CreditBreakdownSnake'
        disconnect_reason:
          type: string
        metadata:
          type: object
        post_call_analysis_result:
          type: object
        started_at:
          type: string
        ended_at:
          type: string
        created_at:
          type: string
        transcripts:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              message:
                type: object
                properties:
                  role:
                    type: string
                  content:
                    type: string
              timestamp_ms:
                type: integer
      example:
        id: <string>
        agent_id: <string>
        agent_name: <string>
        organization_id: <string>
        caller_number: <string>
        callee_number: <string>
        channel: <string>
        status: <string>
        recording_url: <string>
        duration_sec: 0
        cost_total: <string>
        credit_breakdown:
          channel: <string>
          duration_sec: 0
          model_credits: 0
          provider_credits: 0
          provider_managed: true
          telephony_type: <string>
          total_credits: 0
        disconnect_reason: <string>
        metadata: {}
        post_call_analysis_result: {}
        started_at: <string>
        ended_at: <string>
        created_at: <string>
        transcripts: []
    CreditBreakdownSnake:
      type: object
      properties:
        channel:
          type: string
        duration_sec:
          type: integer
        model_credits:
          type: number
        provider_credits:
          type: number
        provider_managed:
          type: boolean
        telephony_type:
          type: string
        total_credits:
          type: number
  securitySchemes:
    X-Api-Key:
      type: apiKey
      in: header
      name: X-Api-Key

````