---
title: "confirm(intent:completion:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/insearchcallhistoryintenthandling/confirm(intent:completion:)"
---

# confirm(intent:completion:)

Confirms that you can perform the search.

## Declaration

```swift
optional func confirm(intent: INSearchCallHistoryIntent, completion: @escaping @Sendable (INSearchCallHistoryIntentResponse) -> Void)
```

```swift
optional func confirm(intent: INSearchCallHistoryIntent) async -> INSearchCallHistoryIntentResponse
```

## Parameters

- `intent`: The intent object containing details about the user’s request. Your handler has already resolved the information in this object.
- `completion`: The handler block to execute with your response. You must execute this handler at some point during your implementation of this method. The handler has no return value and takes the following parameter:

## Discussion

Discussion Implement this method to validate that you’re able to perform the search using the specified criteria. You might use this method to validate that you’ve access to the user’s call history and that there are records to search.
