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

# INSearchForAccountsIntentResponse

Your app’s response to a request to search for account information.

```
class INSearchForAccountsIntentResponse
```

## Overview

Use an [`INSearchForAccountsIntentResponse`](/documentation/Intents/INSearchForAccountsIntentResponse) object to return the account information found during a search operation. After performing a search using the criteria specified in an [`INSearchForAccountsIntent`](/documentation/Intents/INSearchForAccountsIntent) object, create an instance of this class and fill it with the results of that search. Siri communicates the information from your response to the user at appropriate times.

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

## Topics

### Initializing the Response Object

[`init(code: INSearchForAccountsIntentResponseCode, userActivity: NSUserActivity?)`](/documentation/Intents/INSearchForAccountsIntentResponse/init(code:userActivity:))

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

### Getting the Response Code

[`var code: INSearchForAccountsIntentResponseCode`](/documentation/Intents/INSearchForAccountsIntentResponse/code)

The code indicating whether you successfully handled the intent.

[`enum INSearchForAccountsIntentResponseCode`](/documentation/Intents/INSearchForAccountsIntentResponseCode)

Constants indicating the state of the response.

### Providing the Search Results

[`var accounts: [INPaymentAccount]?`](/documentation/Intents/INSearchForAccountsIntentResponse/accounts)

The accounts found during the search.

## Relationships

### Inherits From

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

### Conforms To

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

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

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

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

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

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

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

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

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

---

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)