{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-mdr-get-detail-response-schema.json",
  "title": "MdrGetDetailResponse",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-mdr-detail-reports-api-openapi.yml#/components/schemas/MdrGetDetailResponse",
  "properties": {
    "data": {
      "items": {
        "$ref": "#/$defs/MdrDetailResponse"
      },
      "type": "array"
    },
    "meta": {
      "$ref": "#/$defs/reporting_PaginationMeta"
    }
  },
  "type": "object",
  "$defs": {
    "MdrDetailResponse": {
      "properties": {
        "cld": {
          "description": "The destination number for a call, or the callee",
          "type": "string"
        },
        "cli": {
          "description": "The number associated with the person initiating the call, or the caller",
          "type": "string"
        },
        "cost": {
          "description": "Final cost. Cost is calculated as rate * parts",
          "type": "string"
        },
        "created_at": {
          "description": "Message sent time",
          "format": "date-time",
          "type": "string"
        },
        "currency": {
          "description": "Currency of the rate and cost",
          "enum": [
            "AUD",
            "CAD",
            "EUR",
            "GBP",
            "USD"
          ],
          "type": "string"
        },
        "direction": {
          "description": "Direction of message - inbound or outbound.",
          "type": "string"
        },
        "id": {
          "description": "Id of message detail record",
          "type": "string"
        },
        "message_type": {
          "description": "Type of message",
          "enum": [
            "SMS",
            "MMS"
          ],
          "type": "string"
        },
        "parts": {
          "description": "Number of parts this message has. Max number of character is 160. If message contains more characters then that it will be broken down in multiple parts",
          "type": "number"
        },
        "profile_name": {
          "description": "Configured profile name. New profiles can be created and configured on Telnyx portal",
          "type": "string"
        },
        "rate": {
          "description": "Rate applied to the message",
          "type": "string"
        },
        "record_type": {
          "type": "string"
        },
        "status": {
          "description": "Message status",
          "enum": [
            "GW_TIMEOUT",
            "DELIVERED",
            "DLR_UNCONFIRMED",
            "DLR_TIMEOUT",
            "RECEIVED",
            "GW_REJECT",
            "FAILED"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "reporting_PaginationMeta": {
      "properties": {
        "page_number": {
          "format": "int32",
          "type": "integer"
        },
        "page_size": {
          "format": "int32",
          "type": "integer"
        },
        "total_pages": {
          "format": "int32",
          "type": "integer"
        },
        "total_results": {
          "format": "int32",
          "type": "integer"
        }
      },
      "type": "object"
    }
  }
}