Skip to content

SMS Inbound UDR Report

This example retrieves inbound SMS reception records for a specific time period. The response shows multiple SMS messages received from various mobile networks, processed through a single data center using GSM-7 encoding. The messages are primarily single-part SMS with keyword-based routing enabled.

For complete field definitions and advanced options, see the GraphQL API Reference.

Query

query smsInUdrReport (
  $customerId: String!
  $filterSMS: SmsInColumnUdrFilters
  $datePeriod: DatePeriod!
  $pageIndex: Int
  $pageSize: Int
  $sort: SortDirection
) {
  smsInUdrReport(
    customerId: $customerId
    datePeriod: $datePeriod
    filter: $filterSMS
    page: $pageIndex
    size: $pageSize
    sort: $sort
  ) {
    content {
      smsId
      correlatedJobId
      correlatedTrackingId
      trackingId
      correlatedSmsId
      dataCenter
      customerId
      correlatedService
      correlatedServiceAccount
      billingCode
      encoding
      sender
      recipient
      senderCountryCodeIso3
      recipientCountryCodeIso3
      keyword
      numberOfParts
      plaintextActions
      messageContent
      receivedTs
    }
    pageIndex
    pageSize
    hasMoreElements
  }
}

Variables

{
	"customerId": "XXXXX",
	"datePeriod": {
		"fromIncluded": "2025-07-12T00:00:00.000Z",
		"toExcluded": "2025-07-30T07:00:00.000Z"
	},
	"pageIndex": 0,
	"pageSize": 10,
	"sort": "ASC"
}

Response

{
	"data": {
		"smsInUdrReport": {
			"content": [
				{
					"smsId": "I.20250712-062451.038-0lyi722xrWZ13GJJ6H",
					"correlatedJobId": null,
					"correlatedTrackingId": null,
					"trackingId": "lyi722xq-de2-smpp-35swdfrzh1gff         ",
					"correlatedSmsId": null,
					"dataCenter": "DE2",
					"customerId": "XXXXX",
					"correlatedService": null,
					"correlatedServiceAccount": null,
					"billingCode": "",
					"encoding": "GSM-7",
					"sender": "+3366******",
					"recipient": "****",
					"senderCountryCodeIso3": "FRA",
					"recipientCountryCodeIso3": "FRA",
					"keyword": "*",
					"numberOfParts": 1,
					"plaintextActions": null,
					"messageContent": null,
					"receivedTs": "2025-07-12T04:24:51.038Z"
				},
				// more items ...
			],
			"pageIndex": 0,
			"pageSize": 10,
			"hasMoreElements": true
		}
	}
}

Field reference

ComponentDescription
smsIdUnique inbound SMS record identifier
senderSender's phone number
recipientReceiving phone number
senderCountryCodeIso3Sender's country (ISO 3166-1 alpha-3)
recipientCountryCodeIso3Recipient's country (ISO 3166-1 alpha-3)
encodingMessage encoding type
numberOfPartsSMS parts count
keywordKeyword that triggered the SMS routing
receivedTsMessage reception timestamp
dataCenterProcessing data center
customerIdRetarus customer account identifier
correlatedServiceRelated Retarus service
correlatedServiceRelated service account
trackingIdTracking identifier for monitoring
correlatedTrackingIdRelated tracking identifier
billingCodeCost center identifier
plaintextActionsProcessing actions applied to the SMS
messageContentSMS message content (if available)
correlatedJobIdRelated outbound job identifier
correlatedSmsIdRelated SMS identifier