<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MusicKit",
  "identifier" : "/documentation/MusicKit/MusicAuthorization/request()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "MusicKit"
    ],
    "preciseIdentifier" : "s:8MusicKit0A13AuthorizationV7requestAC6StatusOyYaFZ"
  },
  "title" : "request()"
}
-->

# request()

Asks the user for permission for the current app to access MusicKit.

```
static func request() async -> MusicAuthorization.Status
```

## Discussion

Before using any other MusicKit API in your app, make sure the user
grants your app access to their Apple Music data,
You can do this either by comparing
[`currentStatus`](/documentation/MusicKit/MusicAuthorization/currentStatus)
to [`MusicAuthorization.Status.authorized`](/documentation/MusicKit/MusicAuthorization/Status/authorized), or by simply calling
[`request()`](/documentation/MusicKit/MusicAuthorization/request()) regardless of the current
authorization status value. Calling [`request()`](/documentation/MusicKit/MusicAuthorization/request())
results in presenting a standard user consent dialog
to the user when necessary.

Requesting authorization to use MusicKit requires the inclusion of
a short description of the app’s reason for using MusicKit.
You need to add this purpose string to the app’s `Info.plist` file
using the [NSAppleMusicUsageDescription](doc://com.apple.documentation/documentation/BundleResources/Information-Property-List/NSAppleMusicUsageDescription) key.

---

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)