Telnyx MDR Detailed Reports API

Messaging batch detail records

Operations 8

GET /legacy/reporting/batch_detail_records/messaging Get all MDR detailed report requests #
POST /legacy/reporting/batch_detail_records/messaging Create a new MDR detailed report request #
DELETE /legacy/reporting/batch_detail_records/messaging/{id} Delete a MDR detailed report request #
GET /legacy/reporting/batch_detail_records/messaging/{id} Get a specific MDR detailed report request #
GET /legacy_reporting/batch_detail_records/messaging Get all MDR detailed report requests #
POST /legacy_reporting/batch_detail_records/messaging Create a new MDR detailed report request #
DELETE /legacy_reporting/batch_detail_records/messaging/{id} Delete a MDR detailed report request #
GET /legacy_reporting/batch_detail_records/messaging/{id} Get a specific MDR detailed 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-mdr-detailed-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-mdr-detailed-reports-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Telnyx MDR Detailed 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 MDR Detailed 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: MDR Detailed Reports
  description: Messaging batch detail records
paths:
  /legacy/reporting/batch_detail_records/messaging:
    get:
      tags:
      - MDR Detailed Reports
      summary: Get all MDR detailed report requests
      description: Retrieves all MDR detailed report requests for the authenticated user
      operationId: getMdrRequests
      parameters: []
      responses:
        '200':
          description: MDR detailed report requests retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MdrGetDetailReportResponse'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '500':
          description: Internal server error
      x-latency-category: responsive
    post:
      tags:
      - MDR Detailed Reports
      summary: Create a new MDR detailed report request
      description: Creates a new MDR detailed report request with the specified filters
      operationId: submitMdrRequest
      parameters: []
      requestBody:
        description: MDR detailed report request data
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MdrDetailedRequest'
        required: true
      responses:
        '200':
          description: MDR detailed report request created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MdrPostDetailReportResponse'
        '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/messaging/{id}:
    delete:
      tags:
      - MDR Detailed Reports
      summary: Delete a MDR detailed report request
      description: Deletes a specific MDR detailed report request by ID
      operationId: deleteMdrRequest
      parameters:
      - name: id
        in: path
        description: Unique identifier of the resource.
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: MDR detailed report request deleted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MdrDeleteDetailReportResponse'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Report not found
        '500':
          description: Internal server error
      x-latency-category: responsive
    get:
      tags:
      - MDR Detailed Reports
      summary: Get a specific MDR detailed report request
      description: Retrieves a specific MDR detailed report request by ID
      operationId: getMdrRequest
      parameters:
      - name: id
        in: path
        description: Unique identifier of the resource.
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: MDR detailed report request retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MdrGetDetailReportByIdResponse'
        '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/messaging:
    get:
      tags:
      - MDR Detailed Reports
      summary: Get all MDR detailed report requests
      description: Retrieves all MDR detailed report requests for the authenticated user
      operationId: getMdrRequests_2
      parameters: []
      responses:
        '200':
          description: MDR detailed report requests retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/legacy_published_account_billing_usage_reports_MdrGetDetailReportResponse'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '500':
          description: Internal server error
      x-latency-category: responsive
    post:
      tags:
      - MDR Detailed Reports
      summary: Create a new MDR detailed report request
      description: Creates a new MDR detailed report request with the specified filters
      operationId: submitMdrRequest_2
      parameters: []
      requestBody:
        description: MDR detailed report request data
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MdrDetailedRequest'
        required: true
      responses:
        '200':
          description: MDR detailed report request created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MdrPostDetailReportResponse'
        '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/messaging/{id}:
    delete:
      tags:
      - MDR Detailed Reports
      summary: Delete a MDR detailed report request
      description: Deletes a specific MDR detailed report request by ID
      operationId: deleteMdrRequest_2
      parameters:
      - name: id
        in: path
        description: Unique identifier of the resource.
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: MDR detailed report request deleted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MdrDeleteDetailReportResponse'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Report not found
        '500':
          description: Internal server error
      x-latency-category: responsive
    get:
      tags:
      - MDR Detailed Reports
      summary: Get a specific MDR detailed report request
      description: Retrieves a specific MDR detailed report request by ID
      operationId: getMdrRequest_2
      parameters:
      - name: id
        in: path
        description: Unique identifier of the resource.
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: MDR detailed report request retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MdrGetDetailReportByIdResponse'
        '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:
    MdrDetailReportResponse:
      type: object
      properties:
        id:
          type: string
          description: Identifies the resource
          format: uuid
        start_date:
          type: string
          format: date-time
          example: '2020-07-01T00:00:00-06:00'
        end_date:
          type: string
          format: date-time
          example: '2020-07-01T00:00:00-06:00'
        directions:
          type: array
          items:
            type: string
            enum:
            - INBOUND
            - OUTBOUND
        record_types:
          type: array
          items:
            type: string
            enum:
            - INCOMPLETE
            - COMPLETED
            - ERRORS
        connections:
          type: array
          items:
            type: integer
            format: int64
        report_name:
          type: string
          example: report_name_8hvb45Gu
        status:
          type: string
          enum:
          - PENDING
          - COMPLETE
          - FAILED
          - EXPIRED
        report_url:
          type: string
          example: http://portal.telnyx.com/downloads/report_name_8hvb45Gu.csv
        filters:
          type: array
          items:
            $ref: '#/components/schemas/Filter'
        created_at:
          type: string
          format: date-time
          example: '2020-07-01T00:00:00-06:00'
        updated_at:
          type: string
          format: date-time
          example: '2020-07-01T00:00:00-06:00'
        profiles:
          type: array
          description: List of messaging profile IDs
          items:
            type: string
            format: uuid
          example:
          - 3fa85f64-5717-4562-b3fc-2c963f66afa6
          - 7d4e3f8a-9b2c-4e1d-8f5a-1a2b3c4d5e6f
        record_type:
          type: string
          example: mdr_report
    MdrPostDetailReportResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/MdrDetailReportResponse'
    MdrGetDetailReportByIdResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/MdrDetailReportResponse'
    MdrDetailedRequest:
      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. Note: If end time includes the last 4 hours, some MDRs might not appear in this report, due to wait time for downstream message delivery confirmation'
          format: date-time
          example: '2024-02-12T23:59:59Z'
        timezone:
          type: string
          description: Timezone for the report
          example: UTC
        directions:
          type: array
          description: List of directions 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 MDR Report
        include_message_body:
          type: boolean
          description: Whether to include message body in the report
          example: true
        filters:
          type: array
          description: List of filters to apply
          items:
            $ref: '#/components/schemas/Filter'
        profiles:
          type: array
          description: List of messaging profile IDs to filter by
          items:
            type: string
            format: uuid
          example:
          - 3fa85f64-5717-4562-b3fc-2c963f66afa6
          - 7d4e3f8a-9b2c-4e1d-8f5a-1a2b3c4d5e6f
        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 MDR detailed report
    legacy_published_account_billing_usage_reports_MdrGetDetailReportResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/MdrDetailReportResponse'
        meta:
          $ref: '#/components/schemas/batch-csv_PaginationMeta'
    MdrGetDetailReportResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/MdrDetailReportResponse'
        meta:
          $ref: '#/components/schemas/batch-csv_PaginationMeta_705dfa7312'
    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
    MdrDeleteDetailReportResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/MdrDetailReportResponse'
    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
    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
    MdrGetDetailReportResponse_2:
      properties:
        data:
          items:
            $ref: '#/components/schemas/MdrDetailReportResponse'
          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