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

# Retrieve a CDR

> Returns the call detail record for the call identified by `call_id`.



## OpenAPI

````yaml https://wavix.github.io/wavix-openapi/wavix-api.yaml get /v1/cdrs/{call_id}
openapi: 3.1.0
info:
  title: Wavix APIs
  description: >-
    Wavix provides robust APIs that let you integrate voice and text messaging
    features directly into your app. Send text, place calls, and access detailed
    reports  programmatically.
  termsOfService: https://wavix.com/terms-and-conditions
  license:
    name: MIT
    identifier: MIT
  contact:
    name: Wavix
    url: https://wavix.com
    email: support@wavix.com
  version: '1.0'
servers:
  - url: https://api.wavix.com
    description: https://api.wavix.com
    variables: {}
security:
  - bearerAuth: []
tags:
  - name: SIP trunks
    description: SIP trunks
  - name: Buy
    description: Numbers
  - name: Cart
    description: Numbers
  - name: My numbers
    description: Numbers
  - name: Billing
    description: Billing, transactions, and invoices
  - name: Profile
    description: Account profile and customer information
  - name: CDRs
    description: Call detail records and call history
  - name: Speech Analytics
    description: Call transcription and speech analytics
  - name: SMS and MMS
    description: Messaging
  - name: Number Validator
    description: Phone number validation
  - name: Link shortener
    description: Short link and click metrics
  - name: 2FA
    description: Two-factor authentication
  - name: 10DLC
    description: 10DLC Campaigns and Brands
  - name: API Keys
    description: API key management
  - name: Call webhooks
    description: Webhook configuration for call events
  - name: Call control
    description: Programmable Voice
  - name: Call streaming
    description: Real-time call audio streaming over WebSocket
  - name: Call recording
    description: Call recording
  - name: Sub-accounts
    description: Sub-account management
  - name: Voice campaigns
    description: Outbound voice campaigns
  - name: Wavix Embeddable
    description: WebRTC embeddable widget
paths:
  /v1/cdrs/{call_id}:
    get:
      tags:
        - CDRs
      summary: Retrieve a CDR
      description: Returns the call detail record for the call identified by `call_id`.
      operationId: cdrs_get
      parameters:
        - name: call_id
          in: path
          description: The unique ID of the call.
          required: true
          style: simple
          schema:
            type: string
            example: aa566501-c591-4a8b-b3b9-cc1295398b72
        - name: show_transcription
          in: query
          description: When `true`, includes the call transcription in the response.
          style: form
          explode: true
          schema:
            type: boolean
            example: true
      responses:
        '200':
          description: Returns the CDR.
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/CDRResponse'
              examples:
                success:
                  summary: Successful response
                  value:
                    date: '2023-08-21T06:43:36.000Z'
                    from: '14302287001'
                    to: '33170363950'
                    disposition: answered
                    duration: 6
                    destination: France
                    per_minute: '0.027'
                    recording_url: https://api.wavix.com/v1/recordings/recording_id
                    charge: '0.162'
                    sip_trunk: '32882'
                    forward_fee: '0.0'
                    uuid: 99df5ffd-962a-410f-bcce-d08f1f7f328c
                    call_id: 99df5ffd-962a-410f-bcce-d08f1f7f328c
                    parent_uuid: 99df5ffd-962a-410f-bcce-d08f1f7f328c
                    answered_by: human
        '404':
          $ref: '#/components/responses/NotFoundErrorResponse'
      deprecated: false
      security:
        - bearerAuth:
            - calls:read
components:
  schemas:
    CDRResponse:
      title: CDRResponse
      required:
        - date
        - from
        - to
        - disposition
        - duration
        - destination
        - per_minute
        - charge
        - uuid
        - call_id
      type: object
      additionalProperties: false
      properties:
        date:
          type:
            - string
            - 'null'
          description: Call date and time in ISO 8601 format.
          format: date-time
          example: '2023-08-21T06:43:36.000Z'
        from:
          type: string
          description: Caller ID (ANI).
          example: '14302287001'
        to:
          type: string
          description: Dialed number (DNIS).
          example: '33170363950'
        disposition:
          $ref: '#/components/schemas/CallDisposition'
        duration:
          type: integer
          format: int32
          description: Call duration in seconds.
          example: 6
        destination:
          type:
            - string
            - 'null'
          description: |-
            Destination of the call. For outbound calls,
             contains the country name and, optionally, a mobile carrier
              or city name. For inbound calls, includes the SIP trunk name,
               SIP URI, or PSTN number the call is forwarded to.
          example: France
        per_minute:
          type:
            - string
            - 'null'
          description: Price per minute in USD.
          example: '0.027'
        recording_url:
          type:
            - string
            - 'null'
          description: |-
            URL of the recorded call file. Call recording can be enabled
             on a SIP trunk for outbound calls and on
              a phone number for inbound calls.
          example: https://api.wavix.com/v1/recordings/recording_id
        charge:
          type:
            - string
            - 'null'
          description: Total charge for the call in USD.
          example: '0.162'
        sip_trunk:
          type:
            - string
            - 'null'
          description: System-generated SIP trunk login. For outbound calls only.
          example: '32882'
        forward_fee:
          type: string
          description: |-
            PSTN forwarding price in USD. For inbound calls only
             when forwarded to PSTN.
          example: '0.0'
        uuid:
          type: string
          deprecated: true
          description: Call ID. Deprecated — use `call_id` instead.
          example: 99df5ffd-962a-410f-bcce-d08f1f7f328c
        call_id:
          type: string
          description: Call ID. Alias of `uuid`.
          example: 99df5ffd-962a-410f-bcce-d08f1f7f328c
        parent_uuid:
          type:
            - string
            - 'null'
          deprecated: true
          description: Parent call ID. Deprecated — use `parent_call_id` instead.
          example: 99df5ffd-962a-410f-bcce-d08f1f7f328c
        parent_call_id:
          type:
            - string
            - 'null'
          description: Parent call ID. Alias of `parent_uuid`.
          example: 99df5ffd-962a-410f-bcce-d08f1f7f328c
        answered_by:
          type:
            - string
            - 'null'
          description: Who answered the call. Possible values are `human`, `machine`.
          example: human
        transcription:
          $ref: '#/components/schemas/TranscriptionReference'
    CallDisposition:
      title: CallDisposition
      enum:
        - answered
        - noanswer
        - busy
        - failed
        - all
      type: string
      description: >-
        Final disposition of the call. One of `answered` (the called party
        answered), `noanswer` (no answer within the ring timeout), `busy` (the
        called party was busy), `failed` (the call could not be routed), or
        `all` (matches any disposition when used as a filter).
    TranscriptionReference:
      title: TranscriptionReference
      required:
        - uuid
        - url
      type:
        - object
        - 'null'
      additionalProperties: false
      properties:
        uuid:
          type: string
          description: Unique identifier of the call transcription.
          example: 40d6f322-048d-490b-95c7-4fc5c76a74db
        url:
          type: string
          description: URL for retrieving the full call transcription.
          example: >-
            https://api.wavix.com/v1/cdrs/40d6f322-048d-490b-95c7-4fc5c76a74db/transcription?appid=secret
    NotFoundErrorResponse:
      title: NotFoundErrorResponse
      type: object
      properties:
        success:
          type: boolean
          description: >-
            Indicates whether the request was successful. Always `false` for
            this error.
          example: false
        message:
          type: string
          description: >-
            Human-readable description stating that no resource matches the
            given ID.
          example: Record not found
  responses:
    NotFoundErrorResponse:
      description: Request failed. An object with the specified ID is not found.
      headers: {}
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/NotFoundErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >
        Wavix API key. Pass as `Authorization: Bearer <api_key>`. Keys support
        per-resource scopes (none / read / write). See [Restricted keys and
        scopes](https://docs.wavix.com/api-reference/authentication#restricted-keys-and-scopes).

````