---
title: "getVoiceShortcut(with:completion:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/invoiceshortcutcenter/getvoiceshortcut(with:completion:)"
---

# getVoiceShortcut(with:completion:)

Retrieves a shortcut the user added to Siri.

## Declaration

```swift
func getVoiceShortcut(with identifier: UUID, completion completionHandler: @escaping @Sendable (INVoiceShortcut?, (any Error)?) -> Void)
```

```swift
func getVoiceShortcut(with identifier: UUID) async throws -> INVoiceShortcut
```

## Parameters

- `identifier`: The shortcut identifier.
- `completionHandler`: The block invoked on a background thread after the system retrieves the shortcut. This block has no return value and takes the following parameters:

## Discussion

Discussion This method only retrieves shortcuts associated with the app that calls the method. It cannot retrieve shortcuts associated with other apps.

## See Also

### Getting Shortcuts Added to Siri

- [getAllVoiceShortcuts(completion:)](intents/invoiceshortcutcenter/getallvoiceshortcuts(completion:).md)
