<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INSendMessageIntentResponse",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INSendMessageIntentResponse"
  },
  "title" : "INSendMessageIntentResponse"
}
-->

# INSendMessageIntentResponse

Your app’s response to a send message intent.

```
class INSendMessageIntentResponse
```

## Overview

Use an [`INSendMessageIntentResponse`](/documentation/Intents/INSendMessageIntentResponse) object to specify the results of sending a message to another user. You create instances of this class when confirming or handling a send message intent. Use this object to communicate whether the message was successfully sent or whether an error occurred.

You create an [`INSendMessageIntentResponse`](/documentation/Intents/INSendMessageIntentResponse) object in the [`confirm(intent:completion:)`](/documentation/Intents/INSendMessageIntentHandling/confirm(intent:completion:)) and [`handle(intent:completion:)`](/documentation/Intents/INSendMessageIntentHandling/handle(intent:completion:)) methods of your send message handler object. For more information about implementing your handler object, see [`INSendMessageIntentHandling`](/documentation/Intents/INSendMessageIntentHandling).

## Topics

### Initializing the Response Object

[`-  initWithCode:userActivity:`](/documentation/Intents/INSendMessageIntentResponse/init(code:userActivity:))

Initializes the response object with the specified code and user activity object.

### Getting the Response Code

[`code`](/documentation/Intents/INSendMessageIntentResponse/code)

The code indicating whether you successfully handled the intent.

[`INSendMessageIntentResponseCode`](/documentation/Intents/INSendMessageIntentResponseCode)

Constants that indicate the response state.

### Providing the Message

[`sentMessage`](/documentation/Intents/INSendMessageIntentResponse/sentMessage)

The message sent by the intent.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Equatable`](/documentation/Swift/Equatable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`NSCoding`](/documentation/Foundation/NSCoding)

### Inherits From

[`INIntentResponse`](/documentation/Intents/INIntentResponse)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)