<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INVoiceShortcutCenter/getVoiceShortcut(with:completion:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INVoiceShortcutCenter(im)getVoiceShortcutWithIdentifier:completion:"
  },
  "title" : "getVoiceShortcut(with:completion:)"
}
-->

# getVoiceShortcut(with:completion:)

Retrieves a shortcut the user added to Siri.

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

```
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:

- `voiceShortcut`: An instance of [`INVoiceShortcut`](/documentation/Intents/INVoiceShortcut) representing the requested shortcut; otherwise, `nil` if the shortcut doesn’t exist or an error occurs.
- `error`: An <doc://com.apple.documentation/documentation/Foundation/NSError> object if a problem occurred retrieving the shortcut; otherwise, `nil`.

## Discussion

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

---

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)