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

# reportSpam(_:)

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

## Declaration

```swift
final func reportSpam(_ request: RCSService.ReportSpamRequest) async throws
```

## Parameters

- `request`: A request that provides details about the spam message.

## Discussion

Discussion note: If the session is no longer valid, this method throws TelephonyMessagingSession.Error.invalidSession. If the carrier doesn’t support spam reporting, the method throws RCSService.Error.notSupported.

## See Also

### Reporting spam

- [RCSService.ReportSpamRequest](telephonymessagingkit/rcsservice/reportspamrequest.md)
