Telnyx CDR Reports API

Voice batch detail records

GitHub OpenAPI

Operations 10

GET /legacy/reporting/batch_detail_records/voice Get all CDR report requests #
POST /legacy/reporting/batch_detail_records/voice Create a new CDR report request #
GET /legacy/reporting/batch_detail_records/voice/fields Get available CDR report fields #
DELETE /legacy/reporting/batch_detail_records/voice/{id} Delete a CDR report request #
GET /legacy/reporting/batch_detail_records/voice/{id} Get a specific CDR report request #
GET /legacy_reporting/batch_detail_records/voice Get all CDR report requests #
POST /legacy_reporting/batch_detail_records/voice Create a new CDR report request #
GET /legacy_reporting/batch_detail_records/voice/fields Get available CDR report fields #
DELETE /legacy_reporting/batch_detail_records/voice/{id} Delete a CDR report request #
GET /legacy_reporting/batch_detail_records/voice/{id} Get a specific CDR report request #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/telnyx:telnyx-cdr-reports-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

telnyx-cdr-reports-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Telnyx CDR Reports API
  version: 2.0.0
  contact:
    email: support@telnyx.com
  x-endpoint-cost: light
  x-refined-note:
  - x-latency-category differs across the merged source definitions and was not carried
  description: 'Operations tagged CDR Reports across 3 of this provider''s published API definitions: telnyx-openapi.json, telnyx-openapi.yml, telnyx-openapi_2.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.telnyx.com/v2
  description: Version 2.0.0 of the Telnyx API
security:
- bearerAuth: []
tags:
- name: CDR Reports
  description: Voice batch detail records
paths:
  /legacy/reporting/batch_detail_records/voice:
    get:
      tags:
      - CDR Reports
      summary: Get all CDR report requests
      description: Retrieves all CDR report requests for the authenticated user
      operationId: getCdrRequests
      parameters: []
      responses:
        '200':
          description: CDR report requests retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CdrGetDetailReportResponse'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '500':
          description: Internal server error
      x-latency-category: responsive
    post:
      tags:
      - CDR Reports
      summary: Create a new CDR report request
      description: Creates a new CDR report request with the specified filters
      operationId: submitCdrRequest
      parameters: []
      requestBody:
        description: CDR detailed report request data
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CdrDetailedRequest'
        required: true
      responses:
        '200':
          description: CDR report request created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CdrPostDetailReportResponse'
        '400':
          description: Invalid request parameters
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '500':
          description: Internal server error
      x-latency-category: responsive
    servers:
    - url: https://api.telnyx.com/v2
      description: Version 2.0.0 of the Telnyx API
  /legacy/reporting/batch_detail_records/voice/fields:
    get:
      tags:
      - CDR Reports
      summary: Get available CDR report fields
      description: Retrieves all available fields that can be used in CDR reports
      operationId: getCdrsAvailableFields
      responses:
        '200':
          description: Available fields retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CdrAvailableFieldsResponse'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '500':
          description: Internal server error
      x-latency-category: responsive
    servers:
    - url: https://api.telnyx.com/v2
      description: Version 2.0.0 of the Telnyx API
  /legacy/reporting/batch_detail_records/voice/{id}:
    delete:
      tags:
      - CDR Reports
      summary: Delete a CDR report request
      description: Deletes a specific CDR report request by ID
      operationId: deleteCdrRequest
      parameters:
      - name: id
        in: path
        description: Unique identifier of the resource.
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: CDR report request deleted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CdrDeleteDetailReportResponse'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Report not found
        '500':
          description: Internal server error
      x-latency-category: responsive
    get:
      tags:
      - CDR Reports
      summary: Get a specific CDR report request
      description: Retrieves a specific CDR report request by ID
      operationId: getCdrRequest
      parameters:
      - name: id
        in: path
        description: Unique identifier of the resource.
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: CDR report request retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CdrGetDetailReportByIdResponse'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Report not found
        '500':
          description: Internal server error
      x-latency-category: responsive
    servers:
    - url: https://api.telnyx.com/v2
      description: Version 2.0.0 of the Telnyx API
  /legacy_reporting/batch_detail_records/voice:
    get:
      tags:
      - CDR Reports
      summary: Get all CDR report requests
      description: Retrieves all CDR report requests for the authenticated user
      operationId: getCdrRequests_2
      parameters: []
      responses:
        '200':
          description: CDR report requests retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/legacy_published_account_billing_usage_reports_CdrGetDetailReportResponse'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '500':
          description: Internal server error
      x-latency-category: responsive
    post:
      tags:
      - CDR Reports
      summary: Create a new CDR report request
      description: Creates a new CDR report request with the specified filters
      operationId: submitCdrRequest_2
      parameters: []
      requestBody:
        description: CDR detailed report request data
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CdrDetailedRequest'
        required: true
      responses:
        '200':
          description: CDR report request created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CdrPostDetailReportResponse'
        '400':
          description: Invalid request parameters
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '500':
          description: Internal server error
      x-latency-category: responsive
    servers:
    - url: https://api.telnyx.com/v2
      description: Version 2.0.0 of the Telnyx API
  /legacy_reporting/batch_detail_records/voice/fields:
    get:
      tags:
      - CDR Reports
      summary: Get available CDR report fields
      description: Retrieves all available fields that can be used in CDR reports
      operationId: getCdrsAvailableFields_2
      responses:
        '200':
          description: Available fields retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CdrAvailableFieldsResponse'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '500':
          description: Internal server error
      x-latency-category: responsive
    servers:
    - url: https://api.telnyx.com/v2
      description: Version 2.0.0 of the Telnyx API
  /legacy_reporting/batch_detail_records/voice/{id}:
    delete:
      tags:
      - CDR Reports
      summary: Delete a CDR report request
      description: Deletes a specific CDR report request by ID
      operationId: deleteCdrRequest_2
      parameters:
      - name: id
        in: path
        description: Unique identifier of the resource.
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: CDR report request deleted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CdrDeleteDetailReportResponse'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Report not found
        '500':
          description: Internal server error
      x-latency-category: responsive
    get:
      tags:
      - CDR Reports
      summary: Get a specific CDR report request
      description: Retrieves a specific CDR report request by ID
      operationId: getCdrRequest_2
      parameters:
      - name: id
        in: path
        description: Unique identifier of the resource.
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: CDR report request retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CdrGetDetailReportByIdResponse'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Report not found
        '500':
          description: Internal server error
      x-latency-category: responsive
    servers:
    - url: https://api.telnyx.com/v2
      description: Version 2.0.0 of the Telnyx API
components:
  schemas:
    batch-csv_PaginationMeta:
      type: object
      properties:
        total_pages:
          type: integer
          format: int32
          example: 3
        total_results:
          type: integer
          format: int32
          example: 55
        page_number:
          type: integer
          format: int32
          example: 2
        page_size:
          type: integer
          format: int32
          example: 25
    CdrDeleteDetailReportResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/CdrDetailedReqResponse'
    legacy_published_account_billing_usage_reports_CdrGetDetailReportResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/CdrDetailedReqResponse'
        meta:
          $ref: '#/components/schemas/batch-csv_PaginationMeta'
    CdrGetDetailReportByIdResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/CdrDetailedReqResponse'
    CdrAvailableFieldsResponse:
      type: object
      properties:
        Interaction Data:
          type: array
          description: Fields related to call interaction and basic call information
          items:
            type: string
          example:
          - origination_number
          - terminating_number
          - start_timestamp_utc
          - start_timestamp
          - answer_timestamp
          - end_timestamp
          - direction
        Number Information:
          type: array
          description: Geographic and routing information for phone numbers
          items:
            type: string
          example:
          - origination_city
          - origination_state
          - origination_lata
          - origination_country
          - terminating_city
          - terminating_state
        Telephony Data:
          type: array
          description: Technical telephony and call control information
          items:
            type: string
          example:
          - route
          - connection_id
          - hangup_code
          - pdd
          - tags
          - sip_call_id
          - mos
        Billing:
          type: array
          description: Cost and billing related information
          items:
            type: string
          example:
          - billable_time
          - cost
          - rate
          - billing_group_id
      description: Available CDR report fields grouped by category
    CdrGetDetailReportResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/CdrDetailedReqResponse'
        meta:
          $ref: '#/components/schemas/batch-csv_PaginationMeta_705dfa7312'
    CdrDetailedRequest:
      required:
      - start_time
      - end_time
      type: object
      properties:
        start_time:
          type: string
          description: Start time in ISO format
          format: date-time
          example: '2024-02-01T00:00:00Z'
        end_time:
          type: string
          description: End time in ISO format
          format: date-time
          example: '2024-02-12T23:59:59Z'
        timezone:
          type: string
          description: Timezone for the report
          example: UTC
        call_types:
          type: array
          description: List of call types to filter by (Inbound = 1, Outbound = 2)
          items:
            type: integer
            format: int32
          example:
          - 1
          - 2
        record_types:
          type: array
          description: List of record types to filter by (Complete = 1, Incomplete = 2, Errors = 3)
          items:
            type: integer
            format: int32
          example:
          - 1
          - 2
        connections:
          type: array
          description: List of connections to filter by
          items:
            type: integer
            format: int64
          example:
          - 123
          - 456
        report_name:
          type: string
          description: Name of the report
          example: My CDR Report
        source:
          type: string
          description: 'Source of the report. Valid values: calls (default), call-control, fax-api, webrtc'
          example: calls
        include_all_metadata:
          type: boolean
          description: Whether to include all metadata
          example: true
        filters:
          type: array
          description: List of filters to apply
          items:
            $ref: '#/components/schemas/Filter'
        fields:
          type: array
          description: Set of fields to include in the report
          items:
            type: string
          example:
          - call_leg_id
          - start_time
          - end_time
        managed_accounts:
          type: array
          description: List of managed accounts to include
          items:
            type: string
            format: uuid
          example:
          - f47ac10b-58cc-4372-a567-0e02b2c3d479
          - 6ba7b810-9dad-11d1-80b4-00c04fd430c8
        select_all_managed_accounts:
          type: boolean
          description: Whether to select all managed accounts
          example: false
      description: Request object for CDR detailed report
    Filter:
      type: object
      description: 'Query filter criteria. Note: The first filter object must specify filter_type as ''and''. You cannot follow an ''or'' with another ''and''.'
      properties:
        filter_type:
          type: string
          description: Logical operator for combining filters
          enum:
          - and
          - or
        cli:
          type: string
          description: Calling line identification (caller ID)
          example: '+13129457420'
        cli_filter:
          type: string
          description: Filter type for CLI matching
          enum:
          - contains
          - starts_with
          - ends_with
        cld:
          type: string
          description: Called line identification (destination number)
          example: '+13129457420'
        cld_filter:
          type: string
          description: Filter type for CLD matching
          enum:
          - contains
          - starts_with
          - ends_with
        tags_list:
          type: string
          description: Tag name to filter by
          example: tag1
        billing_group:
          type: string
          description: Billing group UUID to filter by
          example: adfaa016-f921-4b6c-97bb-e4c1dad231c5
    CdrDetailedReqResponse:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the report
          example: 123e4567-e89b-12d3-a456-426614174000
        start_time:
          type: string
          description: Start time in ISO format
          example: '2024-02-01T00:00:00Z'
        end_time:
          type: string
          description: End time in ISO format
          example: '2024-02-12T23:59:59Z'
        call_types:
          type: array
          description: List of call types (Inbound = 1, Outbound = 2)
          items:
            type: integer
            description: Call type value
            format: int32
        record_types:
          type: array
          description: List of record types (Complete = 1, Incomplete = 2, Errors = 3)
          example:
          - 1
          - 2
          items:
            type: integer
            description: Record type value
            format: int32
        connections:
          type: array
          description: List of connections
          example:
          - 123
          - 456
          items:
            type: integer
            description: List of connections
            format: int64
        report_name:
          type: string
          description: Name of the report
          example: My Report
        status:
          type: integer
          description: Status of the report (Pending = 1, Complete = 2, Failed = 3, Expired = 4)
          format: int32
          example: 1
        report_url:
          type: string
          description: URL to download the report
        filters:
          type: array
          description: List of filters
          items:
            $ref: '#/components/schemas/Filter'
        created_at:
          type: string
          description: Creation date of the report
          example: '2024-02-12T14:00:00Z'
        updated_at:
          type: string
          description: Last update date of the report
          example: '2024-02-12T14:05:00Z'
        timezone:
          type: string
          description: Timezone for the report
        source:
          type: string
          description: 'Source of the report. Valid values: calls (default), call-control, fax-api, webrtc'
        retry:
          type: integer
          description: Number of retries
          format: int32
        managed_accounts:
          type: array
          description: List of managed accounts
          items:
            type: string
            format: uuid
          example:
          - f47ac10b-58cc-4372-a567-0e02b2c3d479
          - 6ba7b810-9dad-11d1-80b4-00c04fd430c8
        record_type:
          type: string
          example: cdr_detailed_report
      description: Response object for CDR detailed report
    batch-csv_PaginationMeta_705dfa7312:
      type: object
      properties:
        total_pages:
          type: integer
          format: int32
          example: 3
        total_results:
          type: integer
          format: int32
          example: 55
        page_number:
          type: integer
          format: int32
          example: 2
        page_size:
          type: integer
          format: int32
          example: 25
    CdrPostDetailReportResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/CdrDetailedReqResponse'
    CdrGetDetailReportResponse_2:
      properties:
        data:
          items:
            $ref: '#/components/schemas/CdrDetailedReqResponse'
          type: array
        meta:
          $ref: '#/components/schemas/batch-csv_PaginationMeta'
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: 'Telnyx API key supplied as `Authorization: Bearer <token>`. In production, auth may be validated by the API gateway and forwarded via Telnyx auth headers.'
    Payment:
      type: apiKey
      in: header
      name: Authorization
      description: 'Machine Payment Protocol credential used on paid retries, sent as `Authorization: Payment ...`. Obtained by paying a challenge returned in the `WWW-Authenticate` header of a 402 response. This is not a Telnyx API key; initial challenge requests use standard bearer authentication instead.'
    agent-memory_bearerAuth:
      type: http
      scheme: bearer
      description: Telnyx API key
    bearerAuth:
      type: http
      scheme: bearer
    branded-calling_bearerAuth:
      type: http
      scheme: bearer
      description: Telnyx API key. Generate one at https://portal.telnyx.com/#/app/api-keys.
    collections_bearerAuth:
      type: http
      scheme: bearer
      description: Telnyx API key. Collections and results are automatically scoped to the authenticated user's organization.
    number-reputation_bearerAuth:
      type: http
      scheme: bearer
      description: Telnyx API key. Generate one at https://portal.telnyx.com/#/app/api-keys.
    oauthClientAuth:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://api.telnyx.com/v2/oauth/token
          scopes:
            admin: Administrative access to Telnyx resources
        authorizationCode:
          authorizationUrl: https://api.telnyx.com/v2/oauth/authorize
          tokenUrl: https://api.telnyx.com/v2/oauth/token
          refreshUrl: https://api.telnyx.com/v2/oauth/token
          scopes:
            admin: Administrative access to Telnyx resources
      description: OAuth 2.0 authentication for Telnyx API and MCP integrations
    outbound-voice-profiles_bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    pronunciation-dicts_bearerAuth:
      type: http
      scheme: bearer
      description: Telnyx API v2 key. Obtain from https://portal.telnyx.com
    rcs-registration_bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
    stored-payment-transactions_bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    transcriptions-search_bearerAuth:
      type: http
      scheme: bearer
      description: Telnyx API key. Results are automatically scoped to the authenticated user's organization.
    web-search_bearerAuth:
      type: http
      scheme: bearer
      description: Telnyx API key
    pay-connectors_bearerAuth:
      type: http
      scheme: bearer
      description: Telnyx API key, not the processor bearer token.
    telnyxApiKey:
      type: http
      scheme: bearer
      description: Management-only Telnyx account credential.
x-refined-from:
- telnyx-openapi.json
- telnyx-openapi.yml
- telnyx-openapi_2.json
x-service-info:
  categories:
  - communication
  - developer-tools
  docs:
    apiReference: https://developers.telnyx.com
    homepage: https://telnyx.com
    llms: https://telnyx.com/llms.txt