---
title: "reportSpam(_:)"
framework: TelephonyMessagingKit
role: symbol
role_heading: Instance Method
platforms: [iOS 26.0+]
path: "telephonymessagingkit/smsservice/reportspam(_:)"
---

# reportSpam(_:)

Reports an SMS message as spam to the carrier and to partners.

## Declaration

```swift
final func reportSpam(_ message: SMSMessage) async throws
```

## Parameters

- `message`: doc://com.apple.telephonymessagingkit/documentation/TelephonyMessagingKit/SMSMessage to report as spam.

## Discussion

Discussion note: A TelephonyMessagingSession.Error.invalidSession if the session is no longer valid or an SMSService.Error.notSupported if the carrier doesn’t support spam reporting.
